close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sub-total and Grand Total not inserting as currency?

Thread began 11/01/2011 8:47 am by Nathon Jones Web Design | Last modified 11/02/2011 2:27 am by Nathon Jones Web Design | 942 views | 4 replies |

Nathon Jones Web Design

Sub-total and Grand Total not inserting as currency?

We're using:
Classic ASP / VBScript
DW 8.0.2
eCart 4.5.2
MSSQL Database (with "money" selected for our product price field)

When we insert either Sub-total or Total onto a page, it's not inserting as a currency value it just inserts as:
<%=WA_eCart_TotalColumn(SFCcart, "TotalPrice")%>

...which displays as:
0

How do we force the display as currency? Ta.

Nath.

Sign in to reply to this post

Jason ByrnesWebAssist

use the WA_eCart_DisplayMoney function, for example:

<%=WA_eCart_DisplayMoney(SFCcart, WA_eCart_TotalColumn(SFCcart, "TotalPrice"))%>
Sign in to reply to this post

Nathon Jones Web Design

hand coded?

Is that an option within a menu in DW or do we just need to hand-code it?

Thanks Jason.

Regards
N.

Sign in to reply to this post

Jason ByrnesWebAssist

it needs to be hand coded.

Sign in to reply to this post

Nathon Jones Web Design

Getting a type mismatch when I change it to "WA_eCart_DisplayMoney"?
Could this be something to do with my selection of "money" as the field type in our MSSQL database?

The weird thing is, on another page where we have an "add to cart" button, the value displays fine as currency.

Comparing the two pages, I spotted that the intial page that's producing the type mismatch error didn't have the cart included at the top but when I insert the include files for the cart, it makes a red exclamation mark appear next to the eCart Object item in the Server Behaviours panel.

I guess I could add an add to cart button on the initial page, insert the currency value (basically I'm trying to add a mini-basket), then delete the add to cart button but...

Ha! I can just hear you Jason! :o)

Message received - albeit I answered it myself! D'oh!

Nath.

Sign in to reply to this post

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.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...