{* supreme 1.7.3 *} {if !isset($use_affiliate)} {$use_affiliate = false} {/if} {* Плагин "Гибкие скидки и бонусы" https://www.webasyst.ru/store/plugin/shop/flexdiscount/ *} {if class_exists(shopFlexdiscountPluginHelper)} {$flexdiscount_coupons = shopFlexdiscountPluginHelper::getActiveCoupons()} {/if} {if !$cart.count}

[`Shopping cart`]

[`Your shopping cart is empty.`]

{else}

[`Shopping cart`]

{foreach $cart.items as $item} {* {if $theme_settings.cart_crossselling == 'many'} {if $item@index < 3} {$_exclude_ids = []} {foreach $cart.items as $item}{$_exclude_ids[] = $item.product.id}{/foreach} {$related = $wa->shop->crossSelling($item.product.id, 5, true, $_exclude_ids)} {if $related}
 
{/if} {/if} {/if} *} {if !empty($item.error)} {$cart_errors[] = $item.error} {/if} {/foreach}
{$item.product.name|escape} {if $item.sku_name && $item.sku_name != $item.product.name}{$item.sku_name|escape}{/if} {if !empty($item.services)}
{foreach $item.services as $service_id => $s}
{if isset($s.variants)} {else} {/if}
{/foreach}
{else}
{/if}
{shop_currency_html($item.price, $item.currency)} {if $item.compare_price > $item.price}
{shop_currency_html($item.compare_price, $item.currency)} {/if}
[`Remove`]
{if !empty($cart_errors)} {/if} {literal} {/literal}
{if shopDiscounts::isEnabled('coupons')}
[`Coupon code`]:
{if $discount && $coupon_code} −{shop_currency_html($discount, true)} {elseif $coupon_code && empty($coupon_discount) && empty($flexdiscount_coupons)} [`Invalid coupon code`] {/if}
{/if} {if shopAffiliate::isEnabled() && $affiliate_bonus > 0}
{if $use_affiliate} {sprintf("[`You used affiliate bonus of %s points. You get additional discount of %s`]", "{$affiliate_bonus}", "{shop_currency_html($potential_affiliate_discount, $wa->shop->currency())}")} {else} {sprintf("[`Your current affiliate bonus of %s points allows you to get an additonal discount of up to %s`]", "{$affiliate_bonus}", "{shop_currency_html($potential_affiliate_discount, $wa->shop->currency())}")}
{/if}
{/if} {if shopAffiliate::isEnabled() && !empty($add_affiliate_bonus)}

{sprintf("[`This order will add +%s bonuses to your account, which you will be able to spend on getting additional discounts later.`]", $add_affiliate_bonus)}

{/if}
{if $discount} {/if} {if $use_affiliate} {/if}
[`Discount`]: −{shop_currency_html($discount, true)}
[`Affiliate bonus`]: −{shop_currency_html(shopAffiliate::convertBonus($used_affiliate_bonus), true)}
[`Total`]: {shop_currency_html($cart.total, true)}
{if empty($theme_settings.debug_disable_shop_frontend_cart) && empty($theme_settings.debug_disable_shop_all) && empty($theme_settings.debug_disable_all_hooks)} {* * Купить в один клик (easy IT) * https://www.webasyst.ru/store/plugin/shop/storequickorder/ *} {if isset($frontend_cart['storequickorder-plugin'])}
{$frontend_cart['storequickorder-plugin']} {/if} {* * Купить в один клик (Игорь Гапонов) * https://www.webasyst.ru/store/plugin/shop/quickorder/ *} {if isset($frontend_cart['quickorder-plugin'])}
{$frontend_cart['quickorder-plugin']} {/if} {* * Купить в 1 клик (BodySite) * https://www.webasyst.ru/store/plugin/shop/buy1click/ *} {if isset($frontend_cart['buy1click-plugin'])}
{$frontend_cart['buy1click-plugin']} {/if} {/if}
{if empty($theme_settings.debug_disable_shop_frontend_cart) && empty($theme_settings.debug_disable_shop_all) && empty($theme_settings.debug_disable_all_hooks)} {* @event frontend_cart.%plugin_id% *} {foreach $frontend_cart as $_key => $_} {if $_key != 'storequickorder-plugin' && $_key != 'quickorder-plugin' && $_key != 'buy1click-plugin'} {$_} {/if} {/foreach} {/if}
{$related = $wa->shop->crossSelling($cart.items, 'product_id')} {if $related}
[`Recommended!`]
{include file="products-list.html" products=$related catalog_view="slider"}
{/if}
{/if}