News:

Looking for documentation? Take a look on our wiki

Main Menu

No Link to Terms of Services

Started by freeme, January 28, 2012, 18:19:18 PM

Previous topic - Next topic

jelly

Same problem over here: No Link to Terms of Services.
No matter what template I am using.
I am already struggling with this for several VM&Joomla versions...

Strange that it does not work...
I think I am going for wehitch's solution...

Joomla! 2.5.6 & 2.0.10

toad78

Same here. I have J2.5 with VM2.0.14 and there is still no link.

jthrongard

I've got a solution.  It works for me.
VM 2.0.14
Edit file /templates/your-template/html/com_virtuemart/user/edit_address.php
If you don't have one just copy and upload virtuemart's default

I added this to line 150 after:       
<?php
    if (!
class_exists('VirtueMartCart'))
require(JPATH_VM_SITE DS 'helpers' DS 'cart.php');

    if (count($this->userFields['functions']) > 0) {
echo '<script language="javascript">' "\n";
echo join("\n"$this->userFields['functions']);
echo '</script>' "\n";
    }
     echo $this->loadTemplate('userfields');

  ?>

<span class="terms-of-service" rel="facebox"><span class="vmicon vm2-termsofservice-icon"></span><a href="<?php JRoute::('index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=1'?>" class="terms-of-service" id="terms-of-service" rel="facebox" target="_blank"><?php echo JText::_('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED'); ?></a><span class="vm2-modallink"></span></span>
<div id="full-tos">
<h2><?php echo JText::_('COM_VIRTUEMART_CART_TOS'); ?></h2>
<?php echo $this->cart->vendor->vendor_terms_of_service;?>

</div>
Small Business Joomla! Website Design - Simple CMS Design
http://www.simplecmsdesign.com

toad78

I wish I could say that it worked for me, but I still do not have a link and there's no sign of this is the source code.

dimi2013

wehitch and Coppo82's combined solution worked perfectly for me. The single quotes w/in the "a" tag is what did it.

toad78

I'll look back and see about giving those a whirl.

johnheitor

Quote from: dimi2013 on January 07, 2013, 16:34:59 PM
wehitch and Coppo82's combined solution worked perfectly for me. The single quotes w/in the "a" tag is what did it.

Hi Dimi
Pleeeeeease can you explain the full solution, I have been messing wehitch's solution but it doesnt seem to work for me, I am using vm2.014. Will really appreciate this. Thanks

dimi2013

#37
Hi John,
Glad to do it. Bear in mind that I'm on 2.018a, though, I don't think it matters any.  Here we go:


  • Go to  Content >> Article Manager and create a new article detailing the TOS and save it 
  • Create a new menu  Menu Manager  and  choose your menu and create a new menu item. Choose Single article and then choose the article that has the TOS and hit Save. Note the link in the Link field and copy it.
  • Go to Extensions >> Language Manager  >>   Overrides and click on New
  • In the search field on the right put the following constant in, COM_VIRTUEMART_I_AGREE_TO_TOS , and make sure you check the Constant radio button 
  • Once you get the results in the Search Results area underneath, click on it and it'll automatically fill in the values on the left side where it says Edit this Override >> Language Constant and Text
  • Then, put in your text and for the link use the link that you copied from the menu you created e.g. index.php?option=XXXXXX.  Then save it and check your page and that's it.

It's ok if you delete the temporary menu you created for the TOS--all you needed was the link. Here's what I input into the Text area of the Edit this Override >> Text :

I agree to the Terms of Service *<br />(<a href="index.php?option=com_content&view=article&id=62" target="_blank">Terms of Service</a>)
If for some reason this doesn't work for you, look at coppo82's solution. He simply put single quotes in the link  and target part. Hopefully this will help you. Post something once you're done.

china_630

Quote from: lipes on March 05, 2012, 00:12:29 AM
We also dont have the Link to Terms & Conditions of Service in The Main/Principal Registration Page ....

You could see here that we dont have this here:
http://virtuemart.cloudaccess.net/my-account

And could be done something like this :
https://demo.cubecart.com/cc5/index.php?seo_path=register&PHPSESSID=39de577a71394939024d87451efcb0db

