Author Topic: No Link to Terms of Services  (Read 29648 times)

Shaman_1

  • Beginner
  • *
  • Posts: 2
Re: No Link to Terms of Services
« Reply #15 on: March 16, 2012, 18:38:59 pm »
I have the same problem :/ Did some one find solution yet? TOS is very important for my clients and i can't finnish my job without it :/ .

freeme

  • Jr. Member
  • **
  • Posts: 84
Re: No Link to Terms of Services
« Reply #16 on: March 17, 2012, 09:41:07 am »
I have the same problem :/ Did some one find solution yet? TOS is very important for my clients and i can't finnish my job without it :/ .

Are you using the latest version? 2.0.2 or 2.0.3?
Furthermore, I am using a 3rd party theme for VM, where the TOS Popup wasnt built in yet. It was then added with an update.

Both solved my problem.

lipes

  • Sr. Member
  • ****
  • Posts: 720
Re: No Link to Terms of Services
« Reply #17 on: April 01, 2012, 17:15:26 pm »
Please, in some next release add this fix in user registration area

\components\com_virtuemart\views\user\tmpl\edit.php
http://www.2shared.com/file/wfCFN-TP/edit.html
and in \components\com_virtuemart\views\user\tmpl\edit_shopper.php
http://www.2shared.com/file/CxpaBlM2/edit_shopper.html

