Hello,
I use to use to use JS to trigger the off canvas cart when someone added an item to their cart. With the new release it does not work. Could you take a look at this code and tell me why it might be broke now? Thanks!!
var $ = jQuery;
(function($) {
$(document).ready(function(){
$('.add_to_cart_button').click(function() {
setTimeout(function(){
$('.hm9').addClass('x-active');
$('.x-off-canvas.x-off-canvas-right').addClass('x-active');
}, 550);
});
$('.x-off-canvas-close, .x-off-canvas-bg, .x-off-canvas-content').click(function() {
$('.x-off-canvas.x-off-canvas-right').removeClass('x-active');
$('.hm9').removeClass('x-active');
});
});
})(jQuery);