VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: NTAuthority on May 13, 2016, 21:18:53 PM

Title: How to add product to cart using a custom button
Post by: NTAuthority on May 13, 2016, 21:18:53 PM
Hello everybody, you may move my topic if it's in the wrong section.
I'm looking for a way to add a product to the cart when the user clicks a custom button (not the VM generated one) and when the product is successfully added the modal box should appear. I tried sending data using a GET request to the specified URL with no avail. Can anybody give me a helping hand?
Thank you!
EDIT: I've attached the code snippet I'm currently working on
Title: Re: How to add product to cart using a custom button
Post by: GJC Web Design on May 13, 2016, 22:16:07 PM
https://forum.virtuemart.net/index.php?topic=132011.0  .. i.e. a direct link to add a product
Title: Re: How to add product to cart using a custom button
Post by: NTAuthority on May 14, 2016, 12:36:17 PM
Thanks I'll try!