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

Shaman_1

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

Quote from: Shaman_1 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 :/ .

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

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:
<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

Quote from: dnlvsci on January 31, 2012, 14:29:36 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

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

Quote from: lipes 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   ?
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

#21
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

Yes! i solved it i have jus uploaded backup cart template files! and now it is showing all right!

Thank you

Imron

I am using VM 2.06 and the TOS link does NOT work.  Is there a fix for this? 

Thank you..

lipes

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

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

#26
 :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

Hi wehitch,

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

novitas

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

Quote from: novitas 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?


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