Answer the question
In order to leave comments, you need to log in
BX.onCustomEvent('OnBasketChange') - why does it take so long to think?
To track the event of adding a product to the cart, I use
the add code
BX.onCustomEvent('OnBasketChange');
var ajax = $.ajax({
type: 'POST',
url: location.pathname + '?action=ADD2BASKET&id=' + tovar,
data: {
ajax_basket: 'Y',
quantity: '1'
}
});
ajax.done(function(data) {
BX.onCustomEvent('OnBasketChange');
});
BX.onCustomEvent('OnBasketChange');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question