X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   disable terms and conditions/privacy from checkout (https://forum.x-cart.com/showthread.php?t=58234)

rawguru 02-27-2011 11:05 AM

disable terms and conditions/privacy from checkout
 
How do I remove or disable the

I accept the "Terms & Conditions" and "Privacy statement"
from the checkout page?

Thanks!

Intellutions 03-30-2011 05:33 PM

Re: disable terms and conditions/privacy from checkout
 
I would like to disable this as well. I'm surprised there is no option in the admin side to turn this off. (unless I missed it.)

Anyone have a suggestion?

Thank you,
Rich

P.S. Running 4.4.2

Intellutions 03-30-2011 05:55 PM

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

qualiteam 04-01-2011 04:45 AM

Re: disable terms and conditions/privacy from checkout
 
Moving to "Storefront Design & Template Editing in v 4.4.x" forum.

exsecror 04-01-2011 05:24 AM

Re: disable terms and conditions/privacy from checkout
 
Yeah they really need a way to disable that because not all stores need (or are supposed) to use that. Mainly stores specializing in e-goods or subscription services require that but not physical merchandise.

ymonline 04-02-2011 04:32 PM

Re: disable terms and conditions/privacy from checkout
 
By the way, the same modification works if you use the Fast Lane Checkout method for 4.4.2.

Make the modification to:

/common_files/modules/Fast_Lane_Checkout/checkout_3_place.tpl

The code should be around line 85.

Thank you for the original solution!


All times are GMT -8. The time now is 12:14 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.