Project

General

Profile

General JS-Problems with templates and jQuery » History » Version 6

Alex Steiner, 01/13/2012 03:29 PM

1 1 Max Milbers
h1. General JS-Problems with templates and jQuery
2 1 Max Milbers
3 6 Alex Steiner
jQuery is often used by templaters and other extensions. jQuery must not be loaded more than one time. To prevent incompatibilities, you can easily switch off the loading of the virtuemart jQuery library. 
4 1 Max Milbers
5 1 Max Milbers
Look for this at /administrator/index.php?option=com_virtuemart&view=config tab templates. 
6 1 Max Milbers
7 2 Max Milbers
The options for you important are:
8 1 Max Milbers
Using the Virtuemart jQuery 	
9 6 Alex Steiner
Using the product Scripts 	(Product Scripts have to be enabled for cart functions to work)
10 1 Max Milbers
Using the Script ajax Countries / Regions
11 1 Max Milbers
12 1 Max Milbers
Most jquery conflicts are fixed, when you disable the "Virtuemart jQuery" library. 
13 1 Max Milbers
14 6 Alex Steiner
*Backend Menu Jquery Conflict*
15 5 Alex Steiner
*Slightly different, but similar is the problem, when the backend jQuery is broken.* You can recognize it when the menu on the left side is completely expanded and when the store/apply has no effect. This happens, when you do not have access to the jQuery of google. So you need to prevent using the jQuery of google. But you can't store the configuration. So you must 
16 2 Max Milbers
17 2 Max Milbers
edit the virtuemart.cfg file in /administrator/components/com_virtuemart 
18 2 Max Milbers
and change google_jquery=1 to google_jquery=0
19 2 Max Milbers
20 2 Max Milbers
Then go in your database and empty the table _virtuemart_adminmenuentries. Just use refresh your backend and the problem should be solved.