News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Problems with Jquery. Searched the forum tried everything, nothing helps.

Started by selvfiks, December 18, 2013, 16:43:30 PM

Previous topic - Next topic

selvfiks

Hi I am new to Virtuemart and I understand that it is a conflict between the Jquery of template Allrounder 1.6 and the virtuemart.

I use joomla 2.5.16 and latest virtuemart. Template is Allrounder 1.6.

website: www.selvfiks.net

Shop still in testmode: www.Selvfiks.net/selvfikstest

I have tried everything that is mentioned in the forum. I used Jqueryeasy, I have tried to turn on all of the Jquery options in virtuemart and tried them seperetaly, and all off.

I have changed the virtuemart jquery script to Jquery 1.7 in the com_virtuemart/assets/js, and still nothing. Turned off the modules and turned them on, no changes there either.

Searched the forum for all possible problems that I have, tried the solutions and nothing helped.

I am almost giving up, the main problem seems to be in the product page, where it is not possible to click on the product image for a better look and the quantity is not shown either.

Just as you know it I am not all that good in scripting and writing codes, so thats why I have come to you guys.

Firebug has found this errors:

Error: Permission denied to access property 'toString'

Line 0

TypeError: jQuery(...).fancybox is not a function
http://www.selvfiks.net/index.php/selvfikstest/universal-360-graders-mobilholder-detail
Line 377

Error: Permission denied to access property 'toString'

Line 0

TypeError: $(...) is null
http://www.selvfiks.net/index.php/selvfikstest/universal-360-graders-mobilholder-detail
Line 653

Please help me guys :'(

jenkinhill

That template header is a real mess. So many files are loading that the site is slow loading and not easy to debug. Just loading the home page (with no VirtueMart) throws up a js error in a custom div embedded in the page, loading this: <script type="text/javascript" src='http://adn.ebay.com/files/js/min/jquery-1.6.2-min.js'></script> and that is also the first error on a shop page.
The next error comes after loading this module's script:
<script src="http://www.selvfiks.net/modules/mod_rizlogin/js/jquery.min.js" type="text/javascript"></script>
And then you have a fancybox error because (it looks like) it is using the wrong jQuery version, or can't find it.

You are loading three different versions of jQuery where you should only use one. Usually I'd suggest the use of jQuery Easy, but I'm not sure it would help here. That is an old template (J1.6 was a long time back) so why use jQuery 1.7.1 which is a fix when using bootstrap in a responsive template.

http://forum.virtuemart.net/index.php?topic=119638.0

Go back to basics, use Beez template with your modules stripped out and VM's jQuery turned on, then add in your modules one by one and test.

One other thing, the template logo/header does not load in IE10.........
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

selvfiks

Thank you Jenkhill. I turned of Rizlogin module and the ebay part and I turned on all Jquery options in virtuemart. That seemed to fix most of the problems.

I still use the allrounder template, so it waz not there the errors where.

The only remaining problem is this error I don't understand what it means.

Could you help me out with this remaining error too?

Error from firebug:

Error: Permission denied to access property 'toString'

Line 0

Anything I can do. It seems like it is not a Jquery problem, but I am not sure.

jenkinhill

That is most likely some other code in your template causing the problem. Not been seen in VM.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum