Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: jQuery issues after updating to VM2.0.22c

jQuery issues after updating to VM2.0.22c 10 years 6 months ago #6283

I just updated to VM 2.0.22c and I'm already using the latest Puremart 3.7. After upgrade I started experiencing the issues you mentioned with jQuery:

Not working Quick View button
Not working Switch View button (to switch between GridView, ListView, MultiGridView)
Not working TABs on the product details page
Not working Enlarge Image on details page

I added the code changes you suggested in solution 1 but it makes no difference.
My VM configuration was already set the way you suggested in solution 2.

www.morganbotanicals.com

This is a YooTheme template which I'm finding never works right with VM/Puremart due to jQuery conflicts. I had it working pretty good using jQuery Easy plugin before update to VM 2.0.22c.

I can send admin login, but there is o way to submit securely from this forum post.

Richard
The topic has been locked.

jQuery issues after updating to VM2.0.22c 10 years 6 months ago #6300

Hi,

the problem occurs in your website not because you updated the Virtuemart but deleted the "cache".
The problem you have now has been the same since the day 1. The reason of the problem is the conflict that caused by "widget" JS file.

I have fixed the problem one more time. But this time i made it permanently so even though you clean the "cache" the problem won't show up again. But be aware, the problem was caused by not-compatibility issue between Yootheme and Virtuemart.

To fix the problem, i did some changes in this file:
templates/yoo_infinite/js/template.js

Regards.
Support & Development

Regards.
Last Edit: 10 years 6 months ago by Support.
The topic has been locked.

jQuery issues after updating to VM2.0.22c 10 years 6 months ago #6309

I see you added to templates/yoo_infinite/js/template.js at line 21:

$(window).bind("load", function(){
setTimeout(function(){ $(window).resize(); }, 50);
});

I was still getting conflicts reported by Firebug, until I noticed Virtuemart 2.0.22c is loading what appears to me as jQuery 1.8 --
/components/com_virtuemart/assets/js/i18n/jquery-ui-i18n.js

I updated jQuery Easy plugin to use jQuery 1.8 and all problems went away - no errors in Firebug and all VM/Puremart features are working now.

Richard

Please mark this post as SOLVED.
Last Edit: 10 years 6 months ago by Richard Sparks.
The topic has been locked.

jQuery issues after updating to VM2.0.22c 10 years 6 months ago #6312

I actually removed that line from 21st line. (didn't add)
Because that function "resize" was creating the conflict issue since the beginning. I remember i have mentioned the function resize() in one of my emails previously.

I dig and found the file that loads that function to website. When i remove those lines from template.js the conflict was already gone.

Also you are mistaken VM2.0.22c keeps loading jQuery1.6.4 and jQuery-UI-1.8..... (the core jQuery library and UI are different things)
but that's okay, As long as the problems is solved, you are happy and I am happy ;)

I can now close this topic and marked as solved.

Regards.
Support & Development
Last Edit: 10 years 6 months ago by Support.
The topic has been locked.
Time to create page: 0.067 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo