For MPC beside Current price display also Old price if discounted

This commit is contained in:
Mihael
2026-01-30 14:21:44 +01:00
parent 4101d4df6f
commit 3c1d969711
2 changed files with 62 additions and 12 deletions

View File

@@ -1,6 +1,11 @@
{if $mpc}
<div class="b2c-price-block mpcrender">
<span class="b2c-price-label">MPC:</span>
<span class="b2c-price">{$mpc}</span>
</div>
{if isset($mpc_new) && $mpc_new > 0}
<div class="b2c-price-block mpcrender">
<span class="b2c-price-label">MPC:</span>
{if isset($mpc_old) && $mpc_old > $mpc_new}
<span class="price price--regular">{$mpc_old}</span>
{/if}
<span class="b2c-price">{$mpc_new}</span>
</div>
{/if}