cristidam Posted November 7, 2023 Share Posted November 7, 2023 Hello, I would like to display the price decimals in the following style: 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 More sharing options...
ps8modules Posted November 7, 2023 Share Posted November 7, 2023 Hi. It needs to be added wherever the price parameter is nofilter. For example: {$product.price nofilter} 1 Link to comment Share on other sites More sharing options...
cristidam Posted November 7, 2023 Author Share Posted November 7, 2023 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 More sharing options...
vmthang Posted March 21 Share Posted March 21 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now