{* $Id: checkout.tpl 1288 2006-02-03 15:10:53Z zeke $ *} {include file="cart_pages/progressbar.tpl"} {if $mode == 'customer_info'} {* Step1: Enter shipping and billing information *} {include file="cart_pages/profiles.tpl"} {elseif $mode == 'checkout'} {* Step1: Select shipping and payment methods *} {* Cart content table*} {capture name="mainbox"}
{**[PRODUCT_OPTIONS]**} {**[/PRODUCT_OPTIONS]**} {if $cart.use_discount} {/if} {foreach from=$cart_products item="cp" key="key"} {if $cart.use_discount} {/if} {/foreach}
{$lang.product}{$lang.options}{$lang.amount} {$lang.price}{$lang.discount}{$lang.subtotal}
{$cp.product}  {$lang.delete} 
{include file="common_templates/options_info.tpl" product_options=$cp.product_options} {include file="common_templates/price.tpl" value=$cp.price} {*math equation="subtotal - discount" discount=$cp.discount|default:"0" subtotal=$cp.subtotal|default:"0" assign="discounted_subtotal"*} {if $cp.discount|floatval}{include file="common_templates/price.tpl" value=$cp.discount}{else}-{/if} {include file="common_templates/price.tpl" value=$cp.subtotal}

{include file="buttons/update_cart.tpl" but_onclick="javascript: document.checkout_form.submit()" but_type="input"}

{if ($cart.discount|floatval)} {/if} {if $cart.coupons|floatval} {foreach from=$cart.coupons item="coupon" key="key"} {if !$coupon.ship} {/if} {/foreach} {/if} {if ($cart.discount|floatval) || ($cart.discount_coupon|floatval)} {/if} {if $cart.taxed_subtotal} {foreach from=$cart.taxes item="tax"} {/foreach} {/if} {if $settings.Shippings.disable_shipping != 'Y' && $shipping_rates} {if $cart.shipping_coupon} {assign var="key" value=$cart.shipping_coupon} {/if} {/if}
{$lang.subtotal}:   {include file="common_templates/price.tpl" value=$cart.subtotal}
{$lang.discount}:   {include file="common_templates/price.tpl" value=$cart.discount}
{$lang.discount_coupon} {$coupon.used_coupon} ({$coupon.info}):   {include file="common_templates/price.tpl" value=$coupon.value}
{$lang.discounted_subtotal}:   {include file="common_templates/price.tpl" value=$cart.discounted_subtotal}
{if $tax.price_includes_tax == 'Y'}{$lang.including_tax}{else}{$lang.tax}{/if} {$tax.description} ({$tax.formatted_rate}):   {include file="common_templates/price.tpl" value=$tax.tax_subtotal}
{$lang.taxed_subtotal}:   {include file="common_templates/price.tpl" value=$cart.taxed_subtotal}
{$lang.selected_shipping_method_cost}:   {include file="common_templates/price.tpl" value=$cart.shipping_cost}
{$lang.discount_coupon} {$cart.coupons.$key.used_coupon} ({$cart.coupons.$key.info}):   {include file="common_templates/price.tpl" value=$cart.coupons.$key.value}

{$lang.total_cost}:

 

{include file="common_templates/price.tpl" value=$cart.total}

{/capture} {include file="common_templates/mainbox.tpl" title=$lang.checkout content=$smarty.capture.mainbox} {* /Cart content table*} {if $cart_products} {include file="cart_pages/discount_coupon.tpl"} {/if} {include file="cart_pages/shipping_rates.tpl"} {if $cart.taxed_subtotal > '0'} {assign var="subtotal" value=$cart.taxed_subtotal} {else} {assign var="subtotal" value=$cart.subtotal} {/if} {if ($shipping_rates || $cart.shipping_required != 'Y' || $settings.Shippings.disable_shipping == 'Y') && $settings.General.min_order_amount <= $subtotal}
{* Payment methods form *} {capture name="mainbox"} {if $cart.total != 0} {foreach from=$payment_methods item="pm" name="pay"} {/foreach}
{$pm.payment}   {$pm.description}
{else} {/if}
{include file="buttons/continue.tpl" but_onclick="javascript: document.order_info_form.submit();" but_type="input"}
{/capture} {include file="common_templates/mainbox.tpl" title=$lang.select_payment_method content=$smarty.capture.mainbox anchor="payment_methods"} {elseif $settings.General.min_order_amount > $subtotal}

{$lang.text_min_order_amount_required} {include file="common_templates/price.tpl" value=$settings.General.min_order_amount}

{include file="buttons/continue_shopping.tpl" but_href=$continue_url|default:$index_script but_arrow="on"}

{/if} {* /Payment methods form *} {elseif $mode == 'summary'} {* Step3: Check all entered information and place order *} {capture name="mainbox"} {include file="profiles_pages/profiles_info.tpl" user_data=$cart.user_data shipping_method=$cart.shipping}
{if $payment_method.template} {$lang.payment_details}
{/if}
{* Payment methods form *} {if $payment_method.template}
{include file="payments/`$payment_method.template`" payment_id=$payment_method.payment_id}
{else} {/if}

{$lang.text_customer_notes}:


{include file="buttons/place_order.tpl" but_onclick="javascript: if (fn_can_place_order()) document.place_order_form.submit();"}
{/capture} {include file="common_templates/mainbox.tpl" title=$lang.summary content=$smarty.capture.mainbox} {/if}