• Resolved mmk175

    (@mmk175)


    Hi folks,

    This bug is occurring while testing the orders on woocommerce, neve theme.

    Basically, I am making sure the emails get sent to the owner so they know an order is in and to the customer so they know it’s being processed.

    Example

    Order 1 placed with product A inside. – Thank you message appears. Order status is processing.

    Order 2 immediately placed right after with product B inside however the order as both Product A and B in the cart.

    I am 100% sure I am testing correctly as the thank you message appears and the emails all go out as required. It’s just weird that when I test a second time, the product from the last order is still in the cart.

    Hopefully this is just a testing bug but if anyone has advice that would be great.

    I have included a link to a recording of the bug below.

    https://www.loom.com/share/895eab95604241b3a2f0153c7632f0cd?focus_title=1&muted=1&from_recorder=1

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    It seems like you are experiencing an issue with testing orders in WooCommerce, where the cart is not being cleared after each order is placed, causing products from previous orders to remain in the cart during subsequent tests. This can be a common issue during testing due to caching, sessions, or other factors. Here are some steps you can take to address this issue:

    1. Clear Cache:
      Make sure to clear your website’s cache before each test. Cached content can cause products to remain in the cart, giving the appearance of a persistent cart issue.
    2. Use Incognito/Private Browsing:
      Use your browser’s private browsing mode (incognito mode) or a different browser for each test. This can help prevent caching and session issues from affecting your tests.
    3. Session Management:
      WooCommerce uses sessions to manage cart data. Sometimes, session data can be cached or stored longer than expected. If you are using a caching plugin, ensure that it’s not caching cart-related data.
    4. Test on Staging:
      If possible, perform your tests on a staging or development environment. This environment is less likely to have cached data and can help isolate the issue from your live site.
    5. Check for Caching Plugins:
      If you’re using caching plugins, make sure they are not caching cart-related data or interfering with session management.
    6. Check Theme and Plugin Conflicts:
      Temporarily deactivate all non-WooCommerce plugins and switch to a default WordPress theme (like Twenty Twenty-One). Then, test the order process again. If the issue is resolved, reactivate plugins and switch back to your theme one by one to identify the conflicting element.
    7. Update WooCommerce:
      Ensure that you are using the latest version of WooCommerce. Updates can include bug fixes that might resolve such issues.
    8. Review Customizations:
      If you’ve customized your theme or WooCommerce templates, review your custom code to ensure it’s not interfering with the cart clearing process.
    9. Test on Another Device:
      Test the orders on a different device or computer to eliminate the possibility of any device-specific issues.

    By taking these steps, you should be able to identify and address the issue of products remaining in the cart after placing an order in WooCommerce.

    Thread Starter mmk175

    (@mmk175)

    Hi @owadud655

    Thanks for your insight. I am hoping it’s just a testing issue. I will be going live with the site next month hopefully.

    Kind Regards

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @mmk175

    I understand that you’re experiencing an issue with persistent cart content during your testing phase. This is indeed unusual, as WooCommerce should automatically clear the cart after each order is placed.

    There could be a few reasons for this issue. One possibility could be a caching issue. Some hosting providers use aggressive caching methods that can cause such situations. If you’re using a caching plugin, you may want to exclude WooCommerce pages from caching.

    Also, make sure to clear your browser cache too. You can follow our detailed guide on clearing browser cache here: https://wordpress.com/support/browser-issues/#clearing-your-browser-cache

    Another possibility could be a conflict with another plugin or the theme itself. You can test this by deactivating all other plugins except WooCommerce and switching to a default WordPress theme like Storefront. If the issue disappears, you can reactivate your plugins one by one to identify the conflicting one. You can find a detailed explanation of conducting a conflict test here.

    Finally, there could be a session or cookie problem. WooCommerce uses sessions to store cart data and if there’s a problem with the way your site handles sessions, this could lead to the issue you’re experiencing. You might need to check your PHP session save path, or switch to database sessions.

    Additionally, your video has been deleted and I can’t watch it to understand the issue clearly. If the issue still continues, please can you share a copy of the following:

    • System Status Report: navigate to WooCommerce → Status. Select Get system report and then Copy for support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.
    • A video demonstration of the issue at your end.

    Please note that, it’s normal to encounter some bumps along the way when preparing a website for launch. The important thing is to identify and address these issues before the site goes live. We’re here to assist you every step of the way.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter mmk175

    (@mmk175)

    @shameemreza thanks for your response. I will double check the issue when we go live.

    Kind Regards

    • This reply was modified 1 year, 2 months ago by mmk175.
    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @mmk175 ,

    That sounds like a plan ??

    We’ll be here if you need any further help with this, otherwise, feel free to?create a new topic?if you need any further help with WooCommerce core.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cart Issue – Products “stuck” – BUG’ is closed to new replies.