I dont know how to add a Link at side of the check box to users could read and accept "I agree to the Terms of Service"... (like in VM1) in some countries this is required by law law.. i've been searching and found this code:
Code: [Select]
<span class="terms-of-service" rel="facebox"><span class="vmicon vm2-termsofservice-icon"></span><?php echo JText::_('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED'); ?><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>
but i dont know how to apply this ... If someone could help me we could do some quick fixes, this time in this user registration area ... and contribute to VM2 too!
Unfortunately while delaying this correction we have to add these changes every time there is a new VM update :(:(:( :'(
Best Regards..
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

rupesh

  • Jr. Member
  • **
  • Posts: 113
Re: No Link to Terms of Services
« Reply #18 on: April 21, 2012, 12:40:57 pm »
I made IT! (Note -> VM 2.0.1)

Here is my solution:
Insert the following code under the // vmdebug('cart',$this->cart); (line 24)
1.
$url = JRoute::_('index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=' . $this->cart->vendor->virtuemart_vendor_id.'&tmpl=component');
$document = &JFactory::getDocument();
$document->addScriptDeclaration("
   jQuery(document).ready(function($) {
      $('a.tos').click( function(){
         $.facebox({
            iframe: '".$url."',
            rev: 'iframe|550|550'
         });
         return false ;
      });
   });
");

2.
Replace this code <?php echo $this->cart->vendor->vendor_terms_of_service;?>
 to <a class="tos" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_CART_TOS') ?></a>

You are finished :)

Now the TOS will open popup box like "ask a question". You can make some css style for the link and you get shomething like the attachment :)


Plz check sir i have used your modification in my site but its only showing link to "Terms of service" see this ! "http://elifeshopping.com/index.php?option=com_virtuemart&view=cart"

lipes

  • Sr. Member
  • ****
  • Posts: 720
Re: No Link to Terms of Services
« Reply #19 on: April 21, 2012, 15:41:58 pm »
rupesh: Did you fill the Terms of Service Text in your BE -> /administrator/index.php?option=com_virtuemart&view=user&task=editshop   ?

I want to apply that in the Registration area ... 
here: http://virtuemart.cloudaccess.net/my-account   (where we have the link to "I agree to the Terms of Service")

In the Shopping Cart area TOS it's working with no code hack's ... you dont need to change nothing (2.0.6)
see the demo: http://virtuemart.cloudaccess.net/cart
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

rupesh

  • Jr. Member
  • **
  • Posts: 113
Re: No Link to Terms of Services
« Reply #20 on: April 21, 2012, 15:59:00 pm »
rupesh: Did you fill the Terms of Service Text in your BE -> /administrator/index.php?option=com_virtuemart&view=user&task=editshop   ?
yes sir , i have added the terms and conditions but its getting when u click on "Terms of service" on popup actually i want it on pop up itself with product image and other info!

Thank you for your reply

lipes

  • Sr. Member
  • ****
  • Posts: 720
Re: No Link to Terms of Services
« Reply #21 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... :/

VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

rupesh

  • Jr. Member
  • **
  • Posts: 113
Re: No Link to Terms of Services
« Reply #22 on: April 23, 2012, 09:50:02 am »
Yes! i solved it i have jus uploaded backup cart template files! and now it is showing all right!

Thank you

Imron

  • Beginner
  • *
  • Posts: 7
Re: No Link to Terms of Services
« Reply #23 on: May 10, 2012, 19:01:29 pm »
I am using VM 2.06 and the TOS link does NOT work.  Is there a fix for this? 

Thank you..

lipes

  • Sr. Member
  • ****
  • Posts: 720
Re: No Link to Terms of Services
« Reply #24 on: May 10, 2012, 22:40:44 pm »
Imron: in cart works normal for me in a new instalation... but in user registration area / account management there's no solution yet.
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

rupesh

  • Jr. Member
  • **
  • Posts: 113
Re: No Link to Terms of Services
« Reply #25 on: May 14, 2012, 09:54:42 am »
hiii to all,
on Add/Edit billing address information  there is checkbox for tos !
I want to make it required so that without checking that checkbox user cant checkout! Right now you can checkout even without checking it! i think there is problem in validation!

can you please help me?
see
http://www.elifeshopping.com/index.php/component/virtuemart/user/editaddresscartBT?Itemid=0

Thanks for consideration!
rupesh

wehitch

  • Beginner
  • *
  • Posts: 5
    • WeHitch.gr Internet Solutions
Re: No Link to Terms of Services (Solved)
« Reply #26 on: May 21, 2012, 15:57:48 pm »
 :D
Hi guys,
I have been trying to find a solution for the past 3 hours.
But finally i thought about the most simple solutions.
Go to language/en-GB/en-GB.com_virtuemart.ini
And edit the following :
COM_VIRTUEMART_I_AGREE_TO_TOS="I agree to the Terms of Service"

Change it to :
COM_VIRTUEMART_I_AGREE_TO_TOS="I agree to the Terms of Service
<p></p>
(<a href=http://linktothetermsofservice.com" target="_new">Click here to read the Terms of Service</a>)"

And simply change the http://linktothetermsofservice.com with the link of your page with the TOS.

I hope this solution helps someone. It sure helped me.



WeHitch.gr Internet Solutions
Web Designing / Web Development / Internet Marketing / Internet Consulting
http://www.wehitch.gr

littlefish

  • Beginner
  • *
  • Posts: 3
Re: No Link to Terms of Services
« Reply #27 on: May 23, 2012, 09:02:37 am »
Hi wehitch,

This worked for me. Thank you so much!!!

novitas

  • Beginner
  • *
  • Posts: 1
Re: No Link to Terms of Services
« Reply #28 on: June 11, 2012, 14:51:11 pm »
Hi there,

i have the some problem and nothing of the ways that are shown, doesn´t work. I use the german version of virtuemart. Does anyone have a other idea to solve the problem?

coppo82

  • Beginner
  • *
  • Posts: 43
Re: No Link to Terms of Services
« Reply #29 on: July 13, 2012, 11:29:37 am »
Hi there,

i have the some problem and nothing of the ways that are shown, doesn´t work. I use the german version of virtuemart. Does anyone have a other idea to solve the problem?


try so

COM_VIRTUEMART_I_AGREE_TO_TOS="Ich stimme den Allgemeinen Geschäftsbedingungen zu<p></p>(<a href='https://www.xxxxxxxxxxxxxxx.html' target='_blank'>Lesen Sie unsere AGB's</a>)"
the best solution for the joomla virtuemart CSV
http://joomdonation.com/components/csv-advanced.html