[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Getting closer, but still no cigar.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for the tip. Also, thanks to Joaquim, who pointed out to me some things
that I should be escaping out.
I'm still not getting anything back from [shipping multiitem], and I am still
geting the 'Undefined perl sub calc_item' error, but I feel that I am making
progress.
On 22-Oct-99 Larry Leszczynski wrote:
> ****** message to minivend-users from Larry Leszczynski <larryl@furph.com>
> ******
>
> Hi Brian -
>
> I don't think the weight is stored in the cart, you have to look it up
> from the database. Maybe try this change:
>
>> Sub <<EOG
>> sub calc_item {
>> my $totalweight = 0;
>> my $surcharge = 0;
>> my $quan = scalar @{$Safe{items}};
>> foreach $item (@{$Safe{items}}) {
>> #$totalweight = ($totalweight + $item->{weight});
> my $weight = tag_data("products","weight",$item->{'code'}) || 0;
> $totalweight += $weight;
>> #$quan++;
>> }
>> $surcharge = ($quan - 1) * ($totalweight * .03);
>> return $surcharge;
>> }
>> EOG
>
>
> Larry Leszczynski
> larryl@furph.com
> --
> furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
> info@furph.com http://www.furph.com 734-513-7759 (FAX)
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
- --
- ------------------------------------------------------------------------
Brian Knotts bknotts@europa.com
Webmaster/Developer/Portland SysAdmin (503) 222-9508
Europa/NWLink Fax: (503) 796-9134
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.7 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE4ENEcKV5kReY9sP8RAh7CAKCORryuJamuz5b9xTMnA0pvFxThYgCgkbcl
dNXtaf67cmk3NaHXi7X1rnc=
=3EUm
-----END PGP SIGNATURE-----