Jump to content

Hide Old-Price if same as New Price

Recommended Posts


I have an issue on my product-list pages. Basically I have some products which are discounted and some that are not.

The products that are discounted are fine because they show the old price and then the new discounted price.

My problem is with the producst that HAVE NOT been discounted. They show the old price and discounted new price which are actually the same figure, as there is no discount.

What I would like to be able to do is ONLY show an old and new price when there is a difference between the 2 prices, otherwise I would only like one price displayed.

Does anyone know if this is possible?


Share this post

Link to post
Share on other sites

Hi Steveio,

I think in your product.tpl you should change, in line 122 (where old price is displayed) :

{if $productPriceWithoutReduction > $productPrice}


{if $productPriceWithoutReduction|round:'2' > $productPrice|round:'2'}

In fact Prestashop compares here the price values before being rounded, which sometimes gives unequal prices on a more precise scale (ex : 20.000$ and 20.004$).

Best regards,


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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