Jump to content

Attributes added 1 more decimal to product price


monova

Recommended Posts

Hi,

 

I recently noticed that if a product has attributes, on the product page the price has 2 decimals instead of 1 as it should be.

 

Product with attributes: http://www.petiteprovence.ro/826-ulei-de-fistic-salbatic-pur-virgin-ethnic-treasures.html

 

Product price: 21,0

Backoffice currency set: 0 000,0X

Product price displayed: 21,00

 

On product list, the product price is shown correctly: http://www.petiteprovence.ro/46-uleiuri-si-unturi-vegetale (3rd row, 4th product)

 

Prestashop version 1.4.4.0

 

Anyone can help me on this? :)

Edited by monova (see edit history)
Link to comment
Share on other sites

The product price displayed through the Front Office of PrestaShop fetches the price using following function:

 

Tools::displayPrice() - Defined in Tools.php class file

 

This function formats the price as per the defined currency format. It seems that the currency symbol you are using is creating the problem, try replacing it to $ temporarily and check if issue persists.

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...