Add product reduction

This commit is contained in:
Roman Pyrih
2025-06-27 10:50:30 +02:00
parent 519cb8f5ea
commit 67e66e60d6
2 changed files with 17 additions and 0 deletions

View File

@@ -108,10 +108,23 @@ s{*
</span> </span>
{/if} {/if}
{if ( $productPriceInDetail['price'] ) } {if ( $productPriceInDetail['price'] ) }
{assign var="customer_group" value=Group::getCurrent()}
{assign var="reduction" value=$customer_group->reduction}
<span class="detal-price"> <span class="detal-price">
{if $language.iso_code == 'pl'}Cena detaliczna{else}The retail price{/if}: {$productPriceInDetail['price']} {if $language.iso_code == 'pl'}Cena detaliczna{else}The retail price{/if}: {$productPriceInDetail['price']}
{$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"}
</span> </span>
<span class="product-reduction">
Rabat:
{if $reduction == (int)$reduction}
{$reduction|intval}
{else}
{$reduction|string_format:"%.1f"}
{/if}
%
</span>
{/if} {/if}
</span> </span>
</div> </div>

View File

@@ -665,3 +665,7 @@ a[href="https://redline.com.pl/pl/zamówienie?newAddress=invoice"]
} }
} }
} }
.product-reduction {
font-size: 22px;
}