Jump to content

Terms & Conditions per purchase or per member?


Trevor Lawson

Recommended Posts

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

  • 3 months later...

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

  • 1 year later...
  • 11 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...