Author Topic: "Click here to read TOS check box..." during checkout redirects to homepage  (Read 3054 times)

Hennen

  • Beginner
  • *
  • Posts: 8
I am currently using VMart version 2.0.12f with Joomla 2.5.6

I have gone to shop->shop->->vendor and loaded my TOS into the editor "Terms of Service." I have also gone to configuration->configuration->checkout and checked the  "Must agree to Terms of Service on EVERY ORDER?" and "Show Terms of Service on the cart/checkout?"

Yet when one goes to the cart and clicks either the icon or the hyperlink "Click here to read the TOS and check the box to accept them" he gets redirected to my homepage. I have scoured the forums and tried every possible solution including modifying the language strings with a link to my TOS to no avail. This has apparently been a problem for others as well.

Please help!

csimmo

  • Jr. Member
  • **
  • Posts: 50
Did you find an fix to this issue? I am suffering the same problem

syntalk

  • Beginner
  • *
  • Posts: 42
Hi,

I have that problem too in VM2.0.18c. It works on default beezz template but not with mine, that indicates the problem is with the template. Have checked everything and no idea where else to look.
Anyone can help? At least to point the direction to go as I got stuck with it..

Thanks
tom

syntalk

  • Beginner
  • *
  • Posts: 42
I have that problem too in VM2.0.18c....

Few hours later  :o..

I had this problem too.. 8)  I found where my issue was. As I said above - in my case it was my custom template problem because it worked with the default Joomla template. I hope it will help to someone with the simillar problem however it was an override file fault in my case, not the VM.

My problem was in /templates/mycustomtemplate/html/com_virtuemart/cart/default.php - it's override for my /components/com_virtuemart/views/cart/tmpl/default.php

Around line 30 I had:
Code: [Select]
jQuery(document).ready(function($) {
$('div#full-tos').hide();
$('span.terms-of-service').click( function(){
//$.facebox({ span: '#full-tos' });
$.facebox( { div: '#full-tos' }, 'my-groovy-style');
});
});

And changed it to:

Code: [Select]
//<![CDATA[
jQuery(document).ready(function($) {
$('div#full-tos').hide();
$('a#terms-of-service').click(function(event) {

event.preventDefault();
$.facebox( { div: '#full-tos' }, 'my-groovy-style');
});
});

//]]>

TOS link is working fine now.
Good Luck!
tom