close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problem comma

Thread began 7/25/2015 12:51 am by J7HNW | Last modified 7/27/2015 1:05 pm by Ray Borduin | 778 views | 6 replies |

J7HNW

Problem comma

Hi

My cart is functioning perfectly - but on the checkout page it is putting a comma in the figure

It is set to take a 30% deposit with order as you can see

<input name="amount" type="text" id="amount" value="<%=WA_eCart_DisplayMoney(WA_eCart1, WA_eCart_GrandTotal(WA_eCart1) * .3)%>" />

When it transfers to my payment provider - it has a comma in it which causes a problem

Is there a simple way to remove the comma from the string of code above please ?

Thanks

John

Sign in to reply to this post

Ray BorduinWebAssist

Use:

php:
<input name="amount" type="text" id="amount" value="<%=number_format(WA_eCart_GrandTotal(WA_eCart1) * .3,2)%>" />
Sign in to reply to this post
Did this help? Tips are appreciated...

J7HNW

Aha it doesn't use PHP this site is an older site using ASP. Is it possible to send me the code to use on an ASP page please ?

Sign in to reply to this post

Ray BorduinWebAssist

<%=FormatNumber((WA_eCart_GrandTotal(WA_eCart1) * .3,2),,,,0)%>

Sign in to reply to this post
Did this help? Tips are appreciated...

J7HNW

This gives a 500 internal server error

My old working strong ( with comma ) was:

<input name="amount" type="text" id="amount" value="<%=WA_eCart_DisplayMoney(WA_eCart1, WA_eCart_GrandTotal(WA_eCart1) * .3)%>" />

I have changed it to

<input name="amount" type="text" id="amount" value="<%=FormatNumber((WA_eCart_GrandTotal(WA_eCart1) * .3,2),,,,0)%>" />

Any ideas please ?

Thank you

John

Sign in to reply to this post

Ray BorduinWebAssist

I see, I left some code I should have removed. I think it should be:

<input name="amount" type="text" id="amount" value="<%=FormatNumber((WA_eCart_GrandTotal(WA_eCart1) * .3),,,,0)%>" />

If that doesn't work, what if you just used:

<input name="amount" type="text" id="amount" value="<%= Round((WA_eCart_GrandTotal(WA_eCart1) * .3),2) %>" />

Sign in to reply to this post
Did this help? Tips are appreciated...

J7HNW

Thanks Ray

This worked perfectly

<input name="amount" type="text" id="amount" value="<%=FormatNumber((WA_eCart_GrandTotal(WA_eCart1) * .3),,,,0)%>" />

You are a star

Thanks very much

John

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