{* $Id: cart.tpl,v 1.45.2.1 2003/01/20 12:57:59 svowl Exp $ *} {include file="location.tpl" last_location=$lng.lbl_your_shopping_cart}

{$lng.lbl_your_shopping_cart}

{$lng.txt_cart_header} {if $active_modules.Gift_Certificates ne ""} {$lng.txt_cart_note} {/if}

{capture name=dialog}

{if $products ne ""}

{section name=product loop=$products} {/section}
{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$products[product].image_x image_y=$products[product].image_y product=$products[product].product}  {$products[product].product|escape}

{$products[product].descr|truncate:150:"...":true}

{if $products[product].product_options ne ""} {$lng.lbl_selected_options}:
{$products[product].product_options|replace:"\n":"
\n"}

{/if}

{if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_priceincart.tpl"} {else} {include file="currency.tpl" value=$products[product].price} x = {math equation="price*amount" price=$products[product].price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted} {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted}{if $config.General.use_vat eq "Y"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if} {/if}

{include file="buttons/delete_item.tpl"}

{if $active_modules.Gift_Certificates ne ""} {include file="modules/Gift_Certificates/gc_cart.tpl"} {/if}
{include file="customer/main/cart_totals.tpl"}
{include file="buttons/checkout.tpl"}     {include file="buttons/update.tpl"}
{else} {$lng.txt_your_shopping_cart_is_empty} {/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_items content=$smarty.capture.dialog extra="width=100%"} {if $cart.coupon_discount eq 0 and $products ne ""}

{if $active_modules.Discount_Coupons ne ""} {include file="modules/Discount_Coupons/add_coupon.tpl} {/if} {/if}