![]() |
Remove Terms & Conditions Checkbox for 4.6.1
I see many posts on how to remove the terms and conditions checkbox on the checkout page for earlier versions of xcart but I don't see how to do so for version 4.6.1.
I am using One Page AJAX checkout. You would think there would be a checkbox in the admin panel to disable this feature? |
Re: Remove Terms & Conditions Checkbox for 4.6.1
No there isn't. The easiest way to do this is to replace the code for it in the template with hidden field and make it checked
|
Re: Remove Terms & Conditions Checkbox for 4.6.1
Can you provide a little tutorial to do this?
|
Re: Remove Terms & Conditions Checkbox for 4.6.1
In skin/common_files/modules/One_Page_Checkout/opc_summary.tpl replace
Code:
<div class="terms_n_conditions"> with Code:
|
Re: Remove Terms & Conditions Checkbox for 4.6.1
It removed the checkbox but now I get a popup error that says you must accept terms and conditions.
|
Re: Remove Terms & Conditions Checkbox for 4.6.1
skin/common_files/modules/One_Page_Checkout/opc_init_js.tpl
replace Code:
var termsObj = $('#accept_terms')[0]; with Code:
|
Re: Remove Terms & Conditions Checkbox for 4.6.1
I added checked="checked" and it worked perfect:
PHP Code:
|
Re: Remove Terms & Conditions Checkbox for 4.6.1
hidden fields do not have this attribute so technically putting "checked" on it is not correct
|
Re: Remove Terms & Conditions Checkbox for 4.6.1
Well it got rid of the error message :D
Quote:
|
Re: Remove Terms & Conditions Checkbox for 4.6.1
You can also use css to hide the div
{ display:none; } or if you want to preserve the page layout, use { visibility:hidden; } both are useful in their own ways |
All times are GMT -8. The time now is 09:11 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.