diana13 Posted May 16, 2015 Share Posted May 16, 2015 Is there a way to display in 1.6.0.13 prices something like that? With sup and smaller fonts? 3090 Link to comment Share on other sites More sharing options...
HiPresta Posted May 16, 2015 Share Posted May 16, 2015 Quick way with javascript. Add the following JS code at the end of the file product.js: $(function(){ var price = $('#our_price_display').text(); var sign = price.slice(-1); price = price.substring(0, price.length - 1).trim(); var res = price.split(","); var new_price = res[0]+'<sup>'+res[1]+'</sup> '+sign; $('#our_price_display').html(new_price); }); Link to comment Share on other sites More sharing options...
diana13 Posted May 16, 2015 Author Share Posted May 16, 2015 (edited) Thanks a lot, it works great for products without combinations, I've made 2-3 minor changes to fit my prices: $(function(){ var price = $('#our_price_display').text(); var sign = price.slice(-3); price = price.substring(0, price.length - 3).trim(); var res = price.split("."); var new_price = res[0]+'<sup style="vertical-align:super;font-size:12px">'+res[1]+'</sup> '+sign; $('#our_price_display').html(new_price); }); How can I display prices this way all over the site? Eq for products with combinations, in home page, product list, cart etc. ? Edited May 16, 2015 by diana13 (see edit history) Link to comment Share on other sites More sharing options...
robbie007 Posted June 11, 2015 Share Posted June 11, 2015 Is there a solution to change the font-size of decimals of all prices at once?? Link to comment Share on other sites More sharing options...
jwd19 Posted September 24, 2016 Share Posted September 24, 2016 Dear, Do someone have a solution to this ? We want smaller decimals on productpage, but also working with combination products. Link to comment Share on other sites More sharing options...
ilisiaraul Posted June 17, 2019 Share Posted June 17, 2019 Any solution for products with combinations? Link to comment Share on other sites More sharing options...
HiPresta Posted June 18, 2019 Share Posted June 18, 2019 21 hours ago, ilisiaraul said: Any solution for products with combinations? What about a free module for that? Here is one I created: https://hipresta.com/free-prestashop-modules/16-product-price-formatter.html Link to comment Share on other sites More sharing options...
Soyons Solidaire Posted August 5, 2019 Share Posted August 5, 2019 (edited) Thank you friend on the product page I have that ( 32<sup class="hi-price-formatter">40 </sup>€TTC ) Ps 1.6.1.24 Edited August 5, 2019 by TCHOUPI (see edit history) 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