Hello, I've looked up every hint on disabling terms of service in my new virtuemart 2 and while I was able to delete it, or have the checkbox automatically checked and then hid it, however, I was notified that on my registration page at the bottom it still shows I agree to the.... with the checkbox. If I'm checking out and already registered or login to an account and hit edit /shipping details it is not visible, only if I select checkout or attempt to register as a new account is it visible. What did I miss, what file is that in to edit it directly?
Thanks!
Hi,
Read here: https://forum.virtuemart.net/index.php?topic=101148.msg353425#msg353425
here: https://forum.virtuemart.net/index.php?topic=95669.msg320011#msg320011 and here https://forum.virtuemart.net/index.php?topic=95669.msg357825#msg357825
Regards
link 1
"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."
is already implemented and does not erase the registration page TOS,
page #2 I tried everything and then read about the database query. I do not know enough about php to understand what I just did however,
"UPDATE `jos_virtuemart_userfields` SET `required`=0, `account`=0 WHERE `virtuemart_userfield_id`=4 LIMIT 1;"
Doing that fixed registration page TOS. Completely dissapeared. Thanks!
Hi,
Comment under the same file the lightbox also, that was for the check box. On the default cart template (default.php - the same file you edit before) around line 137-150 comment the tos echo'ing.
or commend all that lines.
Also your could use some CSS to hide it, like
.terms-of-service {
display:none;
}
but of course you will use the code that you have already implement.
Regards