View Single Post
  #130  
Old 12-04-2012, 07:13 PM
 
wwoj wwoj is offline
 

Newbie
  
Join Date: Nov 2012
Posts: 2
 

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

Quote:
Originally Posted by Zaja
v. 4.1.1, 4.1.2, 4.1.3:
-----------------

1. open skin/modules/Fast_Lane_Checkout/checkout_3_place.tpl and add following code after {capture name=dialog}:
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_terms_and_conditions_note}
with:
Code:
<input name="agreecheck" type="checkbox" onclick="agreesubmit(this)" /> {$lng.txt_terms_and_conditions_note}

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. Repeat procedure in skin/customer/main/checkout.tpl (add javascript code after {capture name=checkout_dialog})

Thats it!

Thank you so much. This works fantastic. I really appreciate your help.
__________________
Version 4.1.9
Reply With Quote