Liquid, JavaScript, themes, sales channels
How can I use the add cart api (POST /{locale}/cart/add.js) to add a product to the cart as a new line item and not increase the quantity of the same item if it is in the cart. I have properties that I am adding to the cart product and need to ensure each line item respects those values.
Solved! Go to the solution
This is an accepted solution.
Hi @sancuscommerce ,
You have to add a property value in your query which should be unique in every request.
This will always create a new line item entry.
Hope this will work...
This is an accepted solution.
Hi @sancuscommerce ,
You have to add a property value in your query which should be unique in every request.
This will always create a new line item entry.
Hope this will work...
User | RANK |
---|---|
37 | |
28 | |
14 | |
13 | |
9 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023