For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

PriceDivide

The number a price value should be divided by to get the price in units (dollars or whatever).

Synopsis

PriceDivide  number

The default is 1 (effectively disabling the facility).

Scope

This directive is only available for use in the local (catalog.cfg) configuration file.  It will not affect any other website in any way.  This directive will not work in the global (interchange.cfg) configuration file. 

Description

The number a price value should be divided by to get the price in units (dollars or whatever).  If penny pricing is used in the database then you will probably want to set this directive's value to 100.

Example

Convert penny prices to pound/dollar prices for display

PriceDivide  100

Use PriceDivide to do simple locale-based exchange rate conversion

Locale en_GB  PriceDivide  1            # 1 is the default anyway
Locale en_US  PriceDivide  0.5375

See also

Category:  Local config directives
Last modified by: Kevin Walsh
Modification date: Wednesday 15 November 2006 at 10:30 AM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Donations  |  Contact us