On rajoute dans single-product l'origine et on tient compte du fait qu'il peut y avoir plusieurs déclinaisons

This commit is contained in:
2021-05-04 12:36:03 +02:00
parent 9a09fb6432
commit 29ddec9e62

View File

@@ -39,8 +39,8 @@
</div> </div>
<div class="product-provenance col-sm-12"> <div class="product-provenance col-sm-12">
<label class="label-provenance">{intl l="Provenance"}&nbsp;:&nbsp;</label> <label class="label-provenance">{intl l="Origine"}&nbsp;:&nbsp;</label>
<span class="texte-provenance">{if $_PROVENANCE ne ""}{$_PROVENANCE}{else}<i>{intl l="Non précisé"}</i>{/if}</span> <span class="texte-provenance">{if $_PROVENANCE ne ""}{$_PROVENANCE}{else}<i>{intl l="Non précisée"}</i>{/if}</span>
</div> </div>
{* Stock *} {* Stock *}
@@ -74,6 +74,7 @@
<span class="price">{intl l="From %price" price={format_money number=$TAXED_PROMO_PRICE}} <span class="price">{intl l="From %price" price={format_money number=$TAXED_PROMO_PRICE}}
{loop name="attributes" type="attribute" product="$product_id" order="manual"} {loop name="attributes" type="attribute" product="$product_id" order="manual"}
<span class="unite">{$TITLE}</span> <span class="unite">{$TITLE}</span>
{if ($LOOP_TOTAL > 1) && ($LOOP_COUNT < $LOOP_TOTAL)}<span class="unite"> ou </span>{/if}
{/loop} {/loop}
</span> </span>
</span> </span>
@@ -89,11 +90,10 @@
{loop type="product_sale_elements" name="pse" default=1 product=$product_id} {loop type="product_sale_elements" name="pse" default=1 product=$product_id}
<span class="regular-price col-xs-6"> <span class="regular-price col-xs-6">
<span itemprop="price" class="price" content="{$TAXED_PROMO_PRICE}">{format_money number=$TAXED_PROMO_PRICE} <span itemprop="price" class="price" content="{$TAXED_PROMO_PRICE}">{format_money number=$TAXED_PROMO_PRICE}
{if $LOOP_COUNT = 1} {loop name="attributes" type="attribute" product="$product_id" order="manual"}
{loop name="attributes" type="attribute" product="$product_id" order="manual"} <span class="unite">{$TITLE}</span>
<span class="unite">{$TITLE}</span> {if ($LOOP_TOTAL > 1) && ($LOOP_COUNT < $LOOP_TOTAL)}<span class="unite"> ou </span>{/if}
{/loop} {/loop}
{/if}
</span> </span>
</span> </span>
{if $SHOW_ORIGINAL_PRICE} {if $SHOW_ORIGINAL_PRICE}
@@ -112,6 +112,7 @@
<span class="regular-price col-xs-12"><span itemprop="price" class="price" content="{$TAXED_PRICE}">{intl l="From %price" price={format_money number=$TAXED_PRICE}} <span class="regular-price col-xs-12"><span itemprop="price" class="price" content="{$TAXED_PRICE}">{intl l="From %price" price={format_money number=$TAXED_PRICE}}
{loop name="attributes" type="attribute" product="$product_id" order="manual"} {loop name="attributes" type="attribute" product="$product_id" order="manual"}
<span class="unite">{$TITLE}</span> <span class="unite">{$TITLE}</span>
{if ($LOOP_TOTAL > 1) && ($LOOP_COUNT < $LOOP_TOTAL)}<span class="unite"> ou </span>{/if}
{/loop} {/loop}
</span></span> </span></span>
{/loop} {/loop}
@@ -119,11 +120,10 @@
{elseloop rel="dp"} {elseloop rel="dp"}
{loop type="product_sale_elements" name="pse" default=1 product=$product_id} {loop type="product_sale_elements" name="pse" default=1 product=$product_id}
<span class="regular-price col-xs-12"><span itemprop="price" class="price" content="{$TAXED_PRICE}">{format_money number=$TAXED_PRICE} <span class="regular-price col-xs-12"><span itemprop="price" class="price" content="{$TAXED_PRICE}">{format_money number=$TAXED_PRICE}
{if $LOOP_COUNT = 1} {loop name="attributes" type="attribute" product="$product_id" order="manual"}
{loop name="attributes" type="attribute" product="$product_id" order="manual"} <span class="unite">{$TITLE}</span>
<span class="unite">{$TITLE}</span> {if ($LOOP_TOTAL > 1) && ($LOOP_COUNT < $LOOP_TOTAL)}<span class="unite"> ou </span>{/if}
{/loop} {/loop}
{/if}
</span></span> </span></span>
{/loop} {/loop}
{/elseloop} {/elseloop}