Author Topic: Add to Cart Linking  (Read 585 times)

sortlarz

  • Beginner
  • *
  • Posts: 1
  • A beginner
Add to Cart Linking
« on: July 18, 2017, 23:47:03 pm »
Hello !

I am currently using v3.2.2 on Joomla 3.7.3.

I am using VM only for check out as i've got a different way of displaying products. I need to use a custom add to cart link.

I found and used this

Code: [Select]
/index.php?option=com_virtuemart&view=cart&task=add&virtuemart_product_id=6&virtuemart_category_id=8&quantity=1
This one , links me to the cart but it wont really add my product.

Please help  ???

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 830
  • VirtueMart Version: VM3 on J3
Re: Add to Cart Linking
« Reply #1 on: July 18, 2017, 23:54:04 pm »
product id must be an array:  virtuemart_product_id[]=6

Code: [Select]
/index.php?option=com_virtuemart&view=cart&task=add&virtuemart_product_id[]=6&virtuemart_category_id=8&quantity=1

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9336
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Add to Cart Linking
« Reply #2 on: August 03, 2017, 06:30:59 am »
the quantity also, you can even add more than one product at once.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

loppan

  • Jr. Member
  • **
  • Posts: 111
    • CRASHDÏET Official Website
  • VirtueMart Version: 3.0.12
Re: Add to Cart Linking
« Reply #3 on: August 03, 2017, 08:46:20 am »
What is the "syntax" for adding more than one products in the same URL? Also, does this work with child products?
Joomla 3.4.8 + VM 3.0.12