VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: fernandoagomezf on June 10, 2014, 06:05:54 AM

Title: VM scripts not working on the product detail view
Post by: fernandoagomezf on June 10, 2014, 06:05:54 AM
Hello everyone,

I have a Joomla 2.5.20 site with VirtueMart 2.6.4. I'm creating a template that among other things uses jQuery and Bootstrap. Overall, the site's working well (I've run into a few issues with MooTools but I'm over it, I think). However, I'm facing problems with the product detail view: no script from VirtueMart seems to be working. If I click on a thumbnail image, it won't change the main image. If I click on the main image, it will open it in a new window instead of using the Fancybox. The rating control is not working and won't allow me to select the stars.

I've been searching in this forum and every answer I've come up with says it's a jQuery conflict. While jQuery is there (v. 1.8.0), I don't see where the possible conflict could be.

Any help would be really appreciated. The URL is the following:

http://www.dailymood.com.mx
Sample: http://www.dailymood.com.mx/catalog/mood/2014moodbarbcrh-detail
User: TestUser
Pwd: testuser42

Thanks in advance.
Title: Re: VM scripts not working on the product detail view
Post by: GJC Web Design on June 10, 2014, 14:06:50 PM
login doesn't work
Title: Re: VM scripts not working on the product detail view
Post by: fernandoagomezf on June 10, 2014, 14:19:34 PM
Sorry, it's public now. Thanks for your time. Best regards!!
Title: Re: VM scripts not working on the product detail view
Post by: GJC Web Design on June 10, 2014, 16:19:36 PM
I don't see any rating dialog - you have to be logged in or bought the article

images - have you got "use fancybox" enabled and Open additional images on main position checked - go thru your config carefully
Title: Re: VM scripts not working on the product detail view
Post by: bdimov on May 03, 2015, 23:04:03 PM
I have the same problem with selecting stars when I type a review.
I'm using VM3.0.6.4 and Joomla 3.4.1
My "fancybox" is turned on.

Do you know other solutions?
Title: Re: VM scripts not working on the product detail view
Post by: GJC Web Design on May 03, 2015, 23:07:18 PM
with no live site impossible to say....
Title: Re: VM scripts not working on the product detail view
Post by: bdimov on May 04, 2015, 09:59:34 AM
Now I update to VM 3.0.7.4 and there is again the same problem.

Here is the site:
http://j3.bikes4you.eu

I have a problem with a shopping cart too. You can see that when I add to cart some product, the cart is empty. How can I fix that too?
Title: Re: VM scripts not working on the product detail view
Post by: GJC Web Design on May 04, 2015, 11:25:22 AM
your template isn't VM3 compatible - test with protostar
Title: Re: VM scripts not working on the product detail view
Post by: jenkinhill on May 04, 2015, 11:33:14 AM
You have JavaScript errors most likely caused by your old Joomla template not being VM3 compatible.
eg.  TypeError: jQuery(...).chosen is not a function
jQuery(".vm-chzn-select").chosen({enable_select_all: true,select_all_text : vm2s...

VM3.0.7+ uses jQuery 1.11.x which does load but your template then loads jQuery 1.8.2 which is a much older version. Try preventing the template from loading jQ or use jQueryEasy.
But as GJC suggests test with Protostar to see if oit works OK there.

See http://forum.virtuemart.net/index.php?topic=119638.0