(but in a popup... or opening a slide down jquery area .. with the full text, dont you agree?)

Hi, lipes!

Could you do registration form like this:
https://demo.cubecart.com/cc5/index.php?seo_path=register&PHPSESSID=39de577a71394939024d87451efcb0db on my site? I can pay for it.

Regards,
Chingiz.

naldjb

Strange....

I thought this would be fixed on later version of VM, I'm currently using VM 2.0.20b, and this problem still EXIST!! how can i get the terms on condition to pop-up as a modal with VM 2.0.20b? I had my TOS content on VirtueMart/Shop-> Vendor settings...

I'm confuse which one to try? since those fix are for earlier version of VM..

Help, thanks in advance

alvinwang21

Quote from: dimi2013 on January 31, 2013, 12:54:40 PM
Hi John,
Glad to do it. Bear in mind that I'm on 2.018a, though, I don't think it matters any.  Here we go:


  • Go to  Content >> Article Manager and create a new article detailing the TOS and save it 
  • Create a new menu  Menu Manager  and  choose your menu and create a new menu item. Choose Single article and then choose the article that has the TOS and hit Save. Note the link in the Link field and copy it.
  • Go to Extensions >> Language Manager  >>   Overrides and click on New
  • In the search field on the right put the following constant in, COM_VIRTUEMART_I_AGREE_TO_TOS , and make sure you check the Constant radio button 
  • Once you get the results in the Search Results area underneath, click on it and it'll automatically fill in the values on the left side where it says Edit this Override >> Language Constant and Text
  • Then, put in your text and for the link use the link that you copied from the menu you created e.g. index.php?option=XXXXXX.  Then save it and check your page and that's it.

It's ok if you delete the temporary menu you created for the TOS--all you needed was the link. Here's what I input into the Text area of the Edit this Override >> Text :

I agree to the Terms of Service *<br />(<a href="index.php?option=com_content&view=article&id=62" target="_blank">Terms of Service</a>)
If for some reason this doesn't work for you, look at coppo82's solution. He simply put single quotes in the link  and target part. Hopefully this will help you. Post something once you're done.

I tried your solution and it doesn't work. The value has been written in COM_VIRTUEMART_I_AGREE_TO_TOS of the language manager, but do not show anything in the website. I am using joomla 2.5.6 vm 2.0.22a. However, thanks for your detailed explaination. I really appreciate. :)

alvinwang21

I guess because we have different location of terms of services, so some solution does not work. my one is in account maintenance. At the bottom of page, said I agree to terms of services. I have tried different ways in forum. It just not working. I wonder if any pro can help me :(

[attachment cleanup by admin]

dimi2013

Hi alvinwang21,
I'm sorry the solution doesn't work for you, I know how frustrating this is. I'm on the very last version of VM, 2.0.22a, and it's working fine for me. Have a look here:  http://lindaontiveros.com/index.php/cart.html

I've had some really big issues w/VM when I was developing the site; However, as new releases were coming out, and after much, much, trolling on the forums, I was able to fix all the problems I had--the VM community's great. I wish you much success and sincerely hope you can figure out how to fix it. Would you post something once you figure it out so as to help others?
Thanks

alvinwang21

Hi Demi2013,

Thanks for replying me. I have tried all of the method above. Just dont't know why this is not working properly. You are right, this place is awesome for us to learn and modify our website. I will keep working on it and I will put the solution on the forum to benifit for people who face the same problem.

blizam

Quote from: lipes on April 21, 2012, 16:16:09 PM
maybe the answer that you want could be here:  http://forum.virtuemart.net/index.php?topic=101633.0

Try to see (with firebug) if you've got something in CSS with hidden in that popup ...
http://www.w3schools.com/css/css_display_visibility.asp

UPDATE: But i saw that you got to do 2 links to see the terms of service ... maybe miss/change some php code..

Try to install again the Default tmpl code in you cart to see whats happen there.

i dont know what's the problem because in my cart with a normal instalation (2.0.6) the TOS is working fine on shopping cart...
in fact we only miss the link to TOS in the user registration area... :/



1.5 years later... is there an official fix for the user registration area?