Installation for ezCheckout users on 4.0.18, 4.0.19:
1. open skin/customer/main/checkout.tpl and add following code at the top of the file:
Code:
<script type="text/javascript">
{literal}
//"Accept terms" form submission- By Dynamic Drive
var checkobj
function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="button")
tempobj.disabled=!checkobj.checked
}}}
{/literal}
</script>
2. replace:
Code:
{$lng.txt_you_are_agree} <A href="help.php?section=conditions" target="_blank">"{$lng.lbl_terms_n_conditions}"</A> {$lng.lbl_and} <A href="help.php?section=business" target="_blank">"{$lng.lbl_privacy_statement}"</A>.
with:
Code:
<input name="agreecheck" type="checkbox" onclick="agreesubmit(this)" /> {$lng.txt_you_are_agree} "{$lng.lbl_terms_n_conditions}" {$lng.lbl_and} "{$lng.lbl_privacy_statement}".
3. replace:
Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_submit_order style="button" href=$button_href}
with:
Code:
<input type="button" value="{$lng.lbl_submit_order}" onclick="{$button_href}" style="padding: 4px; color: #BD0000; font-weight: bold;" disabled="disabled" />
4. Clean
templates_c directory!
Thats it!