on ‎2018 Jun 11 6:54 PM
I'm working with Hybris 6.2 and i need to split an entry
Usually when the user adds to the cart three items of the same product you have one entry with a quantity of three, but for certain type of products i need to have one entry for each item, so instead of one entry with a quantity of three i need to have three entries with a quantity of one each, but Hybris seems to automatically group the products in one entry when they are of the same type.
does anyone know how can i split that entry accordingly to the quantity of items in the entry? or how to aboid that Hybris automatically group them together?
Request clarification before answering.
I would suggest implementing own logic for de.hybris.platform.commerceservices.order.EntryMergeFilter because there are cases when previously separate items might be merged(e.g. during merging carts)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just set CommerceCartParameter.createNewEntry(true); and it will always create a new entry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.