Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Commit 4f47552

Browse files
author
fatmaBouchekoua
committed
FO: Add amount discount on product thumbnails
1 parent 7c6d9e5 commit 4f47552

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/catalog/_partials/miniatures/product.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050

5151
<span class="regular-price">{$product.regular_price}</span>
5252
{if $product.discount_type === 'percentage'}
53-
<span class="discount-percentage">{$product.discount_percentage}</span>
53+
<span class="discount-percentage discount-product">{$product.discount_percentage}</span>
54+
{elseif $product.discount_type === 'amount'}
55+
<span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
5456
{/if}
5557
{/if}
5658

0 commit comments

Comments
 (0)