From 29ddec9e6243957318262a6764b753d379d721ef Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Tue, 4 May 2021 12:36:03 +0200 Subject: [PATCH] =?UTF-8?q?On=20rajoute=20dans=20single-product=20l'origin?= =?UTF-8?q?e=20et=20on=20tient=20compte=20du=20fait=20qu'il=20peut=20y=20a?= =?UTF-8?q?voir=20plusieurs=20d=C3=A9clinaisons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom/includes/single-product.html | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/frontOffice/custom/includes/single-product.html b/templates/frontOffice/custom/includes/single-product.html index e63dad03..d92e5165 100644 --- a/templates/frontOffice/custom/includes/single-product.html +++ b/templates/frontOffice/custom/includes/single-product.html @@ -39,8 +39,8 @@
- - {if $_PROVENANCE ne ""}{$_PROVENANCE}{else}{intl l="Non précisé"}{/if} + + {if $_PROVENANCE ne ""}{$_PROVENANCE}{else}{intl l="Non précisée"}{/if}
{* Stock *} @@ -74,6 +74,7 @@ {intl l="From %price" price={format_money number=$TAXED_PROMO_PRICE}} {loop name="attributes" type="attribute" product="$product_id" order="manual"} {$TITLE} + {if ($LOOP_TOTAL > 1) && ($LOOP_COUNT < $LOOP_TOTAL)} ou {/if} {/loop} @@ -89,11 +90,10 @@ {loop type="product_sale_elements" name="pse" default=1 product=$product_id} {format_money number=$TAXED_PROMO_PRICE} - {if $LOOP_COUNT = 1} - {loop name="attributes" type="attribute" product="$product_id" order="manual"} - {$TITLE} - {/loop} - {/if} + {loop name="attributes" type="attribute" product="$product_id" order="manual"} + {$TITLE} + {if ($LOOP_TOTAL > 1) && ($LOOP_COUNT < $LOOP_TOTAL)} ou {/if} + {/loop} {if $SHOW_ORIGINAL_PRICE} @@ -112,6 +112,7 @@ {intl l="From %price" price={format_money number=$TAXED_PRICE}} {loop name="attributes" type="attribute" product="$product_id" order="manual"} {$TITLE} + {if ($LOOP_TOTAL > 1) && ($LOOP_COUNT < $LOOP_TOTAL)} ou {/if} {/loop} {/loop} @@ -119,11 +120,10 @@ {elseloop rel="dp"} {loop type="product_sale_elements" name="pse" default=1 product=$product_id} {format_money number=$TAXED_PRICE} - {if $LOOP_COUNT = 1} - {loop name="attributes" type="attribute" product="$product_id" order="manual"} - {$TITLE} - {/loop} - {/if} + {loop name="attributes" type="attribute" product="$product_id" order="manual"} + {$TITLE} + {if ($LOOP_TOTAL > 1) && ($LOOP_COUNT < $LOOP_TOTAL)} ou {/if} + {/loop} {/loop} {/elseloop}