[ic] Additional shipping calculation based on @@TOTAL@@

Bruno Cantieni bruno at digi-land.com
Tue Sep 12 09:28:46 EDT 2006


Hi all.
I have a shipping method where I want the "Additional shipping calculation"
(padding) to be based on the total shipping weight.
The method is basically plain UPS ground, internal lookup with the  "Total"
criteria set to "Weight".
I expected the following to work:
int((@@TOTAL@@/35)+0.5)*10
Alas, @@TOTAL@@ in this case is actually the raw shipping cost before
padding, i.e. simply putting @@TOTAL@@ into the "Additional shipping
calculation" field effectively doubles the shipping cost :(
I'm curious if I misunderstand the @@TOTAL@@ usage?
I expected @@TOTAL@@ to be the shipping weight given the above setup.

In the meantime, replacing the above formula with int(([weight]/35)+0.5)*10
actually works as expected (I diddled my Ship.pm to interpolate ITL in
adder).

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.
 



More information about the interchange-users mailing list