This question already has an answer here:
- Disable merging of cart positions? 2 answers
Is it possible to add the same product to the shopping cart, but have it appear as different line items?
In my specific case I am adding a product to the cart programatically based on some conditions of the cart, specifically its subtotal.
When i add the product, I want to add it as a unique line item, regardless of whether that product already appears in the cart now or in future: added by a customer normally.
For example, say the cart look like this:
Product A - qty 1 Product B - qty 1
and I wanted to add Product B in my code, I would like it to appear like:
Product A - qty 1 Product B - qty 1 Product B (custom) - qty 1