VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: notanothernumber on November 11, 2013, 04:51:23 AM

Title: Child Products stock levels stopping add to cart functionality
Post by: notanothernumber on November 11, 2013, 04:51:23 AM
I've set up a parent product with three child products for administering stock control. Want I want to achieve is when a user selects a child product that is out of the stock they are given the 'notify me' option but when the child product is in stock they can simply add it to the cart. With that in mind if you go to this page - http://simplysleepwear.com.au/new-site/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=272&virtuemart_category_id=7&Itemid=73 – there is a major issue whereby if you select the child product  that has stock (medium) and click the add to cart option you'll notice the cart functionality is no longer working. On a positive the notify section/functionality works fine.

Cheers
Martin
Title: Re: Child Products stock levels stopping add to cart functionality
Post by: notanothernumber on November 11, 2013, 05:19:56 AM
Sorry forgot to mention Joomla! 2.5.14 & Virtuemart 2.0.24
Title: Re: Child Products stock levels stopping add to cart functionality
Post by: stAn99 on November 11, 2013, 14:00:46 PM
Hello, you should make sure that you have no javascript issues on your site before using the ajax stuff of the cart functions, pls get rid of this issue first:
Uncaught TypeError: Cannot call method 'set' of null
http://simplysleepwear.com.au/new-site/templates/beez_20/javascript/md_stylechanger.js (line 66)

It might have blocked the javascript needed by the cart functions.

Best Regards,
Stan
Title: Re: Child Products stock levels stopping add to cart functionality
Post by: notanothernumber on November 13, 2013, 04:38:33 AM
Thanks for the heads up Stan but do you (or anyone else) know how I could fix this?
Title: Re: Child Products stock levels stopping add to cart functionality
Post by: Maxim Pishnyak on November 13, 2013, 17:07:19 PM
http://forum.virtuemart.net/index.php?topic=119638.0
Title: Re: Child Products stock levels stopping add to cart functionality
Post by: notanothernumber on November 15, 2013, 00:43:53 AM
Arrgghh! Installed JQuery Easy but problem still on going. I put a post on their forum and they gave me the following answer:

Hello,
there is a file that has a 404 error:
forum.virtuemart.net/Themes/nadel-1/scripts/theme.js?rc5
but this cannot be fixed with the jQuery Easy plugin.
There is actually no jQuery in that page at all.
The plugin is not going to fix anything for you here, there are no conflicts or anything related to jQuery as far as I can tell.

Anyone any ideas where I can go next?

regards
martin
Title: Re: Child Products stock levels stopping add to cart functionality
Post by: Maxim Pishnyak on November 20, 2013, 14:20:01 PM
Quote from: notanothernumber on November 15, 2013, 00:43:53 AM
forum.virtuemart.net/Themes/nadel-1/scripts/theme.js?rc5
Is it correct URL?
Title: Re: Child Products stock levels stopping add to cart functionality
Post by: notanothernumber on November 22, 2013, 02:22:31 AM
Sorry my fault I should have checked that, no the URL provided is not working. Since posting though I have now removed the conflicting javascript from the template but add to cart/notify me functionality is still not working - http://simplysleepwear.com.au/new-site/ . Any more advice/pointers/help would be mightily appreciated.

Cheers
Martin