Key: ConversionRate

From Catglobe Wiki
Jump to: navigation, search

<accesscontrol>Main:MyGroup</accesscontrol> 

Key: ConversionRate

Syntax

<add key="ConversionRate" value="[FLOAT]"/>

[FLOAT]: Positive value that may include decimal points.

Purpose

The conversion rate specifies how many points the user can get for 1 item of the default currency. The default currency is set on the currency table in the database and should never be changed for a site. Thus, if the default currency is USD and the conversion rate is “10” then 1 USD will be equal to 10 points. The conversion rate is extremely important since you cannot specify the cost of any product in a currency. The cash price of any product is defined by its cost in points divided by the conversion rate. So if you state a product to cost 1000 points then the cash price using the above conversion rate example would be 100 USD. Once you have decided on a conversion rate between points and the default currency it should never again be changed. Should you choose to change it, be aware that existing orders may become unclean.

Example of key

<add key="ConversionRate" value="0.1" />