Rajout de l'unité

This commit is contained in:
2021-04-19 19:07:44 +02:00
parent bd1e41ed6a
commit 39a0307e90
2 changed files with 23 additions and 17 deletions

View File

@@ -206,21 +206,8 @@
{* List of currency : The currency used to describe the product price, in three-letter ISO format. *}
<meta itemprop="priceCurrency" content="{currency attr="code"}">
<span id="pse-promo">
<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}
{intl l="unite"}
</span>
{/loop}
{/ifloop}
{elseloop rel="dp"}
{ifloop rel="dp"}
{loop type="digressive" name="dp" product_id=$product_id quantity=1}
<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}">
@@ -229,15 +216,25 @@
<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>
{/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}
</div>
<!-- Affichage de l'unité (au kg, à l'unité) //-->
{if $pse_count = 1}
{loop name="attributes" type="attribute" product="$product_id" order="manual"}
<span class="unite">{$TITLE}</span>
{/loop}
{/if}
<div id="pse-validity" class="validity alert alert-warning" style="display: none;" >
{intl l="Sorry but this combination does not exist."}