181
Views
3
Comments
Solved
[eCommerce] Setting up rules in eCommerce
Question
ecommerce
Web icon
Forge asset by eCommerce sample

For a given product listing page with cart. Can we set up rules on cart? 

1) For instance, if user adds product "A", then product "C" should gets added automatically.

2) If user removes product "A" from cart, then product "C" also gets removed automatically.

Note: User can remove the product "C" manually from cart. But this does not remove product "A".

2018-05-30 11-58-33
Guilherme Menescal Dantas
Solution

Hi Sandeepkumar,


 I think if you want to do that then you need to define which products are dependent from each other, in that case that will ask that you actually make a change in the DB! Probably you would need to have a new entity which keeps those dependencies, and also you would need a way to create those dependencies, maybe creating a screen to manage them?!?

UserImage.jpg
Sandeepkumar Gupta

Guilherme Dantas wrote:

Hi Sandeepkumar,


 I think if you want to do that then you need to define which products are dependent from each other, in that case that will ask that you actually make a change in the DB! Probably you would need to have a new entity which keeps those dependencies, and also you would need a way to create those dependencies, maybe creating a screen to manage them?!?

So, I assume there is no provision to define rules for given products in eCommerce out of the box. It requires implementation from developer.


2018-05-30 11-58-33
Guilherme Menescal Dantas

Hi Sandeepkumar,

 Not that I know of/remember. Have you gotten further with this?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.