Created
August 21, 2023 16:50
-
-
Save elias1435/a8aa2af1ef0fdcaf62c93e7791810ccf to your computer and use it in GitHub Desktop.
WooCommerce Mini Cart is coming Blank on add to cart from product page. code will do under functions.php make sure you are using child theme.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function enqueue_wc_cart_fragments() { | |
wp_enqueue_script( 'wc-cart-fragments' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment