
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] UPS Shipping - how to add a percentage?
Hello,
In reading the docs (!), I find examples of using the UPS tables to calculate shipping, and also how to add a fixed anount to the shipping value, and also how to round up. I also see how to do formulas based on weight or dollar amount.
However, I want to do both! I want to take the number from the UPS table, multiply it by 1.25, then add 3 to the result.
The docs say:
"You can append a simple shipping cost qualification to a UPS lookup. If any additional parameters are present after the five usual ones used for UPS lookup, they will be interpreted as a Perl subroutine call. The syntax is the same as if it was encased in the tag [perl sub] [/perl], but the following substitutions are made prior to the call: ..."
What I would request would be a sample of how this is accomplished. I'm unfortunately at a loss here. Any examples of a perl script that uses the UPS lookup tables would be most appreciated. Thanks.
Bob
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users