Hello,
sorry for reopening, but I spent about ten hours searching how to allow customers to put "," instead of "." when buying decimal quantity.
I found at one forum, that $value = str_replace(',', '.', $value); may be a solution, but I can't manage in which file(s?) i should put it into.
I need to get it working so please point me what to do with it. (if it could be solution)? Please help me.
I have 2 more minor issues with decimal quantities, now I can sell products in decimals ( with "." as decimal point), but :
1. Update of product stock amount is working well, but when the stock gets under 1, shop displays that product is no more availiable. I want to display it until stock reaches real 0. But even this, I can still add product in cart if I want to buy amount smaller or equal to current stock. (e.g. if current stock is 0.7 (product not availiable) and I put 0.4 the product is added to cart normaly)
2. If I am adding new product I cant set primal amount at stock as decimal. I need tu put start stock amount e.g. 23.2, if it can handle 23,2 would be nice, but here it is not needed as much as in customer area. Now it takes just int. or rounds it somehow... I supose that I need to change some value type in database, and maybe some files, but which?
Thanks for response. Sebastian