VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ukfish1 on January 30, 2013, 12:23:34 PM

Title: Force uses to accept terms & conditions
Post by: ukfish1 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
Title: Re: Force uses to accept terms & conditions
Post by: ukfish1 on January 31, 2013, 12:43:32 PM
any thoughts on this one?

Thanks

Paul
Title: Re: Force uses to accept terms & conditions
Post by: jenkinhill 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.
Title: Re: Force uses to accept terms & conditions
Post by: ukfish1 on January 31, 2013, 18:17:01 PM
thanks, I appreciate the advice

Paul