VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: steve on April 12, 2012, 14:45:05 PM

Title: Turn Off Must agree to Terms of Service
Post by: steve on April 12, 2012, 14:45:05 PM
How can we turn off  "Must agree to Terms of Service"... all fields are locked and we can't disable.

What's up with that?  Can they be unlocked?

Joomla 2.5.4
VM 2.0.2
Title: Re: Turn Off Must agree to Terms of Service
Post by: jenkinhill on April 12, 2012, 18:48:13 PM
This is in VM2.0.4:

In VM config/Checkout make sure that these two are deselected:
Must agree to Terms of Service on EVERY ORDER?
Show Terms of Service on the cart/checkout?

Then make a copy of the file joomla_root/components/com_virtuemart/views/cart/tmpl/default.php
edit out the part relating to showing & confirmining TOS
Save the file as default.php and use as an override by placing the file  in
joomla_root/templates/(your joomla template)/html/com_virtuemart/cart/  (make the subdirectories if not present)

Then TOS references will be removed. A copy of my (zipped) VM2.0.4 defaultnotos.php template is attached if you want to use it. Rename it to default.php for use.

[attachment cleanup by admin]
Title: Re: Turn Off Must agree to Terms of Service
Post by: steve on April 12, 2012, 19:17:01 PM
Thanks in advance, we'll give it a go.
Title: Re: Turn Off Must agree to Terms of Service
Post by: jenkinhill on April 12, 2012, 23:28:31 PM
Please do. The shopper agreeing to the terms of an on-line shopping site is a legal requirement in almost every part of the World to protect the seller and the buyer. So you have to know the staus of your market to remove it.
Title: Re: Turn Off Must agree to Terms of Service
Post by: jingle0 on June 18, 2012, 05:38:51 AM
I just tried your .zip and it took away the "terms of service" box but not the requirement to check the box to confirm the order.  I have deselected anything referring to terms of service or terms and conditions in the configeration so what did I miss?  using latest edition of both joomla and vm.

thanks for your help
Title: Re: Turn Off Must agree to Terms of Service
Post by: jenkinhill on June 18, 2012, 10:30:28 AM
That was for 2.0.4 - current code is different, but I do not intend investigating as I require TOS on every order.
Title: Re: Turn Off Must agree to Terms of Service
Post by: raycarter on August 02, 2012, 14:18:14 PM
If you have the following line in your default.php then comment it out:

echo VmHtml::checkbox('tosAccepted',$this->cart->tosAccepted,1,0,'class="terms-of-service"');

Also add the following line in html right after <label for ="tosAccepted">:

<input type="hidden" name="tosAccepted" value="1">

But you should know what you are doing.
Title: Re: Turn Off Must agree to Terms of Service
Post by: gastonfl on September 27, 2012, 20:28:19 PM
Quote from: raycarter on August 02, 2012, 14:18:14 PM
If you have the following line in your default.php then comment it out:

echo VmHtml::checkbox('tosAccepted',$this->cart->tosAccepted,1,0,'class="terms-of-service"');

Also add the following line in html right after <label for ="tosAccepted">:

<input type="hidden" name="tosAccepted" value="1">

But you should know what you are doing.

Excellent solution, its the only that works for me.
Title: Re: Turn Off Must agree to Terms of Service
Post by: gp@umbrellaumbrella.com on May 08, 2013, 20:45:48 PM
http://tb.umbrellahost.net/membership/pay-membership
Joomla 2.5.11
VM 2.0.20b
Gantry Template v3.2.20

I have unchecked the following in VM Configuration:

Must agree to Terms of Service on EVERY ORDER?
Show Terms of Service on the cart/checkout?

But it still shows the checkbox and gives an error if it isn't checked on submit. Since you allow us to turn these off, shouldn't the required checkbox disappear, too? This is very confusing to our customers. Will this be fixed in an update?
Title: Re: Turn Off Must agree to Terms of Service
Post by: jenkinhill on May 08, 2013, 21:35:31 PM
You can hide the checkbox like this: http://forum.virtuemart.net/index.php?topic=95669.msg388511#msg388511

Since TOS acceptance became included in Joomla 2.5 it had to become a protected field in VirtueMart, so you still get an error although you deselect "Must agree to Terms of Service on EVERY ORDER". But there is a way to make this userfield editable and Not Required. See http://forum.virtuemart.net/index.php?topic=111063.msg372666#msg372666
Title: Re: Turn Off Must agree to Terms of Service
Post by: info.giftingdelhi on October 04, 2013, 15:17:08 PM
i have same problum then i click on tos no popup box are open but open next tab

we used virtuemart 2.0.20c
Title: Re: Turn Off Must agree to Terms of Service
Post by: Maxim Pishnyak on October 06, 2013, 11:53:25 AM
Use latest VM. Your url?
Title: Re: Turn Off Must agree to Terms of Service SOLVED
Post by: Keddy Logern on November 11, 2014, 12:36:56 PM
DON'T TOUCH ANY CODE!!!
Please note these steps-

On the configuration page.
uncheck - these  2 items
1 Must agree to Terms of Service on EVERY ORDER?    
2 Show Terms of Service on the cart/checkout?

Then - go and edit "shoppers fileds'
mark "agreed"  as not reduired
as hown here
http://awesomescreenshot.com/0a93trkb80
Title: Re: Turn Off Must agree to Terms of Service
Post by: microtribe on July 30, 2015, 02:08:52 AM
I have unchecked in both config places and disabled the shopper field and it is still showing. Any ideas?