Author Topic: Force uses to accept terms & conditions  (Read 3538 times)

ukfish1

  • Jr. Member
  • **
  • Posts: 179
    • Website design, web maintenance, Ealing,  London
Force uses to accept terms & conditions
« on: January 30, 2013, 12:23:34 PM »
Currently, users can log out without checking the "agree to terms and services" box and can register a new account without checking the terms and conditions box.

In the config I have "Must agree to Terms of Service on EVERY ORDER?" and "Show Terms of Service on the cart/checkout?" both checked and the "I agree to the Terms of Service" shopper field is required (as set by default).

Joomla 2.5.8
VM 2.0.18a

Hope you can help
Paul

ukfish1

  • Jr. Member
  • **
  • Posts: 179
    • Website design, web maintenance, Ealing,  London
Re: Force uses to accept terms & conditions
« Reply #1 on: January 31, 2013, 12:43:32 PM »
any thoughts on this one?

Thanks

Paul

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28698
  • Always on vacation
    • Jenkin Hill Internet
Re: Force uses to accept terms & conditions
« Reply #2 on: January 31, 2013, 14:02:19 PM »
This is how I deal with it.

Firstly the TOS userfield is a protected/locked Joomla field, as TOS is included in J2.5's userfields (see the User Profile Joomla plugin), so this field needs to be unlocked to edit it. For how to do this see http://forum.virtuemart.net/index.php?topic=111063.msg372666#msg372666

On the Shopper Field List I then disable all fields except  "Required" and "Published" on the agreed ( I agree to the Terms of Service ) line, so there are just the two green ticks.

This removes the "I agree to the Terms of Service" tickbox from the initial shopper registration form, thus forcing the requirement to agree to terms each time at checkout when "Must agree to Terms of Service on EVERY ORDER?" and "Show Terms of Service on the cart/checkout?" are both checked.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 4.2.4 10922 J! 3.10.11 PHP 8.2.7

ukfish1

  • Jr. Member
  • **
  • Posts: 179
    • Website design, web maintenance, Ealing,  London
Re: Force uses to accept terms & conditions
« Reply #3 on: January 31, 2013, 18:17:01 PM »
thanks, I appreciate the advice

Paul