cartjs icon indicating copy to clipboard operation
cartjs copied to clipboard

cart.requestComplete Vanilla js?

Open Sanj718 opened this issue 4 years ago • 2 comments

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

Sanj718 avatar May 29 '21 04:05 Sanj718

Yeah, this isn't working for me either.

bstarr322 avatar Jan 24 '22 22:01 bstarr322

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

gautam-grazitti avatar Mar 15 '22 12:03 gautam-grazitti