News:

Support the VirtueMart project and become a member

Main Menu

Agree to Terms Of Service still showing but only on registration?

Started by remeedella, October 09, 2012, 07:04:11 AM

Previous topic - Next topic

remeedella

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!

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

remeedella

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!

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!