What MIVA Says
Each function belonging to this feature adds formatting to a decimal number that is passed to it. It provides a place to specify, among other things, the currency symbol and number of decimal places for use in displaying a price value.
In addition to simple formatting, a currency module could convert values of various currencies. It could display US currency, Eurodollars, or Canadian currency using the daily rate of exchange data to give updated values from day to day.
The currency module could go one step further and do a lookup every hour to update the currency values.
Parameters:
Return Type:string
<MvFUNCTION NAME="CurrencyModule_AddFormatting" PARAMETERS="module var,value" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="{'$'$l.value}">
</MvFUNCTION>
What MIVA Says
MIVA Merchant calls this function wherever it displays a price on one of the store pages. MIVA Merchant will call this function only from the currency module selected by the store administrator using the Edit Store configuration screen.
Default Return: NULL
Parameters:
Return Type:string
<MvFUNCTION NAME="CurrencyModule_AddFormatPlainText" PARAMETERS="module var,value" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="{'$'$l.value}">
</MvFUNCTION>
What MIVA Says
This function exists to provide alternate (presumably simpler) formatting to the CurrencyModule_AddFormatting. Email modules make use of it.
Default Return: {CurrencyModule_AddFormatting(l.module,l.value)}
Parameters:
Return Type:string
<MvFUNCTION NAME="CurrencyModule_AddFormatPlainTextShort" PARAMETERS="module var,value" STANDARDOUTPUTLEVEL="">
<MvFUNCTIONRETURN VALUE="{'$'$l.value}">
</MvFUNCTION>
What MIVA Says
This function exists to provide alternate (presumably simpler) formatting to CurrencyModule_AddFormatting. Email modules make use of it.
Default Return: {CurrencyModule_AddFormatting(l.module,l.value)}
Return Types are expressed in the document by the following codes:
For information and function requirements for the various MIVA Merchant 5 Module API Feature Codes see the following:
batchreport,
component,
component_prov,
currency,
custrt,
data_domain,
data_store,
export,
externalreq,
fields_cust,
fields_prod,
fulfill,
import,
log,
not_fields,
payment,
provision_store,
shipping,
storeselui,
storewizard,
system,
tax,
upload,
util,
wizard,
vis_affil,
vis_affilbe,
vis_category,
vis_categorybe,
vis_cust,
vis_custbe,
vis_domain,
vis_fulfill,
vis_log,
vis_order,
vis_payment,
vis_product,
vis_productbe,
vis_shipping,
vis_store,
vis_system,
vis_util,
vis_wizard
This document is copyright 2005-2006 4TheBest eCommerce Solutions and was last generated using Serade on 01/13/2006 23:04:54. It is permissible to place a copy of this document in it's current or altered form on your website as long as you leave the copyright notice along with the links to the websites referenced intact.