• )?? Issue Summary

    We are experiencing major checkout & payment processing issues on our WooCommerce store.

    ? Problems Encountered:
    1?? Cart Displays Wrong Items:

    • When customers add a product to the cart, a random product is added instead of the correct one.
    • Example: Adding “Parrot Food” shows “Harrison’s Bird Food” in the cart.
    • Sometimes, the correct product appears, but 9/10 times it’s wrong.

    2?? Checkout Completes, but Order Page Says “Cart is Empty”

    • The checkout process works fine, and payment is taken.
    • However, instead of the “Thank You” page, customers are redirected to a “Cart is empty” page.

    3?? Payment Stuck in Processing (Even Though Paid)

    • This happens with PayPal, Google Pay, and other payment gateways.
    • Payments are successfully processed, but orders remain in Processing instead of Completed.

    4?? WooCommerce Fatal Errors in Logs

    • Errors like Call to undefined function hoppers_config_header()

    Debugging Steps Taken So Far

    ? Regenerated WooCommerce Pages (No effect)
    ? Checked Checkout Endpoints (All are correctly set)
    ? Reinstalled Payment Gateways (No effect)
    ? Disabled Plugins (Issue persists even with only WooCommerce active)

    WooCommerce Conflict?

    • The checkout flow partially works, but cart/session issues exist.
    • WooCommerce might be clearing the cart too soon, preventing the Thank You page from showing.

    What We Need Help With

    ?? Fixing the cart bug that adds the wrong item
    ?? Ensuring checkout properly redirects to the “Thank You” page
    ?? Automatically marking successful payments as “Completed”
    ?? Checking if the theme is properly calling required functions

    Any help or guidance would be greatly appreciated!
    We have spent days troubleshooting, and we are running out of solutions.

    Thanks in advance to anyone who can assist!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there @panagiotapetra – Thank you for reaching out about this!

    From what I gather, based on the Debugging Steps Taken So Far, it appears the theme was left unchecked, correct? Problem number 4 hints to that, too, from what I gather.

    It appears the site at https://www.moreaspetsupplies.com currently has an outdated version of the Hoppers theme active (per its source code, linked here). The latest version was published on February 25, 2025, and appears to be compatible with the latest versions of both WordPress and WooCommerce – details here.

    ?? Fixing the cart bug that adds the wrong item

    It appears to be working as expected on my end. Linked here is a screenshot, for reference.
    Regardless, kindly test again after making sure the latest version of the theme is active.


    ?? Ensuring checkout properly redirects to the “Thank You” page

    Just to clarify, the classic (using a shortcode) or block checkout is active on the checkout page? Related documentation can be found linked here, for either case.


    ?? Automatically marking successful payments as “Completed”

    Taking a look at the site’s plugins, it appears like a plugin conflict. Namely, I notice at least 2 instances of PayPal gateways – linked here is a screenshot, for reference. To clarify, did you already have a chance to try with temporarily having only the WooPayments active and see if the issue persists, or otherwise?


    ?? Checking if the theme is properly calling required functions

    Responded above. Kindly make sure it is updated to the latest version available first. Otherwise, feel free to test with temporarily activating the Storefront theme, and see if the issue persists or otherwise.

    I hope this helps – let us know how it goes!

    • This reply was modified 4 days, 5 hours ago by anastas10s. Reason: typos
    • This reply was modified 4 days, 5 hours ago by anastas10s. Reason: typo
    Thread Starter panagiotapetra

    (@panagiotapetra)

    Hi @anastas10s,

    Thanks for your response. However, I need you to focus on the actual issue that is breaking WooCommerce payment processing—the REST API and webhook failures.

    Here is what I have already tested:

    1?? THEME ISSUE

    • I tested by switching to Storefront. It broke everything, confirming that the theme is deeply tied into WooCommerce’s core functions.
    • I need confirmation: Does WooCommerce require anything specific from themes to properly register REST API routes and webhooks?

    2?? PAYMENTS DO NOT PROCESS BECAUSE THERE ARE NO WEBHOOKS

    • WooCommerce > Settings > Advanced > Webhooks is completely empty—no webhooks exist.
    • Attempting to manually add them results in REST API failure (404 errors).

    3?? REST API IS BROKEN

    • When testing the WooCommerce API, I get: cssCopyEdit{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}
    • This happens even after:
      ? Regenerating permalinks.
      ? Resetting WooCommerce API keys.
      ? Clearing transients and caches.
      ? Reinstalling WooPayments.
      ? Completely deleting WooPayments and starting fresh.

    This is not a theme update or plugin conflict issue.
    This is a WooCommerce REST API issue that prevents payments from being processed.

    ?? I need WooCommerce Support to confirm:

    1. What prevents WooCommerce from generating webhooks?
    2. Why is the WooCommerce API returning a 404 for all webhook routes?
    3. How do we force WooCommerce to register its REST API endpoints again?

    Please focus on the WooCommerce API issue and webhooks, not theme updates or checkout behavior.

    Thanks,
    Petra

    Thread Starter panagiotapetra

    (@panagiotapetra)

    I also checked my wptl_post for orders and found:

    The post_status is set to “publish” instead of “wc-processing” or “wc-completed”
    The post_type is “page” instead of “shop_order”?? What This Means

    WooCommerce is saving orders as pages instead of actual orders, right?

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello panagiotapetra,

    Thank you for your reply.

    I understand you are facing multiple issues on your website. The problems affect several WooCommerce functions along with the payment gateways.

    Could you please share your site’s System Status Report with me?
    This report will allow me to examine your site setup and get a better understanding of the problems.
    You can paste it into https://pastebin.com and share the link here.

    I suspect we will need to perform a conflict test, so it would be best if you could create a staging site.
    The staging site will allow us to troubleshoot freely without affecting the live site
    You use WP Staging plugin to create a staging site.

    Once I have more information, I will be in a better position to assist you further.

    Best regards.

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