Trevor Lawson Posted October 26, 2011 Share Posted October 26, 2011 As I test the checkout on my website It seems that the "terms & conditions" checkbox which I have required in the BO is only unchecked on a first purchase from a user. With subsequent purchases the terms box is automatically checked. Is the terms & conditions check requirement supposed to be per purchase or per user? I really need for the user to check it every time. We sell medical equipment and there is a liability disclaimer I need to make sure they read each time they purchase. I have tried to change the code in order-carrier.tpl to "unchecked": <input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="unchecked"{/if} /> and I tried putting this script at the top of order-carrier.tpl: <script type="text/javascript"> {literal} $('document').ready( function(){ $('#cgv').attr('checked','unchecked'); }); {/literal} </script> Neither option seems to work. Any ideas? Link to comment Share on other sites More sharing options...
diondp Posted January 28, 2012 Share Posted January 28, 2012 Hi There, i have fixed this issue on my site... go to classes/FrontController.php after line 94 add this: unset($cookie->checkedTOS); this code simply unsets the cookie value for the "terms box" please note this was in PS 1.4.3, however it should work on all new versions also... remember to backup. Link to comment Share on other sites More sharing options...
silenec Posted May 26, 2013 Share Posted May 26, 2013 I need to do this on 1.5.4.0, can anyone help? Link to comment Share on other sites More sharing options...
madmega Posted May 2, 2014 Share Posted May 2, 2014 Hi There, i have fixed this issue on my site... go to classes/FrontController.php after line 94 add this: unset($cookie->checkedTOS); this code simply unsets the cookie value for the "terms box" please note this was in PS 1.4.3, however it should work on all new versions also... remember to backup. This doesn't work for me, maybe i am inserting it into the wrong line, but line 94 is: header('HTTP/1.1 301 Moved Permanently'); Link to comment Share on other sites More sharing options...
vekia Posted May 2, 2014 Share Posted May 2, 2014 This doesn't work for me, maybe i am inserting it into the wrong line, but line 94 is: header('HTTP/1.1 301 Moved Permanently'); note that solution mentioned here is for prestashop 1.4 Link to comment Share on other sites More sharing options...
madmega Posted May 2, 2014 Share Posted May 2, 2014 (edited) note that solution mentioned here is for prestashop 1.4 I have 1.4.8.2 and it was said that it would work for new versions also Edited May 2, 2014 by madmega (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now