How can I create another add-to-cart button that adds my product three times with one click?

New Member
6 0 0

...

0 Likes
Shopify Expert
175 34 56

You can add to the cart with Line Item Properties, not just a quantity and id:

jQuery.post('/cart/add.js', {
  quantity: 3,
  id: 794864229,
  properties: {
    'First name': 'Caroline'
  }
});
Problem Solved? ✔️Accept the solution so you can help others.
* Email: fayyazraza@gmail.com * Skype: fayyaz_raza
0 Likes
New Member
6 0 0

First of all, thank you for taking the time to answer. Unfortunately, I do not understand your answer. Where should I add your code and is it necessary to customise it?

0 Likes
Shopify Expert
175 34 56

Please send me url of the page and then I can send you exact code to add in your them. Or I can do that for you as well. 

Problem Solved? ✔️Accept the solution so you can help others.
* Email: fayyazraza@gmail.com * Skype: fayyaz_raza
0 Likes
Highlighted
New Member
6 0 0
Shopify Expert
175 34 56

You need to first get the varient id then pass that id to to js while adding products into cart. If you know js and liquid you can easily do that. Thanks

Problem Solved? ✔️Accept the solution so you can help others.
* Email: fayyazraza@gmail.com * Skype: fayyaz_raza
0 Likes