I am experiencing an issue on my WooCommerce site and hoping to get your help. The problem concerns the behavior of the cart page when the quantity of a product is set to 0 and the “Update Cart” button is clicked.
I have a custom empty cart page that should be displayed when the cart is empty. However, when the product quantity is set to 0 and the cart is updated, the empty cart page initially loads incorrectly: a picture is missing, the buttons are misplaced, etc. This faulty state persists.
Interestingly, the empty cart page loads correctly when a product is removed from the cart using the “X” button. This issue only occurs when the product quantity is manually set to 0 and the cart is updated.
Thanks for the details sharing.
I can replicate the issue and record in the bug tracker. The empty cart styles not render properly when using update cart.
You fixed this bug with bricks 1.8.5, but since woocommerce update 8.0 was released. This bug is worse as before. Now it’s not important where you delete your product from the cart, the empty cart template don’t show anymore (only after refreshing the page).
Thanks for highlighting this issue.
Yup, I can see the changelog of WooCommerce 8.0.0
There is something change on the wrapper of wc_empty_cart_message.
Will look into this.
@timmse Exactly! Is there any quick fix or suggestion I could apply in the mean time?
It would even be feasible for me to just redirect to shop page on product delete/cart emtpy.
I’m working on a shop that should be released by the end of this week, and this is nagging us here at the studio