News:

Looking for documentation? Take a look on our wiki

Main Menu

Related products not being added to cart

Started by pdowse, December 20, 2018, 07:17:43 AM

Previous topic - Next topic

pdowse

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?

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation