VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: super_dave on April 20, 2014, 07:14:25 AM

Title: VirtueMart Home Page Settings - add to cart not working
Post by: super_dave on April 20, 2014, 07:14:25 AM
When going to the virtuemart home page and clicking on any product 'add to cart' it leads back to the index page and displays the site homepage with an empty cart in the content area and lots of broken javascript for the VM modules I'm using.

I've found that in the backend I can fix this by turning off VM JQuery, but of course I lose all of the functionality that JQuery offers. I have built the cart to use Jquery until this bug was discovered and would like to keep it intact. Is there any way to fix this bug and keep Jquery active?

I ask that please tell me the absolute path if you're goingt o assist with code alteration as I'm not a full out Virtuemart developer and would need to know the exact file and location to alter  :D.

Thanks for your assistance.
Title: Re: VirtueMart Home Page Settings - add to cart not working
Post by: jenkinhill on April 20, 2014, 14:17:07 PM
First http://forum.virtuemart.net/index.php?topic=79799.0   
Title: Re: VirtueMart Home Page Settings - add to cart not working
Post by: super_dave on April 21, 2014, 01:49:07 AM
Thanks for letting me know the proper etiquette.

At this point the site is under development and under password protection so I'm unable to post a live URL for now.

VM version 2.0.26d

Joomla version 2.5.19

Store template is joomla default, category is joomla default, everything else is no override.

Thanks :D.
Title: Re: VirtueMart Home Page Settings - add to cart not working
Post by: jenkinhill on April 21, 2014, 11:37:43 AM
OK, thx,  so you will need to debug the JavaScript. See http://forum.virtuemart.net/index.php?topic=119638.0
Title: Re: VirtueMart Home Page Settings - add to cart not working
Post by: super_dave on April 22, 2014, 05:28:28 AM
Thank you very much, looking into getting this done.

Is there a way to disable JQuery for only one page and not and sub URL of that page? Got the idea from the link you posted and playing with jQuery Easy as posted in the link you gave :D.

If I can disable VM Jquery for just the store page and not any sub pages that'd fix the bug.

Getting a bit lost with the debugging tools :(.
Title: Re: VirtueMart Home Page Settings - add to cart not working
Post by: super_dave on April 22, 2014, 05:31:41 AM
Or if I could disable 'add to cart' on the store homepage would remove the issue as well.