Answer the question
In order to leave comments, you need to log in
How to add the same product to the cart as a new item, and not add to the quantity?
Good afternoon everyone. The bottom line is this:
I implemented on the site that if the product is from a certain category, then there are additional checkboxes in the product card.
In the case of checked checkboxes, the nomenclature of works is sent to the basket in accordance with the checked checkbox, for example: "tailoring", "cutting".
If the user in the online store marked the checkboxes on the product card and sent them to the cart, then, in principle, everything is fine - the following will turn out:
- item 1 - qty.1
- work 1 - col.1
- work 2 - col.1
- item 1 - qty.1
- work 1 - col.2
- work 2 - col.2
- item 2 - qty.1
- item 1 - qty.1
- work 1 - col.1
- work 2 - col.1
- item 2 - qty.1
- work 1 - col.1
- work 2 - col.1
Answer the question
In order to leave comments, you need to log in
Well, apparently your implemented logic works in such a way that the quantity is added to "work 1, work 2" ...
In fact, if I understand correctly, then you have these "work1, work2" they are also "tailoring, cutting" ... did you try not with Sets, but with Trade Offers ? For example, product1 can be red, blue, white... at the same time it is made of wood, metal, plastic and in this way beat your "tailoring, cut" and, for example, "cut, pattern, no services".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question