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)
-   -   Terms and conditions tick box at checkout (https://forum.x-cart.com/showthread.php?t=56434)

a1deano 11-06-2010 11:38 AM

Terms and conditions tick box at checkout
 
Hi all is there a way of having a tick already in the box I accept terms and conditions at checkout, or can terms and condition be switched off anywere

Thanks to all

a1deano 11-06-2010 12:40 PM

Re: Terms and conditions tick box at checkout
 
I just altered /common_files/modules/One_Page_Checkout/opc_summary.tpl


and removed this -

<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:"te rms_url":"`$xcart_web_dir`/pages.php?pageid=3":"privacy_url":"`$xcart_web_dir `/pages.php?pageid=4"}
</label>
</div>

but when i click submit order it said i have to accept terms and conditions???

Any advice please

chiactivate 01-23-2012 02:03 PM

Re: Terms and conditions tick box at checkout
 
In this file: /common_files/modules/Fast_Lane_Checkout/checkout_3_place.tpl

Changed this code:
Code:
Quote:

<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:"te rms_url":"`$xcart_web_dir`/pages.php?alias=conditions":"privacy_url":"`$xcart _web_dir`/pages.php?alias=business"}
</label>
</div>


..to this code:

Quote:

<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:"te rms_url":"`$xcart_web_dir`/pages.php?alias=conditions":"privacy_url":"`$xcart _web_dir`/pages.php?alias=business"}
</label>
</div>

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.)


All times are GMT -8. The time now is 07:14 AM.

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