VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: pdowse on December 20, 2018, 07:17:43 AM

Title: Related products not being added to cart
Post by: pdowse on December 20, 2018, 07:17:43 AM
Hi Guys,

When a customer clicks on the add to cart for the related products that pop's up - it's not adding them to the cart.

If you go to https://tvremotes.com.au/ and add a product you will see a related product popup - but when clicking add to cart it just goes to the shopping cart page.

Any ideas why it's not adding related products?
Title: Re: Related products not being added to cart
Post by: GJC Web Design on December 20, 2018, 09:36:04 AM
the reason is that the vars are not passed

the url from the popup is a simple  https://tvremotes.com.au/ + the POST

it should be e.g.   https://tvremotes.com.au/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=en&Itemid=132 + the POST

the form vars are there but I don't know why they aren't passed .. in the std. template there are no add to cart buttons in the popup..  maybe they simply don't work from a modal?
quick google seems to suggest this should be down by ajax