VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: balai on April 12, 2012, 10:57:41 AM

Title: JQuery error when the jquery is disabled from the BE
Post by: balai on April 12, 2012, 10:57:41 AM
Hi

I m getting this js error in the product details page, when i m disabling the loading of the JQuery from the VM configuration.

jQuery is not defined
jQuery(document).ready(function($) {


VM2.0.4
Title: Re: JQuery error when the jquery is disabled from the BE
Post by: Studio 42 on April 12, 2012, 15:56:27 PM
If you wan't completly remove jQuery from your site/tmpl then you must overide vrituemart tmpl.
Our choice was to use jQuery.

If you have a conflict with another module/component then try to remove all jquery load and add it in your template.
Title: Re: JQuery error when the jquery is disabled from the BE
Post by: balai on April 12, 2012, 16:34:49 PM
Hi

Its not caused because of the jquery loading in the template.
The problem is that the productModel is generating always jquery functions at the head of the document.
So if i remove that library the above error is generated.

http://forum.virtuemart.net/index.php?topic=101086.msg334819#msg334819