Jump to content

Product Prices have started rounding to crazy decimal places


Recommended Posts

Hi,

 

When I add a new specific price to a product PS seems to be crating a new product price with a large amount of decimal places.

 

Retail price with tax: 79

specific Price Reduction: $4.05

product price changes to: 71.81818199999999

 

The price is then failing ObjectModel.php validateFields() and causing orders to fail and not write the product data to ps_protuct_detail table.

 

If I remove the specifice price all is ok.

 

Really need help on this one and suggestions on what might be causing it.

 

Thanks.

Link to comment
Share on other sites

Update.


 


Hosting provider has automatically increased our PHP version to 5.4 when we were on 5.3


Reverted back to 5.3 and no longer getting error.


 


Must be a conflict of some sort in the PS core of 1.0.6.9 when running on PHP 5.4.


At least my version anyway.


Link to comment
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...