close ad
Important WebAssist Announcement
open ad
View Menu

Web development tutorial

Tip for formatting currency values

Tutorial created by Christopher West, Freelancer Looking for Work

Categories: eCart


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 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

jamie424562: 10 Years, 10 Months, 3 Weeks, 1 Day, 34 Minutes ago

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

: 10 Years, 3 Weeks, 3 Days, 18 Hours, 37 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





Ease of use


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.