Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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...
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024