Shipping Calculation modes

### 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.

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` (i.e. `[data session ship_message]` or $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. It is really as Perl code; so you may reference the entire set of MiniVend objects with the code.

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.

u
  Calls the UPS-style lookup. You can pre-define as many as you wish, though if you want to do the hundreds available it is best done on the fly.

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. (Deprecated now that zones can be named directly).

### Index Up << >>