• Resolved Deepak Kumar

    (@lakharadk)


    am using woocommerce with Request a quote plugin and Woocommerce Sample with Porto theme.

    Now the issue is When I add product to cart it shows successfully message but it is not visiable in cart.

    Currently I have price for the product and set as In stock. But still after adding product to cart it always shows me empty cart.

    For trouble shooting I have taken all the below mentioned steps:-

    Changes Theme Deactivated all the plugin Removed Cache Plugin Updated wordpress to latest version Set htaccess file to default and reset the permalink.

    Visit this link to see an issue

    https://b2cpjm57.myraidbox.de/produkte/test-product-1/

    https://b2cpjm57.myraidbox.de/produkte/test-product-2/

    https://b2cpjm57.myraidbox.de/produkte/test-product-3/
    I am adding here the link of product which is having issue.

    add_filter(‘woocommerce_is_purchasable’, ‘__return_TRUE’);
    function cw_remove_quantity_fields( $return, $product ) {
    return false;
    }
    add_filter(‘woocommerce_is_sold_individually’,’cw_remove_quantity_fields’
    , 10, 2 );
    Please try to add in cart but it will show you empty cart.

    Any help in this much appreciated in advance.

    I am struggling to resolve this issue for last 3 days but no luck.

    And I am using this filter also in my child theme when product has no price and quantity.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Deepak Kumar

    (@lakharadk)

    I have resolved this just by completely deleting woocommerce and it’s started working fine.

    I’m having the same problem here. I did all steps you mentioned. For a momentary solution (only for 24 hours) these steps will fixed the empty cart issue:

    – WooCommerce / Status / Tools
    – Clear WooCommerce transients
    – Clear Expired transients
    – Recount Terms
    – Clear customers sessions
    – Update database (Give it a few minutes until database is updated)

    THEN

    – WordPress settings
    – Permalinks
    – flush (clicking save button)

    I’ve been told that this issue in my site might be caused for having “session” issues; contacted my site’s web-host and the problem seems to come from WooCommerce.

    I would love to know if (like the comment above) by deleting WooCommerce would do the trick; but Deepak Kumar did not mentioned if by deleting WooCommerce, your products list might get deleted as well, or not, or if he installed WooCommerce again and created the product list all over again; or if the products list remain intact regardless deleting and re-installing WooCommerce. Too little information to be left for conclusions.

    @dorcaestela what other plugins are installed and what is the url to your store?

    Hi! I just found out what is causing the cart empty issue.

    First of all, thanks for replying and trying to help. Here was my problem:

    My database reached storage capacity, therefore pages such as cart or checkout couldn’t refresh to users entries since there was no left storage to keep saving sessions (wp_woocommerce_sessions). The issue was temporary fixed because I made some space available in some tables inside database. But it reached a point where I couldn’t delete more data (since is important and necessary data) until database used quota surpassed available storage capacity.

    If someone is trying everything they can to fix this problem, and it persists trying checking out your website’s database storage capacity in order to make sure that the issue is not caused by Woocommerce or other plugins (such as cache plugins).

    I talk to the web-host support team and acquired a better host plan with unlimited database storage capacity. Problem fixed.

    Ps: If you delete WooCommerce, product list won’t be deleted>>> regarding the question I made in my first comment.

    • This reply was modified 6 years, 1 month ago by dorcaestela.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce Empty Cart Issue’ is closed to new replies.