close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

decimal points (comma)

Thread began 4/04/2010 4:13 pm by massimo173451 | Last modified 4/07/2010 6:31 pm by Eric Mittman | 981 views | 5 replies |

massimo173451

decimal points (comma)

Hi there, I need to show the comma (decimal separator) in the cart.php, in the final step now showing the product price value eg. € 13.00 but instead maybe € 13,00. How is possible modify this parameters (using in the Server Behaviours --> eCart Object etc)?

Sign in to reply to this post

Eric Mittman

There is a high level setting for this in the cart object. If you click on edit for your current cart object you will see in the general tab the options for currency formatting. You should choose the comma separated example from within here. Let us know if this does not work for you.

Sign in to reply to this post

massimo173451

Eric, I have already changed, before sent this post, the values (from 10.000,00 to 10,000.00) but the cart show even the price with same value (with dot).

Sign in to reply to this post

Eric Mittman

Please post back with a screen shot of what you see in your cart that you would like to change, and also post back with a copy of your WA_eCart folder in a zip archive so that I can examine your cart object.

Sign in to reply to this post

massimo173451

Eric, I suppose the issue is reproduced when insert a price and weight in the Products_Insert.php (by Admin panel), in the fields price and weight the comma are not accepted (the fields are not formatted, and when insert the price or weight, I get the error in red, and tell me insert the price or weight again). How I can solve this now?

Sign in to reply to this post

Eric Mittman

You should be able to get past this by updating the server validations on the page. You can update them with either the Validation Toolkit/CSS Form Builder or you can make the update manually. To update the validations you will edit the server validations and select the number validations that are applied to the price and weight, in here specify the European format rather than the US format.

To update it manually you would go into the code on the page and update the following two lines of code:

php:
$WAFV_Errors .= WAValidateNM(((isset($_POST["ProductPrice"]))?$_POST["ProductPrice"]:"") . "",0,1000000,2,",.",true,4);

$WAFV_Errors .= WAValidateNM(((isset($_POST["ProductWeight"]))?$_POST["ProductWeight"]:"") . "",0,1000000,6,",.",true,5);



You will want to reverse the order of the thousands and decimal separators from this (,.) to this (.,) so they look like this:

php:
$WAFV_Errors .= WAValidateNM(((isset($_POST["ProductPrice"]))?$_POST["ProductPrice"]:"") . "",0,1000000,2,".,",true,4);

$WAFV_Errors .= WAValidateNM(((isset($_POST["ProductWeight"]))?$_POST["ProductWeight"]:"") . "",0,1000000,6,".,",true,5);
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...