ke Technical Documentation

Tuesday, March 15, 2011 Format Money

The money format function is used to display the amount (price) in a more readable way. The money format function is used as follows:

Function format: |FORMAT_MONEY(_amount_)| , where:

  • _amount_ - the amount (hardcoded or taken from tha database)

Example:

Hardcoded:
|FORMAT_MONEY(50.15)| - formats a hardcoded amount: will display 50,15 if defined in constants using "," as a delimitator
Field:
|FORMAT_PHONE_NUMBER()| - formats a saved amount from the database

back

Add a comment






Comments