Name

PriceDivide — specify number to divide the price by, to obtain price in units

SYNOPSIS

number

DESCRIPTION

The number the price should be divided by, to get the price in base units (dollars or such).

For example, if you keep your prices specified in pennies (100th part of a dollar), set the directive to 100.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Setting PriceDivide

PriceDivide 100

Example: Setting PriceDivide depending on current locale

# (Default is PriceDivide 1, so no special setting required)
#PriceDivide    1

# Establish locale-specific price division
Locale fr_FR  PriceDivide  .20

The following would make prices expressed in French francs five times higher than corresponding dollar amounts.

To fully understand the example and implicitly presented Interchange features, make sure you're familiar with internationalization and locale glossary entries.


NOTES

This directive is overridden by eventual Locale definition which, by design of Locale, allows it to be set differently for different currencies.

AVAILABILITY

PriceDivide is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 646

['PriceDivide',      undef,            1],

AUTHORS

Interchange Development Group

SEE ALSO

currency(7ic), Locale(7ic), PriceField(7ic)

DocBook! Interchange!