Files
domokits/templates/frontOffice/default2020/includes/addedToCart.html

72 lines
3.8 KiB
HTML

{* This page should not replace the current previous URL *}
{set_previous_url ignore_current="1"}
{default_translation_domain domain='fo.default2020'}
{loop type="product" name="add_product_to_cart" id={product attr="id"}}
<div class="clearfix">
<table>
<tr>
<td colspan="3">
<h3 class="text-center">{intl l="The product has been added to your cart" }</h3>
</td>
</tr>
<tr>
<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="218" height="146" resize_mode="borders"}
<!-- TheCoreDev le 16/12/2021 : valeurs avant modif = width="720" height="482" -->
<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"}
<img itemprop="image" src="{$IMAGE_URL nofilter}" alt="Product #{$LOOP_COUNT}">
{/loop}
{/elseloop}
</td>
<td class="col-md-4">
<h2>{$TITLE}</h2>
{loop type="attribute_combination" name="product_options" product_sale_elements={$smarty.get.pse_id} order="manual"}
<p>{$ATTRIBUTE_TITLE} : {$ATTRIBUTE_AVAILABILITY_TITLE}</p>
{/loop}
</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>
{else}
<div class="special-price">{$smarty.get.quantity} x <span class="price">{format_money number=$price}</span></div>
{/if}
{/loop}
</td>
</tr>
</table>
<a href="{url path="/cart"}" role="button" class="btn btn-primary pull-right"><i class="fa fa-shopping-cart"></i> {intl l="View Cart"}</a>
<button type="button" class="btn btn-default pull-right" data-dismiss="modal"><i class="fa fa-chevron-right"></i> {intl l="Continue Shopping"}</button>
</div>
{ifloop rel="accessories"}
<aside id="products-upsell" class="grid" role="complementary" aria-labelledby="products-upsell-label">
<div class="products-heading">
<h3 id="products-upsell-label">{intl l="Upsell Products"}</h3>
</div>
<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"}
{/loop}
</ul>
</div>
</aside><!-- #products-upsell -->
{/ifloop}
{/loop}