AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: alfaromora on June 08, 2015, 12:08:04 PM

Title: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 08, 2015, 12:08:04 PM
Hi, I 'm having problems with the amounts, the idea is to use the comma as the decimal separator , but when I try to edit an order in admin amounts behaving strangely , including the decimal point with a point, attached images shown , Thanks .
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 08, 2015, 01:06:39 PM
Solved some problems, but when i make a change in the order, the amount changes incorrectly, attach images with the example.
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 08, 2015, 04:51:05 PM
It seems that the total line is divided by one thousand , please help
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: Basara on June 09, 2015, 05:30:07 AM
Bug confirmed. Thank you

AbanteCart team work on fixes https://github.com/abantecart/abantecart-src/issues/152
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: eCommerce Core on June 09, 2015, 10:20:45 AM
Here is a fix.
You can copy and replace this file on your abantecart copy
https://github.com/abantecart/abantecart-src/commit/b2ad50c6390c95781427fc3f52693b617328b2b7
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 09, 2015, 12:48:48 PM
I tried that , now the problem is when I update the order, the amounts are stored incorrectly.
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 09, 2015, 01:06:54 PM
I also found a problem when another product is added no matter how big or small is the amount, the amounts are calculated incorrectly.
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: Basara on June 10, 2015, 04:59:59 AM
Hi.

Can you please provide more details? What amount are incorrect and what action you do to replicate issue (save or recalculate order)?
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 10, 2015, 07:02:06 AM
Hi, the amounts are calculated correctly in the form, but when save the order, saves incorrectly, the same when add a new product, seems that automatically saves the order, and again the amounts are wrong.
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: Basara on June 10, 2015, 07:06:37 AM
Please note save action did not recalculate anything only save entered values.
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 10, 2015, 07:17:17 AM
I assumed that, but you can see in the attached images, same when add a new product, dont know if the decimal separator or the thousand separator or even the big amounts are causing the issue, please help.

The mere fact of entering the order and save it changes the total amount incorrectly.
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 10, 2015, 09:22:20 AM
Confirmed , the problem is with the configuration of the separators with big amounts, if I use decimal as " . " and the thousands like " , " works well , otherwise don't.
Title: Re: Problems with Decimal Point and Edit Orders in Admin
Post by: alfaromora on June 11, 2015, 07:02:26 AM
Please fix this!!, i need to use decimal separator as ",".

Thanks.