{* $Id: checkout.tpl,v 1.70.2.4 2006/11/21 14:35:34 svowl Exp $ *} {capture name=checkout_dialog}
{if $config.Appearance.show_cart_details eq "Y" or ($config.Appearance.show_cart_details eq "L" and $smarty.get.paymentid ne "" and $smarty.get.mode eq "checkout")} {include file="customer/main/cart_details.tpl"} {else} {include file="customer/main/cart_contents.tpl"} {/if}

{include file="customer/main/cart_totals.tpl"}

{if $js_enabled} {include file="buttons/update.tpl" href="javascript: document.cartform.submit()" js_to_href="Y"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_update} {/if}
{if $active_modules.Rubymods_Currency_Rates && $config.Rubymods_Currency_Rates.ruby_rates_charge_alt eq "Y" && $smarty.get.mode eq "checkout"}
{include file= "modules/Rubymods/menu_ruby_currencies.tpl" }
{/if} {/capture} {assign var="_dlg_title" value=$lng.lbl_checkout_step_x_of_y|substitute:"X":$checkout_step:"Y":$total_checkout_steps} {include file="dialog.tpl" title=$_dlg_title content=$smarty.capture.checkout_dialog extra='width="100%"'}

{if $smarty.get.mode eq "auth"} {include file="main/error_login_incorrect.tpl"} {/if} {if $payment_data.payment_method ne ""}

{$lng.lbl_payment_method}: {$payment_data.payment_method}
{capture name=dialog}
{include file="customer/main/sexy_customer_details.tpl"}
{if $paypal_express_active}      {include file="payments/ps_paypal_pro_express_checkout.tpl" paypal_express_link="return"} {else} {include file="buttons/modify.tpl" href="register.php?mode=update&action=cart&paymentid=`$smarty.get.paymentid`"} {/if}

{if $ignore_payment_method_selection eq ""}

{include file="buttons/button.tpl" button_title=$lng.lbl_change_payment_method href="cart.php?mode=checkout"}
{/if} {include file="check_required_fields_js.tpl"} {if $payment_data.payment_template ne ""} {include file=$payment_data.payment_template} {/if} {if $payment_cc_data.cmpi eq 'Y' && $config.CMPI.cmpi_enabled eq 'Y'} {include file="main/cmpi.tpl"} {/if} {include file="customer/main/checkout_notes.tpl"} {if $active_modules.XAffiliate eq "Y" && $config.XAffiliate.ask_partnerid_on_checkout eq 'Y' && $partner eq ''} {include file="partner/main/checkout_partner.tpl"} {/if}
{$lng.txt_terms_and_conditions_note}


{if $js_enabled} {assign var="button_href" value="javascript: "} {if $config.General.check_cc_number eq "Y" and ($payment_cc_data.type eq "C" or $payment_data.paymentid eq 1 or ($payment_data.processor_file eq "ps_paypal_pro.php" and $payment_cc_data.paymentid ne $payment_data.paymentid)) and $payment_cc_data.disable_ccinfo ne "Y"} {assign var="button_href" value=$button_href|cat:"if(checkCCNumber(document.checkout_form.card_number,document.checkout_form.card_type) && checkExpirationDate(document.checkout_form.card_expire_Month,document.checkout_form.card_expire_Year)"} {if $payment_cc_data.disable_ccinfo ne "C"} {assign var="button_href" value=$button_href|cat:" && checkCVV2(document.checkout_form.card_cvv2,document.checkout_form.card_type)"} {/if} {assign var="button_href" value=$button_href|cat:")"} {/if} {assign var="button_href" value=$button_href|cat:" if(checkRequired(requiredFields)) if(checkDBClick()) document.checkout_form.submit()"} {if $payment_data.processor_file eq 'ps_gcheckout.php'} {include file="buttons/gcheckout.tpl" onclick=$button_href} {else} {include file="buttons/button.tpl" button_title=$lng.lbl_submit_order style="button" href=$button_href} {/if} {else} {if $payment_data.processor_file eq 'ps_gcheckout.php'} {include file="buttons/gcheckout.tpl"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit_order} {/if} {/if}
{/capture} {include file="dialog.tpl" title=$lng.lbl_payment_details content=$smarty.capture.dialog extra='width="100%"'} {elseif $payment_methods ne ""} {capture name=dialog}
{section name=payment loop=$payment_methods} {if not ($display_cod eq "" and $payment_methods[payment].is_cod eq "Y")} {if $payment_methods[payment].processor eq "ps_paypal_pro.php"} {else} {/if} {/if} {/section}
{include file="payments/ps_paypal_pro_express_checkout.tpl" paypal_express_link="logo"}   
{if $payment_methods[payment].paymentid eq 16} {if $ruby_store_currency eq "GBP"} {include file="skin1/modules/Fast_Lane_Checkout/GBP_pay.tpl"} {elseif $ruby_store_currency eq "USD"} {include file="skin1/modules/Fast_Lane_Checkout/USD_pay.tpl"} {/if} {else} {$payment_methods[payment].payment_details|default:" "} {/if}

{if $js_enabled} {include file="buttons/continue.tpl" style="button" href="javascript: document.checkout_form.submit()"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_continue} {/if}
{/capture} {include file="dialog.tpl" title=$lng.lbl_payment_method content=$smarty.capture.dialog extra='width="100%"'} {/if}