[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] $Tag->shipping and adder problem


Hi all.
I need to calculate the shipping cost for all the available methods and
store this in a hash for later use.
I'm doing this as per the following code (excerpt only):
[calc]
#some code here
	foreach my $mode (@modes) {
		$shipping_hash{'shipmode'}{$mode} = $Tag->shipping_desc(
$mode );
		$shipping_hash{'shipcost'}{$mode} = $Tag->shipping($mode);
	}
#some more code
return;
[/calc]

The cost returned by $Tag->shipping($mode) does not include the "adder" (and
possibly other modifiers) as defined in shipping.asc

I checked this also by doing the following (the adder is 2 in this example):
[calc]return $Tag->shipping('upsg ');[/calc] returns 10.23
[shipping upsg] returns $12.23

What gives??



Bruno Cantieni

###########################################
Digital Landscape - Cyboretum.com
Web Applications * Web Hosting * e-Commerce
http://www.digi-land.com
http://www.cyboretum.com
suppressed
Phone/Fax: 1+905.668.2255
Toll free: 1+877.668.2345

Digital Landscape and Cyboretum.com are divisions of CBF Productions Inc.
----------------------------------------
Autoresponders,Followup,Newsletters
Reliable delivery, ad tracking, live stats
http://auto.responderama.com/ 

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.