Cart count isn’t updating with caching enabled in Safar
-
Hello,
I am having a problem where the cart count isn’t updating in Safari when I have WP Super Cache enabled. I saw in another thread that adding the code below to my functions.php will fix this (which is does). However prior to adding the script, the cart count does still works when testing in Chrome, it only seems to be in Safari that there is a problem. Is there another way to solve this that doesn’t require enqueuing the cart fragments since it seems to be Safari specific?
function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); } add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cart count isn’t updating with caching enabled in Safar’ is closed to new replies.