Author Topic: checout issue: How to remove TOS COMPLETELY  (Read 5262 times)

claus6000

  • Beginner
  • *
  • Posts: 4
checout issue: How to remove TOS COMPLETELY
« 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]

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28324
  • Always on vacation
    • Jenkin Hill Internet
Re: checout issue: How to remove TOS COMPLETELY
« Reply #1 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.

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.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

heonical

  • Beginner
  • *
  • Posts: 4
Re: checout issue: How to remove TOS COMPLETELY
« Reply #2 on: January 23, 2014, 10:31:31 am »
it didn't work

Joomla  2.5.17
VM 2.0.26d

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28324
  • Always on vacation
    • Jenkin Hill Internet
Re: checout issue: How to remove TOS COMPLETELY
« Reply #3 on: January 23, 2014, 16:56:37 pm »
It has worked for me in 3 different sites.
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.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10283
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: checout issue: How to remove TOS COMPLETELY
« Reply #4 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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

t68

  • Jr. Member
  • **
  • Posts: 142
Re: checout issue: How to remove TOS COMPLETELY
« Reply #5 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


vagrant

  • Beginner
  • *
  • Posts: 11
Re: checout issue: How to remove TOS COMPLETELY
« Reply #6 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.

en jie rudd

  • Beginner
  • *
  • Posts: 38
Re: checout issue: How to remove TOS COMPLETELY
« Reply #7 on: February 10, 2014, 00:59:26 am »
hello Milbo

Could you please explain this further
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

psydefx

  • Beginner
  • *
  • Posts: 2
Re: checout issue: How to remove TOS COMPLETELY
« Reply #8 on: January 09, 2015, 01:22:57 am »
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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28324
  • Always on vacation
    • Jenkin Hill Internet
Re: checout issue: How to remove TOS COMPLETELY
« Reply #9 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.
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.0.2 10661 on Joomla 3.10.9 PHP 7.4.29