Open gmanhub3 opened 6 months ago
Thanks for opening this issue, @gmanhub3! I was able to reproduce what you described: the Storefront Mini-Cart doesn't update when the quantity changes in the Cart block.
Steps to reproduce:
Enregistrament de pantalla del 2024-03-18 15-49-19.webm
I will leave this issue open. It's unlikely we will focus on it soon, as we are currently prioritizing work in blocks and block themes, but we are always open to reviewing PRs if somebody wants to give this a chance. :slightly_smiling_face:
Describe the bug
Mini Cart count is not updating properly on Cart page.I Installed the fresh WP Version: 6.4.3 and WC Version: 8.6.1 and storefront (Version: 4.5.4) for testing purpose and try add this to the theme function.php this snippets but not working.
function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); } add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );
I have no other plugin installed or theme just (wp,wc,storefront) fresh install.
Isolating the problem (mark completed items with an [x]):
add some items to with "add to cart button" and go to Cart page and try remove item or use plus/minus button change the item count in header mini-cart will not change and update the counter icon number
Screenshots
Screenshots
Expected behavior
when remove or add item with plus / minus button need to be update the mini cart icon counter dynamically without refresh the page
Browser Environment
Please provide as much detail as possible about your testing environment.
Bugs log and console
-chrome and firefox console no any error (Inspect mode)
-i turned on wp errors on wp-config.php no any errors define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_DISPLAY’, true ); define( ‘WP_DEBUG_LOG’, true ); define( ‘SCRIPT_DEBUG’, true );
-i restarted the server and tested again the error logs no errors generated only this:
[Fri Mar 15 10:26:33.676904 2024] [mpm_prefork:notice] [pid 16707] AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations [Fri Mar 15 10:26:33.676991 2024] [core:notice] [pid 16707] AH00094: Command line: '/usr/sbin/apache2'
WordPress Environment
click for details