Index  Up  <<  >>  


Shipping Calculation modes

There are 8 ways that shipping cost may be calculated. The method used depends on the first character of the cost field in the shipping database.

N.NN (digits)
If the first character is a digit, then a number is assumed and read directly as the shipping cost.

c
If the first character is a c, no cost is present but a mode-specific configuration option is applied. This most often would be definition of an alternate UPS-style lookup zone.

e
If the first character is an e, a cost of zero is returned and an error message is placed in the session value ship_message ([data session ship_message]).

f
If the character f is the first, MiniVend will first interpret the text for any MiniVend tags and then interpret the result as a formula (really as Perl code).

g
If the first character is a g, no cost is present but a global configuration option is applied, such as applicability of PriceDivide.

i
Specifies a chained shipping lookup which will be applied to each item in the shopping cart.

m
Specifies a chained shipping lookup which will be applied to the entire shopping cart.

s
Specifies a named subroutine; this is largely deprecated in favor of chained shipping modes.

u
Calls the default UPS-style lookup.

x
If an x is first, a number is expected and is applied as a fixed multiplier for the accumulated criterion (@@TOTAL@@).

A-Z
If the first character is a capital letter, calls one of the 26 secondary UPS-style lookup zones.


Index  Up  <<  >>