Site logo

Archived topic

Deleting products in cart with the "x" button at left does not work properly

6 replies · Started by Avi on April 3, 2022

Viewing posts 1–7 of 7

Hi,
This is in connection with the "x" button on the far left side of the cart.
We have seen that in some cases when the "x" button is pressed (ref. 1.jpg), a message like the following is generated:
"xxx" removed. Undo?
But, the product is not actually removed, which we can find remaining in the basket (ref. 2.jpg).
We have found this when the site is accessed from a different country, using the VPN.

However, we have also found that the "Update cart" button works properly in all situations.
I first thought that it is a cache issue and contacted my hosting provider (Kinsta) on this but it was reported that this issue is reproduced even when the cache is disabled and they reported that it is probably a theme-related issue.
From the above observation and the fact that the "Update cart" button works properly in all situations, I request you to have a look at this issue.
*Please refer to the gallery mentioned below for screenshots of the issue.

Best regards,
Avi

Hi Avi,

This shouldn’t be a theme related issue. You can test this by temporarily using a different theme like Twenty Twenty One. It would be good to take a back up before doing this.

Moreover, I also found similar threads wherein other people experienced the same issue: https://stackoverflow.com/questions/48095867/woocommerce-cant-remove-products-from-cart

Also see: https://wordpress.org/support/topic/unable-to-remove-item-from-cart/

I would recommend trying #1 here: https://docs.generatepress.com/article/debugging-tips/

Lastly, it would be also good to reach out to WooCommerce support to see if they have any insights with regards to this.

Here is another informational article: https://themeskills.com/fix-problem-with-removing-items-from-woocommerce-cart/

Hope this helps! :)

Hi Fernando,
Thanks for the response.
However, I have not enabled cache on this site!
What can be the cause then?

Meanwhile, how can I disable the "x" buttons, so they are not displayed on the checkout page?

Hi there,

As a general note - GP has no control over this function, its 100% the function of Woocommerce.
If needed you may want to ask Woo for support.

For the meanwhile - you can hide the remove product buttons with some CSS:

.woocommerce table.shop_table td.product-remove a {
    visibility: hidden;
    pointer-events: none;
}

Regarding the issue - as the issue is in other countries - do you have Cloudflare enabled on your server ?

OK, I understand. It is indeed a very strange issue.
I'll try to disable the buttons for now.
Kinsta says that the site is "It's using our Cloudflare integration, but there is no Cloudflare related caching - CDN or otherwise".

Ask Kinsta to Disable Cloudflare and then test - thats the easiest way to eliminate cloudflare as being an issue.

Hi,
Please close this ticket as the issue has been resolved.

This archived topic is closed to new replies.