verhoej Posted November 9, 2011 Share Posted November 9, 2011 I need to display the unit price such as displayed in product.tpl also in de product_list.tpl. I tried to add code but no result. Link to comment Share on other sites More sharing options...
Petya Posted December 10, 2012 Share Posted December 10, 2012 Hi Same problem here. I would like to display the unit price in product-list.tpl I have found this: "<span id="unit_price_display">{convertPrice price=$product.orderprice} per {$product.unity|escape:'htmlall':'UTF-8'}</span>" But it dosn't seem to work, it keeps displaying the normal standard price of the item and not the unit price. Even if i could display ONLY the unit price, it would work for me, but I have no clue how to do it. I cant be the only one with this issue. Anybody?? Link to comment Share on other sites More sharing options...
NemoPS Posted December 11, 2012 Share Posted December 11, 2012 Hi, It's a bit tricky, for some reason the unity price is not assigned to the template. I managed to get the correct unity this way: {math equation="b/a" a=$product.unit_price_ratio b=$product.price_without_reduction assign=realunity} Of course., after this you can echo out the unity with the unit measurement as Petya described I hope this helps! Fabio Link to comment Share on other sites More sharing options...
Nelson Posted January 30, 2013 Share Posted January 30, 2013 And If we have the unit price with tax ? Link to comment Share on other sites More sharing options...
NemoPS Posted January 30, 2013 Share Posted January 30, 2013 Hi, you might want to have a look at the tt I made out of this question, here: http://nemops.com/unit-price-in-prestashop-product-list/ 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