I created a script that opens the minicart. Now adding product is made using JS/Ajax and I don’t refresh the page. Now the problem is the Basket count is not being updated when I add to cart. Is there a way to manually triggers the headerCartUpdate
function from Magento_Theme headerBasket.js?
So basically I want to call it after the ajaxSubmit
of the catalog-add-to-cart.js