Back to index

3.4 Element tags, price formats

Currency

There are two outputs for each type of price data, for example o_from_price and o_from_price_display both show the lowest price that a particular option sells at.

o_from_price returns just the base price itself. It can be combined with o_currency to create an output such as:

   125.00 GBP

o_from_price_display uses known currency display information to create an output such as:

   £ 125.00

TourCMS has the display information for all currencies within the MySQL database. The currency display formats can be changed if required.

Decimals

Tour and option prices are recorded within TourCMS to 2 decimal places. There are occassions when prices do not require the decimal places to be shown.

For example, a special offer of £ 99.00 may be presented as £ 99

All element tags that relate to prices can take the dec attribute with the following 3 settings, demonstrated with a base price of 99.75 :

If the base price had been 99.25, the rhide setting would round to 99

Next: 4 Container tags