From 67e66e60d66fcd80c9ed936e3cfa476a02ae9f71 Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Fri, 27 Jun 2025 10:50:30 +0200 Subject: [PATCH] Add product reduction --- .../templates/hook/ps17/productDetailBlock.tpl | 13 +++++++++++++ themes/at_movic/assets/css/custom.scss | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/modules/dualpricedisplaypro/views/templates/hook/ps17/productDetailBlock.tpl b/modules/dualpricedisplaypro/views/templates/hook/ps17/productDetailBlock.tpl index 95ca5ae6..8ffe43cc 100644 --- a/modules/dualpricedisplaypro/views/templates/hook/ps17/productDetailBlock.tpl +++ b/modules/dualpricedisplaypro/views/templates/hook/ps17/productDetailBlock.tpl @@ -108,10 +108,23 @@ s{* {/if} {if ( $productPriceInDetail['price'] ) } + {assign var="customer_group" value=Group::getCurrent()} + {assign var="reduction" value=$customer_group->reduction} + {if $language.iso_code == 'pl'}Cena detaliczna{else}The retail price{/if}: {$productPriceInDetail['price']} {$dualPriceConfigData['tax_incl_label_name'][$idLang]|escape:"javascript":"UTF-8"} + + + Rabat: + {if $reduction == (int)$reduction} + {$reduction|intval} + {else} + {$reduction|string_format:"%.1f"} + {/if} + % + {/if} diff --git a/themes/at_movic/assets/css/custom.scss b/themes/at_movic/assets/css/custom.scss index d99b85f8..ebb04b01 100644 --- a/themes/at_movic/assets/css/custom.scss +++ b/themes/at_movic/assets/css/custom.scss @@ -665,3 +665,7 @@ a[href="https://redline.com.pl/pl/zamówienie?newAddress=invoice"] } } } + +.product-reduction { + font-size: 22px; +}