News:

Support the VirtueMart project and become a member

Main Menu

Lack of understanding Jquery conflicts

Started by Brody, September 12, 2013, 00:00:48 AM

Previous topic - Next topic

Brody

Hi guys, I recently converted my old J1.5 site to J2.5. I am using Joomlart's ONEpage template and VM 2.0.22c Like many people, my state/province field is not working and causing it so that my customers cannot check out. Even if I make the field not required, it screws up shipping calculations.

Anyway, I do not understand how to solve this problem. I have found the link that one of the admins here always links to, but I just don't understand it. These are the errors i get when I use a debugger in Chrome:

Uncaught TypeError: Object [object Object] has no method 'on' bootstrap.js:156
Uncaught TypeError: Object [object Object] has no method 'on' script.js:121
Uncaught TypeError: Object [object Object] has no method 'on' script.js:200
2
Uncaught TypeError: Object [object Object] has no method 'scrollspy'

I would be greatful if someone could fix or at least show me how to fix it. This is absolutely critical to figure out in a timely manner. I don't have the skills/knowledge to fix this on my own.

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

jenkinhill

Yes, a url is needed. Those error messages refer to template scripts, not to VirtueMart. Make sure that any template overrides have been updated to work in VM2.0.22c/d
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

Brody

#3
Here is the link to the store. https://www.millerperformancecars.com/index.php/store-home

if you add a product to the cart and hit check out you'll see where you can add your shipping info and you will find the state/region box not populating.

jenkinhill, how do I make sure my template override is updated for VM2.0.22c or d

by they way, those errors only seem to show up on the edit address pages. I have tried using the factory installed templates, Beez and Atomic for my store with the same result, a non functioning state/region selection box.

Maxim Pishnyak

Could you post here screen shot of your 'Activate Css Styles & Javascripts' options in VM config?
Quote from: Brody on September 12, 2013, 18:14:01 PM
jenkinhill, how do I make sure my template override is updated for VM2.0.22c or d
Be sure that this http://virtuemart.net/news/list-all-news/446-important-security-release-vm-team-at-joomladay-germany is checked in template override. Also you need to know for what originally VM version your template overrides were written for.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Brody

#5
Here is the screenshot. I have already tried turning off the VM Jquery option, but then it doesn't allow anything to be added to the cart.

Where do I look to see what Version my template override(s) were written for? Joomlart? I am sorry this is all above my head. The version of VM listed in that security link is the version I have installed currently. What do I need to do?


[attachment cleanup by admin]

Maxim Pishnyak

Why ajax regions and dropdowns is turned off?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Brody

I forgot to turn it back on when I was trying different combinations of on and off there. Still made no difference.

Maxim Pishnyak

I need updated screen shot. And please retest again with standard Joomla template.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Brody

It is the same settings just have the one turned on that you asked about.

With Atomic template, the selection works. Will we be able to make it work with my Joomlart template or must I use ATOMIC for my store? By the way, with ATOMIC template working, I get this error:

Warning: Invalid argument supplied for foreach() in /homepages/46/d409083487/htdocs/MillerV2/libraries/joomla/html/html/select.php on line 504

Maxim Pishnyak

Quote from: Brody on September 12, 2013, 22:26:06 PM
It is the same settings just have the one turned on that you asked about.
Quote from: Maxim Pishnyak on September 12, 2013, 20:49:16 PM
Why ajax regions and dropdowns is turned off?
I mentioned two options here, not one.

Some questions you could ask template provider. Prodiver of template that you choosed to use.

This unimportant warning could be just turned off. Turn off displaying errors in Joomla config.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

jenkinhill

There are several errors flagged up, but this is likely to be the one affecting the fropdown selelector.
script.js (line 121)
$(document.body).on('click', '[data-toggle="dropdown"]' ,function(){

I'm using that template to set up a non-vm site for a client, so I may have a look at VM with the template in the next couple of days.
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

Brody

Quote from: Maxim Pishnyak on September 12, 2013, 23:01:47 PM
Quote from: Brody on September 12, 2013, 22:26:06 PM
It is the same settings just have the one turned on that you asked about.
Quote from: Maxim Pishnyak on September 12, 2013, 20:49:16 PM
Why ajax regions and dropdowns is turned off?
I mentioned two options here, not one.

Some questions you could ask template provider. Prodiver of template that you choosed to use.

This unimportant warning could be just turned off. Turn off displaying errors in Joomla config.

I turned the AJAX on and Put JQuery back on and it works with ATOMIC template.

Quote from: jenkinhill on September 12, 2013, 23:21:29 PM
There are several errors flagged up, but this is likely to be the one affecting the fropdown selelector.
script.js (line 121)
$(document.body).on('click', '[data-toggle="dropdown"]' ,function(){

I'm using that template to set up a non-vm site for a client, so I may have a look at VM with the template in the next couple of days.

That would be very cool if you could take a look at that. I have no idea what would need to be fixed at line 121.


Brody

UPDATE:

It looks as though I can make JUST my cart and check out page run the Atomic template. I think it is a great feature you guys have included to list categories and products with the default template and allow for the "store" to use another. This seems like the fastest fix for me. It will be easy for me to make it look like the rest of the site with CSS.

If you do come up with a proper solution let me know. Thanks for the help and thanks for getting me to to try some things, it helped me come up with this solution!