Jump to content
awezoom78

Combinations prices lose their decimal part!

Recommended Posts

Hi, I'm in a very urgent situation. My customer has been configuring their new shop for a while, and then they've found a very strange issue:

 

When you set price impact in combinations, like, i.e. 4,78€, and then you save, you can see the price being impacted in the product page. But if you reload once or twice, then when you go back to the admin page, the price impact appears as 4,00€, so it loses a lot of money in the process.

 

Please, I'm quite desperate. I don't know what can be causing this issue. In the beginning I thought they were using . as decimal separator, but then I saw that's not the problem. You can even see the 4,78€ price for a while, but,as I said after some seconds, or a couple of reloads, it goes back to 4,00€

 

 

Please, any hint?

 

Share this post


Link to post
Share on other sites

I have been trying things and I've found out this:

 

1.- If you set all the prices at once and then save, the prices are not erased.

2.- If you modify a price and then save, you lose all the other prices set.

 

So maybe the problem is the fields are retrieving the saved prices in a bad format. I guess it's because the field requires , and I see the field like this:

 

<input type="number" class="attribute_priceTE form-control text-xs-right" value="5.500000">

 

The problem is when I reload the combinations page, from time to time it seems to erase all the decimal values anyways, I'm not sure if it's because it's saving again or what. But this is a very serious issue.

 

I'm using Prestashop 1.7

 

EDIT: I confirm that anytime you save the product, all the combination prices lose the decimals, so I'm 99% sure it's due to the input fields not to be retrieving the number in a proper format, so when it's sent back, it's getting only the not decimal part.

Edited by awezoom78 (see edit history)

Share this post


Link to post
Share on other sites

Sorry, but, is this Prestashop official forum? I posted this two days ago and had no answers. Is this the support they provide????

 

Share this post


Link to post
Share on other sites

I'm having the same issue:

 

when i add 2.498 to a combination and save, it works fine.

But after this change, when i edit any other setting in the product details, the price is adjusted to 2.000000

 

Anyone a sollution for this?

Edited by goessensj (see edit history)

Share this post


Link to post
Share on other sites

Hi,

have you found any solution to this? I am having same issue and it's pretty annoying :(

 

Thank you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More