| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Remove Terms & Conditions Checkbox for 4.6.1 | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#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?
__________________
Lance X-Cart Gold Version 4.6.1 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Can you provide a little tutorial to do this?
__________________
Lance X-Cart Gold Version 4.6.1 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() In skin/common_files/modules/One_Page_Checkout/opc_summary.tpl replace
Code:
with Code:
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
![]() It removed the checkbox but now I get a popup error that says you must accept terms and conditions.
__________________
Lance X-Cart Gold Version 4.6.1 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() skin/common_files/modules/One_Page_Checkout/opc_init_js.tpl
replace Code:
with Code:
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||
|
|||||||
![]() I added checked="checked" and it worked perfect:
PHP Code:
__________________
Lance X-Cart Gold Version 4.6.1 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() hidden fields do not have this attribute so technically putting "checked" on it is not correct
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#9
|
|||||||
|
|||||||
![]() Well it got rid of the error message
![]() Quote:
__________________
Lance X-Cart Gold Version 4.6.1 |
|||||||
#10
|
|||||||
|
|||||||
![]() 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|