Mini cart is not update correctly when item added to or removed from cart
Ensure the mini cart updates accurately when items are added or removed.
add_action('woocommerce_before_mini_cart', function () {
?>
<script>
jQuery(function($) {
$(document.body).on("added_to_cart removed_from_cart", function() {
$(document.body).trigger("wc_fragment_refresh");
});
});
</script>
<?php
});PreviousSale Badge percentage not shown issue compatibility for TopDeal themeNextRound Discounts (round half up)
Last updated