Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problems with Period and Comma


rbj83rbj

Recommended Posts

Posted

I have some problem regarding periods and commas on the page where you select qty in your cart. The problem is that my store sells products where the price is calculatted by weight (210 kroner pr. kilogram) and some of the products are sold in one and a half kilo or 1.4 kilo, and then the cart has to calculate the exact price for the product if the customer buys 1.4 kilo of af product. But in Denmark we use comma insteed of period to seperate between hole numbers and decimals. The cart calculate when a customer enters 1.4 kilos but noy when the customer enters 1,4 kilos.

 

Is there any way to solve this problem?? Sorry for my bad english.... :O) and thanks

Posted
I have some problem regarding periods and commas on the page where you select qty in your cart. The problem is that my store sells products where the price is calculatted by weight (210 kroner pr. kilogram) and some of the products are sold in one and a half kilo or 1.4 kilo, and then the cart has to calculate the exact price for the product if the customer buys 1.4 kilo of af product. But in Denmark we use comma insteed of period to seperate between hole numbers and decimals. The cart calculate when a customer enters 1.4 kilos but noy when the customer enters 1,4 kilos.

 

Is there any way to solve this problem?? Sorry for my bad english.... :o) and thanks

 

 

The easiest way to change it may to be to put in some javascript that re-writes the comma to a decimal.

 

Boy this is a really a great post I have to think about it for a bit - I'll be back in touch!

Nothing unreal exists

Posted
The easiest way to change it may to be to put in some javascript that re-writes the comma to a decimal.

 

Boy this is a really a great post I have to think about it for a bit - I'll be back in touch!

 

 

Thanks for the answer... but I hope to hear more from you. Im not at all an programmer just an mortal shopowner...:) My point is I dont know how to write a Java Script like that and I dont know were to implementate it.... so hope you can help...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...