support

Author Topic: Problems with Decimal Point and Edit Orders in Admin  (Read 11834 times)

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Problems with Decimal Point and Edit Orders in Admin
« 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 .

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #1 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.

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #2 on: June 08, 2015, 04:51:05 PM »
It seems that the total line is divided by one thousand , please help

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6143
  • Karma: +284/-2
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #3 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

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1602
  • Karma: +93/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #4 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
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #5 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.

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #6 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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6143
  • Karma: +284/-2
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #7 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)?

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #8 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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6143
  • Karma: +284/-2
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #9 on: June 10, 2015, 07:06:37 AM »
Please note save action did not recalculate anything only save entered values.

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #10 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.
« Last Edit: June 10, 2015, 09:06:47 AM by alfaromora »

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #11 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.
« Last Edit: June 10, 2015, 07:43:46 PM by alfaromora »

Offline alfaromora

  • Newbie
  • *
  • Posts: 22
  • Karma: +2/-1
    • View Profile
Re: Problems with Decimal Point and Edit Orders in Admin
« Reply #12 on: June 11, 2015, 07:02:26 AM »
Please fix this!!, i need to use decimal separator as ",".

Thanks.

 

Powered by SMFPacks Social Login Mod