• Whenever a customer that’s not logged in tries to add an item to the cart, it does not add to the cart. When you go to the cart page after trying to add an item to the cart, this message shows: “Your cart is currently empty”. I have enabled access in WooCommerce settings for customers to be able to place orders without having to be logged in. Please help!

    https://pastebin.com/9s1SPs4t

    https://pastebin.com/9yCxLRPF

    I can explain them to help you understand the problem better if you want

    <span style=”font-family: Inconsolata, Consolas, Monaco, "Lucida Console", monospace; font-size: 12.8px; text-wrap-mode: nowrap; background-color: rgb(246, 246, 246);”>define( ‘WP_DEBUG’, true );</span><span style=”font-family: Inconsolata, Consolas, Monaco, "Lucida Console", monospace; font-size: 12.8px; text-wrap-mode: nowrap; background-color: rgb(246, 246, 246);”>
    define( ‘WP_DEBUG_LOG’, true );</span><span style=”font-family: Inconsolata, Consolas, Monaco, "Lucida Console", monospace; font-size: 12.8px; text-wrap-mode: nowrap; background-color: rgb(246, 246, 246);”>
    define( ‘WP_DEBUG_DISPLAY’, false );</span><span style=”font-family: Inconsolata, Consolas, Monaco, "Lucida Console", monospace; font-size: 12.8px; text-wrap-mode: nowrap; background-color: rgb(246, 246, 246);”>
    @ini_set( ‘display_errors’, 0 );</span>

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Reynier C. (woo-hc)

    (@reynierc)

    Hi @naturalclinic ,

    Thanks for reaching out. I see the trouble with items not adding to the cart for guests can be quite frustrating. It sounds like you’ve already checked the WooCommerce settings for allowing guests to place orders, so that’s a good start.

    I would suggest to try clearing your cache first, both on the server side and your browser, as this often fixes similar issues.

    https://pastebin.com/9yCxLRPF

    Also, looking at your system status report you provided via pastebin, I noticed a few template files in your Salient theme are outdated. Specifically, the mini-cart.php, add-to-cart.php, form-login.php, and product-image.php templates from Salient are not up to date with the current WooCommerce version you are using (9.3.3).

    Outdated templates can cause issues like the one you’re experiencing where items do not add to the cart. I recommend updating your theme to the latest version that supports WooCommerce 9.3.3.

    https://pastebin.com/9s1SPs4t

    From this pastebin, the warning message “Empty patterns received from the PTK Pattern Store” suggests there was an issue fetching patterns from the Pattern Store. Patterns, in this context, are predefined block layouts used in the WordPress block editor to quickly create designed sections of content.

    This might be related to the WordPress theme or a plugin that attempts to access the Pattern Store for predefined layouts which can also be solved by updating your theme or plugins.

    For safety, make sure to secure a backup of your site before updating anything or use a staging site to test if possible. Please let me know how it goes.

    Thread Starter naturalclinic

    (@naturalclinic)

    I updated the theme and the plugins it uses. I cleared the woocommerce history and litespeed cache but the problem persists. Any other suggestions?

    Plugin Support Reynier C. (woo-hc)

    (@reynierc)

    Hi @naturalclinic ,

    Thanks for following through with the updates and clearing the caches.

    If the issue is still happening, could you send us the updated System Status Report? This will help us check if the templates updated along with the theme. I’d like to look at that first before suggesting to do a deeper form of troubleshooting like a conflict test.

    Looking forward to your response.

    Thread Starter naturalclinic

    (@naturalclinic)

    Plugin Support Jonayed Hosen (woo-hc)

    (@jonayedhosen)

    Hi @naturalclinic,

    I took a look at your site, and from my end, it appears that the cart items are displaying correctly without any errors. Everything seems to be functioning as expected.

    To help pinpoint the issue, could you confirm a few details for me? For example, does this error only happen with certain products in the cart, or does it seem to occur randomly? Also, have you had a chance to run a conflict test recently??

    If you’re seeing different results or if I missed any important context, please let me know.

    Thread Starter naturalclinic

    (@naturalclinic)

    Could you please try from your mobile phone?

    Plugin Contributor Luigi Teschio

    (@gigitux)

    Hi @naturalclinic,

    I’m able to replicate your issue. It looks like that this issue is caused because some pages should not be cached. I suggest running a test for conflict You can read more about plugin and theme conflicts in our Self-Service Guide.?

    How to test for conflicts

    The best way to determine if the issue is being caused by a theme and/or plugin is to:

    1. Temporarily switch your theme to Twenty Twenty-Three theme.
    2. Try to reproduce the problem:?If the problem is resolved, it’s a theme conflict. If not, continue to the next steps.
    3. Temporarily deactivate all plugins except WooCommerce. You can do this manually or use a plugin to help (see below for tools).
    4. Try to reproduce the problem again. If the problem is resolved, it’s a plugin conflict. To figure out which plugin is causing the problem, continue to the next step.
    5. Reactivate your other plugins one by one, testing after each, until you find the one causing conflict.?

    For more detailed instructions, check out How to test for plugin and theme conflicts

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.