Jump to content

How to display unit price per... in product_list

Recommended Posts

  • 1 year later...



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

Share this post

Link to post
Share on other sites


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!



Share this post

Link to post
Share on other sites
  • 1 month later...

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

Important Information

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