wojodesign / simplecart-js

A simple javascript shopping cart that easily integrates with your current website.
simplecartjs.org
1.79k stars 489 forks source link

Oposite delimiter and decimal chars causes error with total (ignores decimal) #520

Open abemedia opened 8 years ago

abemedia commented 8 years ago

When I use the following settings the decimal char is ignored.

simpleCart.currency().decimal = ',';
simpleCart.currency().delimiter = '.';

E.g. if I have one product with the price €24,99 in the cart it tells me the subtotal is €2.499,00