SOLVED: Issue with Cart Page Update After Setting Quantity to 0

Hello everyone,

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.

Any suggestions would be greatly appreciated!

Best regards,
Artjom

Hey Artjom,

thanks for your report.

Could you maybe share a URL so I can see the issue in action?

Best,

André

Hi @aslotta,

URL: https://maiers-collection.de/

Just put any item in to the cart and delete it with the “X” → everything is ok.

Then:
Put any item in the cart and set the quantity in the cart to “0” → nothing is ok.

Kind rgds,
Artjom

Hi @Artjom,

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.

Regards,
Jenn

Hi @itchycode,

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).

Rgds,
Artjom

Hi @Artjom ,

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.

Regards,
Jenn

Hi Artjom,
We’ve fixed this issue in Bricks 1.8.6, now available as a one-click update in your WordPress Dashboard.

Please let us know if you are still experiencing issues.

Best regards,
timmse

Hi @timmse!

I’m experiencing this problem (no styles rendered, and some stuff missing) on the latest Bricks version + latest WooCommerce version!

(When on cart page, deleting products. After refresh, everything ok)

Hi @frussane ,
Your issue sounds like this one, right?

We’re working on a fix and will update the mentioned thread once it’s shipped :slight_smile:

1 Like

@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 :sweat_smile:

Sorry, I can’t offer you a quick fix :cry:
If the problem were easy to fix, it wouldn’t have been in the works for so long.

1 Like