Jump to content

Price decimals style in Prestashop 1.7.8.8


cristidam

Recommended Posts

Hello,

I would like to display the price decimals in the following style: image.png.018d24afce12cb4b9400f3be5259b0fd.png

I have updated classes/Tools.php, by adding <sup> tag to the decimals, but on the frontend the html gets converted to text an it shows 499<sup>00</sup>.

I have found an older post that gives a solution but it's for PS 1.6.

https://www.prestashop.com/forums/topic/557593-productprice-smaller-font-behind-the-comma/

Can someone help me with this issue?

Thank you!

 

Link to comment
Share on other sites

9 hours ago, ps8moduly.cz said:

Hi.

It needs to be added wherever the price parameter is nofilter.

For example: {$product.price nofilter}

Hi,

Thank you. This works fine, it's just that it's a lot of work to modify the decimal style everywhere. I was wondering if there is a way to add the <sup> element directly where the $product.price is formatted, I just can't find the file.

Thank you!

 

Link to comment
Share on other sites

  • 4 months later...
On 11/7/2023 at 4:19 PM, cristidam said:

Hi,

Thank you. This works fine, it's just that it's a lot of work to modify the decimal style everywhere. I was wondering if there is a way to add the <sup> element directly where the $product.price is formatted, I just can't find the file.

Thank you!

 

Hi,

Did you manage to fix this? I want the same price format effect for my prestashop 1.7

Thank you

 

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