News:

Support the VirtueMart project and become a member

Main Menu

How to add product to cart using a custom button

Started by NTAuthority, May 13, 2016, 21:18:53 PM

Previous topic - Next topic

NTAuthority

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

GJC Web Design

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

NTAuthority