Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle clear cart button #136

Open
kgonella opened this issue Jan 18, 2022 · 3 comments
Open

Handle clear cart button #136

kgonella opened this issue Jan 18, 2022 · 3 comments

Comments

@kgonella
Copy link
Contributor

In case of the customer use the clear button, the removeFromCart event should be sended for all product that were in the cart.

@stefandoorn
Copy link
Owner

Isn't Sylius already internally sending the cart remove event multiple times? If not, that would be good anyway in Sylius I think.

@kgonella
Copy link
Contributor Author

I don't think so. Single item add or remove events are dispached in the OrderItemController.
The clear is done in the OrderController::clear() Action. It dispached the remove event on the order directly.

@stefandoorn
Copy link
Owner

@kgonella Would you be able to submit a PR? :-) I think with the current GA4 and mainly backend listeners, it should be easier than it used to be with frontend tracking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants