cancel
Showing results for 
Search instead for 
Did you mean: 

How to add every product to cart as a separate line item, without summarizing the quantities?

Former Member
0 Kudos

Hi Team,

I need to add every set of products to cs a new line items. I don't want products to be grouped as single line item based on the product id.

i.e If I add two Apple iPhones to my cart separately. My cart should have them as two separate line items.

Cart:

Apple iPhone - Qty 1

Apple iPhone - Qty 1

Should not be added as below

Cart:

Apple iPhone - Qty 2.

Any Ideas on how to achieve this? Thanks in advance!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

I have tried this approach making createNewEntry(true), the problem in cart page is it shows only one single line item and the qty is 1, but subtotaland tax will be the price of 2 line items. Even if you remove any item in Cart page, the other item will still be there. I noticed it in demo stores.In further pages of checkout you can see two individual line items under items to be delivered heading. In fact the code used in both the pages is same, which is retrieval from cartdata.let me know if solved in cart page.

Former Member
0 Kudos

Hi Mohan Priya,
Can you provide me code for the same ? , as I need to implement in my project

Regards,
Md Hamid

Former Member
0 Kudos

It is possible to send to cart service a parameter createNewEntry that makes this happen. But facades by default set this value to false so you would need to override it and set value to true