close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Web development tutorial

Tip for formatting currency values

Tutorial created by Christopher West, Freelancer Looking for Work

Categories: eCart

rating

Covering the individual functions that eCart gives you.

arrow downWA_eCart_DisplayMoney

Traditionally if you wanted to display a value from your database as a currency you would add a currency symbol such as £ or $ before the binding of the field which stores that value...

with eCart there is a nice little function that does this for you, the function is called WA_eCart_DisplayMoney.

This function name would be placed inside a php echo and it comprises of 2 paremeters:

WA_eCart_DisplayMoney($YourCartName, $TableRowValue)

And example as follows:

php:
<?php echo WA_eCart_DisplayMoney($WebCart$row_rsItems['ItemPrice']); ?>

arrow downReviews and comments

Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.

Sign in to add comments
rating

jamie424562: 4 Years, 4 Months, 1 Week, 6 Days, 12 Hours, 50 Minutes ago

this removes the price and then also breaks the recordset when i try to use it.....

: 3 Years, 6 Months, 1 Week, 2 Days, 6 Hours, 53 Minutes ago

hello, i bought these plugins but i am from Nigeria and found out Naira isnt include, is there a walk around for the currency thing, maybe through php as this wont allow me be able to use this plugin effectively..thanks

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.