Jump to content

[Solve] show quantity discount in product list


Recommended Posts

Hi,

 

the next Smarty code works fine at the: http://belvg.net/bysoftdev/

{if $product.price_tax_exc < $product.price_without_reduction}<span class="reduction">-{((1-($product.price_tax_exc / $product.price_without_reduction))*100)|string_format:"%01.0f"}%</span>{/if}

P.S. nemo, if I understand clearly you are right, there needs to display discount percentage 

 

Regards

Link to comment
Share on other sites

Dear all

 

I want quanity discount to show on top right corner of the product picture.

 

The location appear the word "NEW" orginaly, but I don't want to appear the word "New"

 

I want to appear qanity discount of this product.

 

Thanks^^

Link to comment
Share on other sites

Hi again,

 

first of all you need add the <span> with reduction after <li> element, set position: absolute for <span> and move right/left top/bottom with CSS top and right params: http://clip2net.com/clip/m212316/1401861701-clip-113kb.png For create background with red circle you need upload this image to your host and assign it to the <span> with background-image style.

 

Regards

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Hi all

 

Like dreamer79119, 

 

I want PERCENTAGE discount to show on top right corner of the product picture.

 

The location appear the word "NEW" or "SALE" orginaly, but I don't want to appear the word "New" or "SALE" 

 

I want to appear PERCENTAGE discount of each  product.

 

i'm using Prestashop 1.6, it is the first time that I manage one it and I'm new to programming, I would appreciate your help.

 

What code do I need and where do I add it? Thanks in advance
 
Sorry for my english
Link to comment
Share on other sites

×
×
  • Create New...