Jump to content

Display quantity discount in product-list.tpl PS 1.5.2


emtolu

Recommended Posts

Hi,

 

I try to display the quantity discounts in the list of products as below:

 

post-443775-0-02849500-1357312692_thumb.jpg

 

 

However I managed to show the quantity of products that are a promotion from one product.

 

Here is the code that I have implemented in product-list.tpl

 

{if $product.specific_prices.from_quantity >=2}
 {assign var='specific_prices' value=$product.specific_prices}
 {$specific_prices.from_quantity|intval}
 [spam-filter]$product.price *(1-{$specific_prices.reduction|floatval})}|convertAndFormatPrice}
 <span class="reduction"><span>-{$specific_prices.reduction*100|floatval}%</span></span>
{/if}

 

Thanks

Link to comment
Share on other sites

I don't know if it's gonna help you but, i was searching something similar.

i wrote a little something here: http://www.prestashop.com/forums/index.php?/topic/151912-recap-dinfos-utiles-a-ajouter-sur-product-listtpl-et-producttpl/page__view__findpost__p__1059699http://www.prestasho..._20__p__1056965

 

it's in french, if you want me to translate, i can do it... Hope it will help!

Edited by Dedra (see edit history)
Link to comment
Share on other sites

  • 6 months later...

Hi Dedra, i am facing the same problem where i want to display the quantity discount. Unfortunately i am not french, would u be a darling and assist to translate the solution?

 

I would like to add the quantity product discount on the product list.

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