30.06.2013 Views

Formatting Currency Values in eCart 3 Applications - WebAssist

Formatting Currency Values in eCart 3 Applications - WebAssist

Formatting Currency Values in eCart 3 Applications - WebAssist

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Notice that the two parameters, theObject (or th<strong>eCart</strong> or $theObject) and<br />

theAmount, are used by this function. These parameters are the cart object<br />

and the value to be formatted, respectively.<br />

To apply the formatt<strong>in</strong>g to your value, call the function by its name and pass<br />

the cart object name as the first parameter and the value you wish to format<br />

as the second parameter (bolded for clarification):<br />

[ASP JScript]<br />

<br />

[ASP VBScript]<br />

<br />

[ColdFusion]<br />

#WA_<strong>eCart</strong>_DisplayMoney(cartName,<br />

cartName_GetCharges())#<br />

[PHP]<br />

<br />

By plac<strong>in</strong>g the value you wish to display <strong>in</strong> the function call as theAmount<br />

parameter <strong>in</strong>to the function call, the value will now be displayed as formatted<br />

currency, accord<strong>in</strong>g to the sett<strong>in</strong>gs chosen <strong>in</strong> the WA <strong>eCart</strong> Object.<br />

You can also add values <strong>in</strong> this function as shown <strong>in</strong> WA eCommerce Recipes<br />

– Recipe2: Database­driven Sales Tax and Shipp<strong>in</strong>g at:<br />

<strong>Currency</strong> Formats <strong>in</strong> the WA <strong>eCart</strong> Insert Checkout form<br />

Three of the supported Payment Gateways <strong>in</strong> the WA <strong>eCart</strong> Insert Checkout<br />

Form object provide a form element that you may b<strong>in</strong>d a currency value to <strong>in</strong><br />

order to enable the payment gateway to display monetary values us<strong>in</strong>g your<br />

currency symbol. These are:<br />

• Authorize.Net<br />

Page 6 of 8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!