Add product reduction
This commit is contained in:
@@ -108,10 +108,23 @@ s{*
|
||||
</span>
|
||||
{/if}
|
||||
{if ( $productPriceInDetail['price'] ) }
|
||||
{assign var="customer_group" value=Group::getCurrent()}
|
||||
{assign var="reduction" value=$customer_group->reduction}
|
||||
|
||||
<span class="detal-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"}
|
||||
</span>
|
||||
|
||||
<span class="product-reduction">
|
||||
Rabat:
|
||||
{if $reduction == (int)$reduction}
|
||||
{$reduction|intval}
|
||||
{else}
|
||||
{$reduction|string_format:"%.1f"}
|
||||
{/if}
|
||||
%
|
||||
</span>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -665,3 +665,7 @@ a[href="https://redline.com.pl/pl/zamówienie?newAddress=invoice"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.product-reduction {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user