View Single Post
  #116  
Old 09-23-2004, 10:01 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Ricky, try this. Be sure to backup first!

Code:
{* $Id: checkout.tpl,v 1.37 2003/11/17 12:10:16 mclap Exp $ *} {include file="location.tpl" last_location=$lng.lbl_payment_details} {if $payment_data.payment_method ne ""} {* HERE WE HAVE A PAYMENT METHOD SELECTED ALREADY *} {* Show the make payment form *} {capture name=dialog} <form action="{$payment_data.payment_script_url}" method=post name=checkout_form> <input type=hidden name={$XCARTSESSNAME} value={$XCARTSESSID}> {if $payment_data.payment_template ne ""} {include file=$payment_data.payment_template} {/if} {include file="customer/main/checkout_notes.tpl"} <input type=hidden name=payment_method value="{$payment_data.payment_method}"> {$lng.txt_you_are_agree} "{$lng.lbl_terms_n_conditions}" {$lng.lbl_and} "{$lng.lbl_privacy_statement}". <p align=center> {if $js_enabled} {include file="buttons/submit_order.tpl" style="button"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit_order} {/if} </td></tr> </form> </table> {/capture} {include file="dialog.tpl" title=$payment_data.payment_method content=$smarty.capture.dialog extra="width=100%"} {* Show the payment details *} {capture name=dialog} <table border=0 cellpadding=0 cellspacing=0 width=100%> <input type=hidden name=action value="place_order"> <tr><td> <pre> <font> {include file="customer/main/customer_details.tpl"} </font> </pre> {include file="buttons/modify.tpl"} {if $ignore_payment_method_selection eq ""} <div align=right> {include file="buttons/change_payment_method.tpl"} </div> {/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_payment_details content=$smarty.capture.dialog extra="width=100%"} {elseif $payment_methods ne ""} {* HERE THEY SELECT THEIR PAYMENT METHOD *} {capture name=dialog} <form method=get action="cart.php" name=checkout_form> {$lng.txt_payment_method}</p> <table border=0 align=center> {section name=payment loop=$payment_methods} <tr> <td width=1><input type=radio name=paymentid value={$payment_methods[payment].paymentid}{if $payment_methods[payment].is_default eq "1"} checked{/if}></td> <td nowrap>{$payment_methods[payment].payment_method} </td> <td>{$payment_methods[payment].payment_details}</td> </tr> {/section} <input type=hidden name=mode value=checkout> </table> <div align=center> {if $js_enabled} {include file="buttons/continue.tpl" style="button"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_continue} {/if} </div> </form> {/capture} {include file="dialog.tpl" title=$lng.lbl_payment_method content=$smarty.capture.dialog extra="width=100%"} {/if}
Reply With Quote