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

cart.requestComplete Vanilla js? #204

Open
Sanj718 opened this issue May 29, 2021 · 2 comments
Open

cart.requestComplete Vanilla js? #204

Sanj718 opened this issue May 29, 2021 · 2 comments

Comments

@Sanj718
Copy link

Sanj718 commented May 29, 2021

Hello!
I want to know if you help to understand how events are working on vanilla js?

$(document).on('cart.requestComplete', function(event, cart) {
        $('#counter').html(cart.item_count);
 });

This way is not working:

document.addEventListener('cart.requestComplete', function(event, cart) {
  // Event handling here.
  console.log(cart)
})

Thank you

@bstarr322
Copy link

Yeah, this isn't working for me either.

@gautam-grazitti
Copy link

Hello,
yes, I'm also getting the same issue.
Is there any fix for this?

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

3 participants