cartjs
cartjs copied to clipboard
cart.requestComplete Vanilla js?
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
Yeah, this isn't working for me either.
Hello, yes, I'm also getting the same issue. Is there any fix for this?