VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Henrik Holm Nielsen on February 05, 2012, 15:51:34 PM

Title: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: Henrik Holm Nielsen on February 05, 2012, 15:51:34 PM
Hi All,

I have a problem with VM 2.0 Default and Categories Layouts, in a template from Shape 5 called "Sienna".

The thing is, that the templates uses Shape 5's menusystem called "S5 Flex Menu" and this product conflicts with VM2 Default & Categories Layouts in a way that breaks both the menusystem and VM2 displaying. Now - I have been communication with Shape 5, but they seem to believe that the problem is with VM2 - so here I am trying to see if anybody here can help me find a solution.

On http://design.2ndlevel.dk/sienna/ I have created a testinstall with the template and a fresh VM2 install.
To understand the problem, you need to know that the menusystem contains a number of dropdown menus, which is not working when display the 2 mentioned VM 2 Layouts. There is simply no dropdowns...

If you hover the menuitem "VM2 Shopping" from the frontpage, you'll see the menu folds down. But after clicking "VM2 Shopping" which is the Default Layout, it stops working. Same with menuitem "Power Tools" with Categories Layout.

I have only limited skills when it comes to debugging Javascripts", but using Firebug I get the following errormessages after clicking "VM2 Shopping":
Error: $(window).addEvent is not a function
Error: $(this.options.id).getElements is not a function

Is anybody able to shed some light on where the problem lies? And how to fix it?
If it's some sort of Javascript function nameclash, I guess I should be able to rename the function, but I not sure how to find the clash and if changing VM2 or S5's javascript is better...

Joomla is 1.7.3 and Virtuemart is 2.0.1d 2.0 (can't yet try 2.0.1d update due to Mysql version (5.0.67) limit on my development server).

EDIT: I just read about the potential issues with mysql < 5.2 and took a shot with the 2.0.1d update on a copy of the site, and this went fine. But my javascript problem still exists though...

Hope you can help!
Title: Re: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: PRO on February 05, 2012, 17:19:23 PM
have you tried disabling the vmart jquery?

Title: Re: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: Henrik Holm Nielsen on February 05, 2012, 17:29:54 PM
Halleluja - disabling Virtuemart JQuery did it!!!
Thank you so much for this tip!!!

Will this have any effect on other Virtuemart functionality, or will the allready loaded Jquery just give Virtuemart the funtions needed from there?
Title: Re: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: rafael8a on February 07, 2012, 14:42:03 PM
Hey.
I have exactly the same problem.
But jQuery disable VM not fix.
Any other suggestions please.

Try changing the parameters
that reference K2 jQuery,
but still nothing happened.
The restored to their original values.

Mootools install manually either.

Template: Vertex Shape5
Joomla: 2.5.1
VirtueMart: 2.0.0
Wamp: 2.0
php: 5.2.9
MySQL: 5.1.36
Apache: 2.2.11
BD: MySQL
Title: Re: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: Henrik Holm Nielsen on February 07, 2012, 15:04:42 PM
Hello,

I have not tried this myself, but maybe it will help if you disable "Use external google jquery library" in Shop Configuration?
Title: Re: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: jenkinhill on February 07, 2012, 15:21:20 PM
You cannot use an external library with localhost! Also, rafael8a, the recommended PHP version for VM2 and Joomla 2.5 is 5.3  - 5.2.9 is much too old.
Title: Re: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: rafael8a on February 07, 2012, 16:02:53 PM
PHP >> Switch to 5.3.0 + Restart server
VM >> disable jQuery
k2 >> jQuery all locally.
Mootools >> when the disabled = remains the problem
Mootools >> When enabled = remains the problem

Try to position the store as external link and is not solution either.
When running VM appears to be disabled working library with the menu, but not how to fix that.

The install Joomla 2.5 + template for 2.5 + the VM 2.0 is new and clean, for testing.

Check this topic ::
http://www.shape5.com/component/option, com_smf / Itemid, 75/action, post / topic, 18363.0/num_replies, 15/

but I have no third-party extensions. And the spoken version there is J1.5

Title: Re: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: rafael8a on February 07, 2012, 17:11:25 PM
I did some tests.

The pages::
-VM default
-top category
disable the "S5 menu flex"

But the pages::
-more internal category
-products
work well with the menu.

Any suggestions that might be happening?
Title: Re: VM2 Default and Categories Layout conflicting with S5 Flex Menu
Post by: rafael8a on February 07, 2012, 18:59:07 PM
(1) resolved, (2) but ::

(1) resolved ::
Enter this file ::
C:\wamp\www\<Joomla-folder>\components\com_virtuemart\virtuemart.php

and comment out the line ::
vmJsApi :: jQuery ();

(2) but ::
There will be some bad execution of the VM at some point? .. anyone know?