View Single Post
  #56  
Old 11-19-2006, 09:04 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default Re: Must "Accept terms" before submitting the order

Ok, registration page hack:

1. open skin/customer/main/register.tpl and add following code after {capture name=dialog}:
Code:
<script type="text/javascript"> {literal} 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:
{$lng.txt_terms_and_conditions_newbie_note}
with:
Code:
<input name="agreecheck" type="checkbox" onclick="agreesubmit(this)" /> {$lng.txt_terms_and_conditions_newbie_note}

3. replace:
{include file="buttons/submit.tpl" type="input" style="button" href="javascript: return check_registerform_fields();"}

with:
Code:
<input type="button" value="{$lng.lbl_submit}" onclick="javascript: return check_registerform_fields();" style="padding: 4px; color: #BD0000; font-weight: bold;" disabled="disabled" />
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote