I put this code in place as mentioned.. Everything seems to work except the submit button becomes non-functional. It appears after you click I agree to the terms, but you cannot click the submit order button. What could be causing that?
I am using version 3.5.14
Code:
{* $Id: checkout.tpl,v 1.37.2.1 2004/07/19 07:26:50 max
Exp $ *}
{include file="location.tpl"
last_location=$lng.lbl_payment_details}
{capture name=checkout_dialog}
<form action="cart.php" method=post name=cartform>
{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}
<HR noshade size=1>
{include file="customer/main/cart_totals.tpl"}
{if $js_enabled}
<a href="javascript:
document.cartform.submit()">{include
file="buttons/update.tpl"}</a>
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_update}
{/if}
</form>
{/capture}
{include file="dialog.tpl" title="`$lng.lbl_checkout`:
`$lng.lbl_step` `$checkout_step` `$lng.lbl_of`
`$total_checkout_steps`"
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 ""}
<h5>{$lng.lbl_payment_method}:
{$payment_data.payment_method}</h5>
{capture name=dialog}
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<form action="{$payment_data.payment_script_url}"
method=post name=checkout_form>
<input type=hidden name=action value="place_order">
<tr><td>
<pre>
<font>
{include file="customer/main/customer_details.tpl"}
</font>
</pre>
<a
href="register.php?mode=update&action=cart&paymentid={$s
marty.get.paymentid}">{include
file="buttons/modify.tpl"}</a>
{if $ignore_payment_method_selection eq ""}
<div align=right>
<a href="cart.php?mode=checkout">{include
file="buttons/change_payment_method.tpl"}</a>
</div>
{/if}
{if $error eq 'fields'}
<FONT
color="red">{$lng.txt_require_cc_fields_error}</FONT>
{/if}
<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}
<a href="javascript: {if $config.General.check_cc_number
eq "Y" and $payment_data.payment_script eq
"payment_cc.php" and $config.disable_ccinfo ne
"Y"}if(checkCCNumber(document.checkout_form.card_number,
document.checkout_form.card_type) &&
checkExpirationDate(document.checkout_form.card_expire)
{if $config.disable_ccinfo ne "C"} &&
checkCVV2(document.checkout_form.card_cvv2,document.chec
kout_form.card_type){/if}){/if}
document.checkout_form.submit()">{include
file="buttons/submit_order.tpl" style="button"}</a>
{else}
{include file="submit_wo_js.tpl"
value=$lng.lbl_submit_order}
{/if}
</td></tr>
</form>
</table>
{/capture}
{include file="dialog.tpl"
title=$lng.lbl_payment_details
content=$smarty.capture.dialog extra="width=100%"}
{elseif $payment_methods ne ""}
{capture name=dialog}
<form method=get action="cart.php" name=checkout_form>
<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}&nbs
p;</td>
<td>{$payment_methods[payment].payment_details}</td>
</tr>
{/section}
<input type=hidden name=mode value=checkout>
</table>
<div align=center>
{if $js_enabled}
<a href="javascript:
document.checkout_form.submit()">{include
file="buttons/continue.tpl" style="button"}</a>
{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}
Thanks in advance!