[ic] $Tag->shipping and adder problem

Bruno Cantieni bruno at digi-land.com
Tue Feb 13 09:03:46 EST 2007


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
bruno at digi-land.com
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/ 



More information about the interchange-users mailing list