• Resolved nan0game

    (@nan0game)


    Hello
    I use the WooCommerce plugin on my site.

    Currently my site has this problem.
    When a user registers on the site and wants to add a product to his shopping cart, that product will be removed from the shopping cart after a few seconds.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi @nan0game,

    Thank you for contacting WooCommerce Plugin Support. I understand you are having trouble with your products being removed from the cart. This issue could be caused by a number of factors, such as a plugin or theme conflict, a caching problem, or a session expiration. To help you troubleshoot this, I have a few suggestions for you to try:

    • First, please make sure that you are using the latest version of WooCommerce and WordPress, as well as your theme and other plugins. Updating your plugins can often fix bugs and improve compatibility.
    • Next, please try clearing your browser cache and cookies, as well as any server or plugin cache that you may have enabled on your site. Sometimes, caching can interfere with the cart functionality and cause unexpected behavior.
    • Then, please perform a conflict test to see if there is any plugin or theme that is causing the issue. You can do this by temporarily deactivating all other plugins except WooCommerce and switching to a default WordPress theme like Twenty Twenty-One. Then, test if the issue persists. If it does not, then you can reactivate your plugins and themes one by one until you find the culprit.

    If the issue persists, please share with us the System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support. You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Let us know if there’s anything else we can help you with.

    Thread Starter nan0game

    (@nan0game)

    I did what you said but my problem is not fixed

    ———————————————–

    [ SNIP ]

    • This reply was modified 9 months, 3 weeks ago by Jan Dembowski.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @nan0game

    Please do not post large code or responses like that here, it doesn’t work after ~10 lines or so.

    If you need share that data please use https://gist.github.com/ or https://pastebin.com/ or the like instead and post the link to that paste.

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey there ??

    Just to clarify the exact issue:

    • Does the cart clear when you’re already logged in and then add items, OR
    • Does adding items to the cart while logged out and then logging in clear the cart?

    If the latter, do you currently have WooPayments, and Jetpack active on the site? If so, this is a known issue which you can see on GitHub here.

    It looks like this PR?would fix the issue in WooPayments 7.2.0, which is set to be released on Feb 14th, 2024.

    If the GitHub issue does not relate to what customers are currently experiencing on your site, would you mind uploading your sites System Status Report by using?Pastebin, and then share the link with us here so that we can take a closer look. ??

    Additionally, can you please share any fatal error log found under WooCommerce?→?Status?→?Logs.

    Cheers!

    Thread Starter nan0game

    (@nan0game)

    hello
    I put the WooCommerce report in this link:
    https://github.com/NanoGame22/WooCommerce/issues/1

    The problem is that when a user enters your site (registration or login), when he wants to add a product to his shopping cart, after clicking the add to cart button, the sidebar containing the products in the shopping cart is displayed.

    Interestingly, when the sidebar appears, that product is available in the cart, but if we wait for a few seconds, the product is suddenly removed from the cart and sidebar without any error.

    I just realized that this problem happens randomly and sometimes it can happen and sometimes products can be added to the cart without any problems. In fact, it is very random, which makes it difficult to diagnose the problem.

    Also, I don’t use Jetpack or WooPayments plugin.

    Thread Starter nan0game

    (@nan0game)

    I tested everything, disabled all Harrow Tech plugins and checked the problem. I installed and checked the default WordPress theme. I updated WordPress core manually

    However, I still haven’t found the source of the problem

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @nan0game.

    Ah, gotcha! Thanks for clarifying.

    Just to make sure, the issue was still present when temporarily switching to a default theme, such as Storefront, correct?

    I’m asking because I’m able to see from your SSR that your current theme overrides the cart, as seen below:

    woodmart/woocommerce/cart/cart-item-data.php
    woodmart/woocommerce/cart/cart.php
    woodmart/woocommerce/cart/cross-sells.php
    woodmart/woocommerce/cart/mini-cart.php

    If switching themes makes no difference, since this is an intermittent issue, it can be quite tricky to troubleshoot.

    Do you perhaps recall any of the following from your testing:

    • If this occurred with specific products?
    • If this occurred with a specific amount of items added to the cart?
    • Which browsers you’ve managed to replicate this behavior on?

    In the meantime, can you reach out to your host and ask them to make sure that your Cart and Checkout pages are excluded from being cached as this is a common reason for this type of behavior.

    Cheers!

    Thread Starter nan0game

    (@nan0game)

    I tested the default wordpress themes as well as storefront, none of them solved the problem.

    This happened to all products

    The customer is only allowed to buy one item of the product

    It can also be seen in all browsers


    I’ve tested everything and I’m sure the problem is WooCommerce. Maybe the problem is with the WooCommerce database??

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi,

    Thanks for sharing more details on this.

    Maybe the problem is with the WooCommerce database

    Could you try manually updating your WooCommerce database by heading over to WooCommerce > Status > Tools > Update Database.

    This should help update your Database, once updated check if the issue persists.

    Thanks.

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Howdy ??

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you need any further help with this.

    Cheers!

    Hello @nan0game.

    Please, can you tell me if you found a solution for your problem? I am experiencing something very similar, and is very random.

    Thanks.

    Hey, @rafasshop!

    Since we did not get a reply, we are not sure if the issue was solved. Per WordPress forum guidelines, would you mind opening up a new thread for this so that we can keep things organized and offer more personalized support for you? We’ll be happy to help you out with this over there!

    Have a wonderful day!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘A few seconds after the products are added to the shopping cart, they are remove’ is closed to new replies.