{strip} {$wa->globals("hideSidebar", true)} {$wa->globals("hidePane", true)} {$disable_compare = true} {$_subtotal = 0}
{if !$cart.count} {$wa->globals("globalHeader", "[`Shopping cart`]")}

[`All products have been removed from the cart.`]

[`Please add new products to the cart`]!
{else} {$wa->globals("globalHeader", "[`Shopping cart`]")}
{* CART ITEM *}
{foreach $cart.items as $item} {$_subtotal = $_subtotal + $item.full_price}
{* NAME *}

{$item.product.name|escape} {if isset($item.sku_name) && strlen($item.sku_name) && $item.sku_name != $item.product.name}{$item.sku_name|escape}{/if}

{if !empty($item.sku_code)}
[`SKU`] {$item.sku_code}
{/if} {* SERVICES *} {if !empty($item.services)}
{foreach $item.services as $service_id => $s}
{if isset($s.variants)} {else} {/if}
{/foreach}
{/if} {* ERRORS *} {if !empty($item.error)} {/if}
{* AMOUNT *}
{* TOTAL *}
{shop_currency_html($item.full_price, true)}
{* ACTIONS *}
{/foreach}
{* CART TOTAL *}
{* DISCOUNT *} {* AFFILIATE BONUS *} {if shopAffiliate::isEnabled() && $affiliate_bonus > 0} {/if} {* TOTAL *} {* CHECKOUT *}
{* COUPONS *} {if shopDiscounts::isEnabled('coupons')}
{if $coupon_code && empty($coupon_discount) && empty($coupon_free_shipping)}
[`Invalid coupon code`]
{/if}
{/if} [`Discount`]:
{if !empty($discount)}-{shop_currency_html($discount, true)}{else}0{/if}
{sprintf( _w('You have %s bonus point! You can use it to get an additonal discount of up to %s.', 'You have %s bonus points! You can use some of them to get an additonal discount of up to %s.', $affiliate_bonus, false), "{$affiliate_bonus}", "{shop_currency_html($potential_affiliate_discount, $wa->shop->currency())}" )}
{if $use_affiliate} [`Don’t use bonus discount`] {else} [`Use bonus`] {/if}
{if $use_affiliate}-{shop_currency_html(shopAffiliate::convertBonus($used_affiliate_bonus))}{else}0{/if}
[`Total`]: {shop_currency_html($cart.total, true)}
{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}
{* @event frontend_cart.%plugin_id% *} {foreach $frontend_cart as $_}{$_}{/foreach}
{* RELATED PRODUCT LIST *} {$related = $wa->shop->crossSelling($cart.items, 'product_id')} {if !empty($related)} {/if} {/if}
{/strip}