{capture name=path}{l s='Your shopping cart'}{/capture} {include file=$tpl_dir./breadcrumb.tpl}

{l s='Shopping cart summary'}

{assign var='current_step' value='summary'} {include file=$tpl_dir./order-steps.tpl} {include file=$tpl_dir./errors.tpl} {if isset($empty)}

{l s='Your shopping cart is empty.'}

{else} {if isset($lastProductAdded) AND $lastProductAdded} {foreach from=$products item=product} {if $product.id_product == $lastProductAdded}
  {l s='Last added product'}  
{$product.name|escape:'htmlall':'UTF-8'}
{$product.name|escape:'htmlall':'UTF-8'}
{if $product.attributes}{$product.attributes|escape:'htmlall':'UTF-8'}{/if}
{/if} {/foreach} {/if}

{l s='Your shopping cart contains'} {$products|@count} {if $products|@count > 1}{l s='products'}{else}{l s='product'}{/if}

{if $total_discounts != 0} {/if} {if $total_wrapping > 0} {/if} {if $shippingCost > 0} {/if} {if $free_ship > 0} {/if} {foreach from=$products item=product name=productLoop} {assign var='productId' value=$product.id_product} {assign var='productAttributeId' value=$product.id_product_attribute} {assign var='quantityDisplayed' value=0} {* Display the product line *} {include file=$tpl_dir./shopping-cart-product-line.tpl} {* Then the customized datas ones*} {if isset($customizedDatas.$productId.$productAttributeId)} {foreach from=$customizedDatas.$productId.$productAttributeId key='id_customization' item='customization'} {assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity} {/foreach} {* If it exists also some uncustomized products *} {if $product.quantity-$quantityDisplayed > 0}{include file=$tpl_dir./shopping-cart-product-line.tpl}{/if} {/if} {/foreach} {if $discounts} {foreach from=$discounts item=discount name=discountLoop} {/foreach} {/if}
{l s='Product'} {l s='Description'} {l s='Ref.'} {l s='Avail.'} {l s='Unit price'} {l s='Qty'} {l s='Total'}
{l s='Total products:'} {convertPrice price=$total_products_wt}
{l s='Total vouchers:'} {convertPrice price=$total_discounts}
{l s='Total gift-wrapping:'} {convertPrice price=$total_wrapping}
{l s='Total shipping:'} {convertPrice price=$shippingCost}
{l s='Total:'} {convertPrice price=$total_price}
{l s='Remaining amount to be added to your cart in order to obtain free shipping:'} {convertPrice price=$free_ship}
{foreach from=$customization.datas key='type' item='datas'} {if $type == $CUSTOMIZE_FILE}
    {foreach from=$datas item='picture'}
  • {/foreach}
{elseif $type == $CUSTOMIZE_TEXTFIELD}
    {foreach from=$datas item='textField' name='typedText'}
  • {l s='Text #'}{$smarty.foreach.typedText.index+1}{l s=':'} {$textField.value}
  • {/foreach}
{/if} {/foreach}
{$customization.quantity} {l s='Add'}
{l s='Substract'}
{l s='Delete'}
{$discount.name} {$discount.description} {l s='Delete'} {convertPrice price=$discount.value_real*-1}
{if $voucherAllowed}
{if $errors_discount} {/if}

{l s='Vouchers'}

{/if} {$HOOK_SHOPPING_CART} {if ($carrier->id AND !$virtualCart) OR $delivery->id OR $invoice->id}
{if $delivery->id} {/if} {if $invoice->id} {/if} {if $carrier->id AND !$virtualCart}

{l s='Carrier:'}

{if isset($carrierPicture)}{l s='Carrier'}{/if} {$carrier->name|escape:'htmlall':'UTF-8'}
{/if}
{/if}

{l s='Next'} » « {l s='Continue shopping'}

{/if}