VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: claus6000 on January 12, 2014, 19:44:47 PM

Title: checout issue: How to remove TOS COMPLETELY
Post by: claus6000 on January 12, 2014, 19:44:47 PM
Hi again!

I have another issue with my checkout process / cart:
As you can see on the attached screenshot "set-up" I have unchecked the "show terms of service" and "must agree to TOS". However, in my cart it has ONLY removed the text - NOT the checkbox (see attachment "TOS-check-box"). Furthermore, the customer still has to check it in order to proceed.

How do I get COMPLETELY rid of the TOS text, checkbox and need to check it?


[attachment cleanup by admin]
Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: jenkinhill on January 13, 2014, 10:59:07 AM
I have a site where TOS is completely disabled. In addition to not setting Must agree to Terms of Service on EVERY ORDER?  and  Show Terms of Service on the cart/checkout?  in configuration/checkout I do the following:

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 unpublish all fields on the agreed ( I agree to the Terms of Service ) line and then relock the fields.

I then edit the checkout main template file, components/com_virtuemart/views/cart/tmpl/default.php to remove the Terms Of Service Checkbox and use the edited file as a template override.

Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: heonical on January 23, 2014, 10:31:31 AM
it didn't work

Joomla  2.5.17
VM 2.0.26d
Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: jenkinhill on January 23, 2014, 16:56:37 PM
It has worked for me in 3 different sites.
Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: Milbo on January 31, 2014, 21:15:56 PM
You should be able to set the default=1, even it is locked, then you just need to remove it from the layout.
Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: t68 on February 01, 2014, 01:02:05 AM
I also would like to get rid of the TOS checkbox completely. Shouldn't it disappear if I uncheck in the checkout settings? And sorry, I don't understand how to do it by changing codes and php.

Skickat från min HTC One via Tapatalk

Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: vagrant on February 07, 2014, 10:18:29 AM
Hey,
     I am newbie and I am sorry if I sound stupid I just thought it might help you. If you have OnePage checkout in components then click on onepage checkout then you will see many options click on "display" and remove checks from terms of service configuration.
Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: en jie rudd on February 10, 2014, 00:59:26 AM
hello Milbo

Could you please explain this further
Quote from: Milbo on January 31, 2014, 21:15:56 PM
You should be able to set the default=1, even it is locked, then you just need to remove it from the layout.

I am not experienced to use template override etc, a simple fix would really suit me.

Joomla  2.5.18
VM 2.0.26d

regards

En Jie
Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: psydefx on January 09, 2015, 01:22:57 AM
Quote from: Milbo on January 31, 2014, 21:15:56 PM
You should be able to set the default=1, even it is locked, then you just need to remove it from the layout.
Can you hum a few bars... what template file to be altered, what to put where?
I understand what default setting is and how it should work, but not the variables and labels, and haven't found where it is called in the files.

VM 3
Joomla 3.36
Thanks
Steve
Title: Re: checout issue: How to remove TOS COMPLETELY
Post by: jenkinhill on January 09, 2015, 11:24:54 AM
In VM3 you do not need to edit any files. In the shopper field list are two TOS related fields, "agreed" and "tos". Set both of them to Not required and Unpublished.