Viewing 4 replies - 1 through 4 (of 4 total)
  • Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @bossangelshop!

    Thanks for linking us to the logs.

    I see the following error:

    Invalid argument supplied for foreach()

    This one occurs when PHP’s built-in foreach() tries to iterate over a data structure that is not recognized as an array or object. And by the looks of it, it is due to an old function present in your site, either from your theme or another plugin.

    As recommended, the WC_Cart::get_cart_url function needs to be replaced with wc_get_cart_url

    What version of WooCommerce core are you using? Can you please send us the status report found under “WooCommerce > Status” page?

    In the meantime, I would recommend you temporarily switch to another theme, like Storefront, and disable all your plugins except for WooCommerce core, to see if that resolves the issue.

    If it does, please re-enable your features until it breaks again, and then contact the author of the conflicting plugin.

    You can read more about the process of testing for conflicts here:

    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Please let us know how it goes.

    Cheers!

    Thread Starter bossangelshop

    (@bossangelshop)

    Hi, Rynald0s (@rynald0s)

    On my woo-commerce status it says for Woo commerce Checkout Page does not contain the short-code.
    I am currently on the 4.6.2 version of woocommerce

    Action Scheduler
    Version: 3.1.6

    How may I do this ?

    As recommended, the WC_Cart::get_cart_url function needs to be replaced with wc_get_cart_url

    Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @rynald0s!

    it says for Woo commerce Checkout Page does not contain the short-code.

    You need to make sure the checkout page contains the correct shortcode as per https://docs.woocommerce.com/document/woocommerce-pages/

    How may I do this ?

    As recommended, the WC_Cart::get_cart_url function needs to be replaced with wc_get_cart_url

    Does that error have a stack trace, to show where exactly it is coming from? If not, you would need to temporarily switch to another theme, like Storefront, and disable all your plugins except for WooCommerce core, to see if that resolves the issue.

    If it does, please re-enable your features until it breaks again, and then contact the author of the conflicting plugin.

    You can read more about the process of testing for conflicts here:

    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Please let us know how it goes.

    Cheers!

    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkout TroubleShooting Issue’ is closed to new replies.