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

@@ -210,19 +210,28 @@
<span class="special-price">
{ifloop rel="dp"}
{loop type="digressive" name="dp" product_id=$product_id quantity=1}
<span class="price-label">{intl l="Special Price:"} </span><span id="pse-price" class="price">
{if $IS_PROMO}
{format_money number=$TAXED_PROMO_PRICE symbol={currency attr="symbol"}}
{else}
{format_money number=$TAXED_PRICE symbol={currency attr="symbol"}}
{/if}
</span>
<span class="price-label">{intl l="Special Price:"} </span><span id="pse-price" class="price">
{if $IS_PROMO}
{format_money number=$TAXED_PROMO_PRICE symbol={currency attr="symbol"}}
{else}
{format_money number=$TAXED_PRICE symbol={currency attr="symbol"}}
{/if}
{intl l="unite"}
</span>
{/loop}
{/ifloop}
{elseloop rel="dp"}
<span id="pse-promo">
<span class="special-price"><span class="price-label">{intl l="Special Price:"} </span><span id="pse-price" class="price">{format_money number=$TAXED_PROMO_PRICE symbol={currency attr="symbol"}}</span></span>
<meta itemprop="price" content="{if $IS_PROMO}{$TAXED_PROMO_PRICE}{else}{$TAXED_PRICE}{/if}">
{if $SHOW_ORIGINAL_PRICE}
<span class="old-price"><span class="price-label">{intl l="Regular Price:"} </span><span id="pse-price-old" class="price">{format_money number=$TAXED_PRICE}</span></span>
{/if}
</span>
{/elseloop}
</span>
<meta itemprop="price" content="{if $IS_PROMO}{$TAXED_PROMO_PRICE}{else}{$TAXED_PRICE} le kilo{/if}">
<meta itemprop="price" content="{if $IS_PROMO}{$TAXED_PROMO_PRICE}{else}{$TAXED_PRICE}{/if}">
{if $SHOW_ORIGINAL_PRICE}
<span class="old-price"><span class="price-label">{intl l="Regular Price:"} </span><span id="pse-price-old" class="price">{format_money number=$TAXED_PRICE}</span></span>