View Single Post
  #3  
Old 03-30-2011, 05:55 PM
 
Intellutions Intellutions is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 41
 

Default Re: disable terms and conditions/privacy from checkout

I was able to modify a template file and successfully removed the option. I'm on 4.4.2 and using the One Page AJAX Checkout, and this is the change I made:

In this file: /common_files/modules/One_Page_Checkout/opc_summary.tpl

Changed this code:
Code:
<div class="terms_n_conditions"> <label for="accept_terms"> <input type="checkbox" name="accept_terms" id="accept_terms" value="Y" /> {$lng.txt_terms_and_conditions_note|substitute:"terms_url":"`$xcart_web_dir`/pages.php?alias=conditions":"privacy_url":"`$xcart_web_dir`/pages.php?alias=business"} </label> </div>
..to this code:
Code:
<div class="terms_n_conditions" style="display:none;"> <label for="accept_terms"> <input type="checkbox" name="accept_terms" id="accept_terms" value="Y" checked /> {$lng.txt_terms_and_conditions_note|substitute:"terms_url":"`$xcart_web_dir`/pages.php?alias=conditions":"privacy_url":"`$xcart_web_dir`/pages.php?alias=business"} </label> </div>

Changes are in the 1st and 3rd lines. The "style" change hides that block of HTML (I don't want to bother showing the option) and the "checked" defaults the value to on (this causes the warning message about leaving it blank to not appear.)

It's working in Firefox/Chrome/IE just fine for me in 4.4.2.

Rich
__________________
Intellutions, LLC
Reply With Quote