Closed tarhi-saad closed 1 year ago
Just came across this myself. The very helpful woo rep sent me here.
If you install TI Woocommerce Wishlist plugin it actually starts working again. (the updating of the amounts in the cart not the rest).
I have used this to fire the ajax call on the cart page. //MAKE SURE MINI CART UPDATES ON CART PAGE function enqueue_wc_cart_fragments() { if (is_cart()) { // Check if it's the cart page wp_enqueue_script('wc-cart-fragments'); } } add_action('wp_enqueue_scripts', 'enqueue_wc_cart_fragments');
Just add to child theme functions or add using a codesnippet plugin. It doesnt restore the drop down ability of the mini cart but they are on the cart page anyway so it is not majorly important. Could be argued just hiding it would be fine but I prefer it up dating.
Describe the bug
The Storefront header cart is broken on the cart and checkout pages (i.e., for both the shortcode and blocks versions):
The cart details don’t show up anymore when we hover over it:
This component isn’t refreshed after a cart update:
After updating the cart in the shortcode version, I made changes to reduce the items from 3 to 1, resulting in a new total cost of $18. However, despite the update, the Storefront header cart continues to display the outdated values instead of reflecting the current changes.
I did some digging and discovered it uses the Legacy Cart Widget under the hood (See line). As a result, the Storefront header cart will be broken on the cart and checkout pages because the Legacy Cart Widget won’t be loaded (see code). A possible solution would be to prevent the Storefront header cart from loading on the cart and checkout pages.
Isolating the problem (mark completed items with an [x]):
To Reproduce
Steps to reproduce the behavior:
Screenshots
Expected behavior
There are two valid behaviors we can choose from if we are on the cart and checkout pages:
Browser Environment
Please provide as much detail as possible about your testing environment.
WordPress Environment
I made the tests on a Jurassic Ninja website and locally using the Local WP tool