Suite à MAJ 2.3.4, il manquait des choses dans des templates

This commit is contained in:
2020-05-03 09:13:06 +02:00
parent 35a800ca0e
commit 3f71343401
212 changed files with 1396 additions and 7451 deletions

View File

@@ -11,16 +11,16 @@
</td>
</tr>
<tr>
<td class="col-md-4">p={$ID}
<td class="col-md-4">
{ifloop rel="pse-first-image"}
{loop type="product-sale-elements-image" name="pse-first-image" product_sale_elements_id={$smarty.get.pse_id} limit="1"}
{loop type="image" name="product-image" id=$PRODUCT_IMAGE_ID source="product" limit="1" width="720" height="482" resize_mode="borders"}
{loop type="image" name="product-image" id=$PRODUCT_IMAGE_ID product=$ID limit="1" width="218" height="146" resize_mode="borders"}
<img itemprop="image" src="{$IMAGE_URL nofilter}" alt="Product #{$LOOP_COUNT}">
{/loop}
{/loop}
{/ifloop}
{elseloop rel="pse-first-image"}
{loop type="image" name="product-image" product=$ID limit="1" width="720" height="482" resize_mode="borders"}
{loop type="image" name="product-image" product=$ID limit="1" width="218" height="146" resize_mode="borders"}
<img itemprop="image" src="{$IMAGE_URL nofilter}" alt="Product #{$LOOP_COUNT}">
{/loop}
{/elseloop}
@@ -33,19 +33,13 @@
</td>
<td class="col-md-4">
{loop type="product_sale_elements" name="product_price" id={$smarty.get.pse_id}}
{$price = $TAXED_PRICE}
{$promoPrice = $TAXED_PROMO_PRICE}
{loop type="digressive" name="digressivePrice" pse_id={$smarty.get.pse_id} quantity={$smarty.get.quantity} limit=1}
{$price = $TAXED_PRICE}
{$promoPrice = $TAXED_PROMO_PRICE}
{/loop}
{if $IS_PROMO == 1}
<div class="special-price">{$smarty.get.quantity} x <span class="price">{format_money number=$promoPrice}</span></div>
<small class="old-price"> <span class="price">{format_money number=$price}</span></small>
{assign "real_price" $TAXED_PROMO_PRICE}
<div class="special-price"><span class="price">{format_money number=$TAXED_PROMO_PRICE}</span></div>
<small class="old-price"> <span class="price">{format_money number=$TAXED_PRICE}</span></small>
{else}
<div class="special-price">{$smarty.get.quantity} x <span class="price">{format_money number=$price}</span></div>
{assign "real_price" $TAXED_PRICE}
<div class="special-price"><span class="price">{format_money number=$TAXED_PRICE}</span></div>
{/if}
{/loop}
</td>
@@ -62,7 +56,7 @@
<div class="products-content">
<ul class="list-unstyled row products-grid">
{loop type="accessory" name="accessories" product="$ID" order="random" limit="3"}
{include file="includes/single-product.html" product_id=$ACCESSORY_ID hasBtn=false hasDescription=false width="720" height="482"}
{include file="includes/single-product.html" product_id=$ACCESSORY_ID hasBtn=false hasDescription=false width="218" height="146"}
{/loop}
</ul>
</div>

View File

@@ -62,18 +62,7 @@
<span class="old-price col-xs-6"><span class="price-label">{intl l="Regular Price:"} </span><span class="price">{format_money number=$TAXED_PRICE}</span></span>
{/if}
{else}
{$prix_mini=0}
{loop type="digressive" name="digressiveLoop" product_id={$product_id}}
{$prix_mini={$TAXED_PRICE}}
{if {$TAXED_PRICE} < {$prix_mini}}
{$prix_mini={$TAXED_PRICE}}
{/if}
{/loop}
{if $prix_mini > 0}
<span class="regular-price col-xs-12"><span itemprop="price" class="price">{intl l="From %price" price={format_money number=$prix_mini}}</span></span>
{else}
<span class="regular-price col-xs-12"><span itemprop="price" class="price">{format_money number=$BEST_TAXED_PRICE}</span></span>
{/if}
{/if}
</div>