[Front office] Modifying upsell products
Display off upsell products is now based on accessory loop but not promo products
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
|
{loop type="product" name="add_product_to_cart" id=$smarty.get.product_id}
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
{loop type="cart" name="cartloop" limit="1" order="reverse"}
|
<table>
|
||||||
<table>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="col-md-4">
|
<td class="col-md-4">
|
||||||
{loop name="product_thumbnail" type="image" product=$PRODUCT_ID width="218" height="146" resize_mode="borders" limit="1"}
|
{loop name="product_thumbnail" type="image" product=$ID width="218" height="146" resize_mode="borders" limit="1"}
|
||||||
<img itemprop="image" src="{$IMAGE_URL}" alt="Product #{$LOOP_COUNT}">
|
<img itemprop="image" src="{$IMAGE_URL}" alt="Product #{$LOOP_COUNT}">
|
||||||
{/loop}
|
{/loop}
|
||||||
</td>
|
</td>
|
||||||
@@ -17,8 +17,8 @@
|
|||||||
<td class="col-md-4">
|
<td class="col-md-4">
|
||||||
|
|
||||||
{if $IS_PROMO == 1}
|
{if $IS_PROMO == 1}
|
||||||
{assign "real_price" $PROMO_TAXED_PRICE}
|
{assign "real_price" $TAXED_PROMO_PRICE}
|
||||||
<div class="special-price"><span class="price">{$PROMO_TAXED_PRICE} {currency attr="symbol"}</span></div>
|
<div class="special-price"><span class="price">{$TAXED_PROMO_PRICE} {currency attr="symbol"}</span></div>
|
||||||
<small class="old-price"> <span class="price">{$TAXED_PRICE} {currency attr="symbol"}</span></small>
|
<small class="old-price"> <span class="price">{$TAXED_PRICE} {currency attr="symbol"}</span></small>
|
||||||
{else}
|
{else}
|
||||||
{assign "real_price" $TAXED_PRICE}
|
{assign "real_price" $TAXED_PRICE}
|
||||||
@@ -28,25 +28,21 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{/loop}
|
|
||||||
|
|
||||||
<a href="{url path="/cart"}" role="button" class="btn btn_add_to_cart pull-right"><span>{intl l="View Cart"}</span></a>
|
<a href="{url path="/cart"}" role="button" class="btn btn_add_to_cart pull-right"><span>{intl l="View Cart"}</span></a>
|
||||||
<button type="button" class="btn btn-checkout pull-right" data-dismiss="modal"><span>{intl l="Continue Shopping"}</span></button>
|
<button type="button" class="btn btn-checkout pull-right" data-dismiss="modal"><span>{intl l="Continue Shopping"}</span></button>
|
||||||
</div>
|
</div>
|
||||||
|
{ifloop rel="accessories"}
|
||||||
{ifloop rel="product_upsell"}
|
<aside id="products-upsell" role="complementary" aria-labelledby="products-upsell-label">
|
||||||
<aside id="products-upsell" role="complementary" aria-labelledby="products-upsell-label">
|
<div class="products-heading">
|
||||||
<div class="products-heading">
|
<h3 id="products-upsell-label">{intl l="Upsell Products"}</h3>
|
||||||
<h3 id="products-upsell-label">{intl l="Upsell Products"}</h3>
|
</div>
|
||||||
</div>
|
<div class="products-content">
|
||||||
|
<ul class="products-grid product-col-3 hover-effect">
|
||||||
<div class="products-content">
|
{loop type="accessory" name="accessories" product="$ID" order="min_price"}
|
||||||
<ul class="products-grid product-col-3 hover-effect">
|
{include file="includes/single-product.html" product_id=$ACCESSORY_ID hasBtn=false hasDescription=false width="218" height="146"}
|
||||||
{loop name="product_upsell" type="product" promo="yes" limit="3"}
|
{/loop}
|
||||||
{include file="includes/single-product.html" product_id=$ID hasBtn=false hasDescription=true width="218" height="146"}
|
</ul>
|
||||||
{/loop}
|
</div>
|
||||||
|
</aside><!-- #products-upsell -->
|
||||||
</ul>
|
{/ifloop}
|
||||||
</div>
|
{/loop}
|
||||||
</aside><!-- #products-upsell -->
|
|
||||||
{/ifloop}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user