Toujours sur intégration des prix dégressifs

This commit is contained in:
2021-04-19 17:09:30 +02:00
parent 7e940bcf3d
commit bd1e41ed6a
4 changed files with 105 additions and 9 deletions

View File

@@ -105,10 +105,22 @@
<a href="{token_url path="/cart/delete/%item_id" item_id=$ITEM_ID success_url={url path='/cart'}}" class="btn btn-link"><i class="fa fa-trash"></i> {intl l="Remove"}</a>
</td>
<td class="unitprice">
{ifloop rel="dp"}
{loop type="digressive" name="dp" product_id=$PRODUCT_ID quantity=$QUANTITY}
{if $IS_PROMO == 1}
<div class="special-price"><span class="price">{format_money number=$TAXED_PROMO_PRICE}</span></div>
<small class="old-price">{intl l="instead of"} <span class="price">{format_money number=$TAXED_PRICE}</span></small>
{else}
<div class="special-price"><span class="price">{format_money number=$TAXED_PRICE}</span></div>
{/if}
{/loop}
{/ifloop}
{elseloop rel="dp"}
<div class="special-price"><span class="price">{format_money number=$REAL_TAXED_PRICE}</span></div>
{if $IS_PROMO == 1}
<small class="old-price">{intl l="instead of"} <span class="price">{format_money number=$TAXED_PRICE}</span></small>
{/if}
{/elseloop}
</td>
<td class="qty">
<div class="form-group group-qty">