• Resolved wnsy

    (@wnsy)


    I am getting an error when I go to the checkout page from cart:

    Warning: Undefined variable $checkout in …(path)…\form-checkout.php

    Why does this error appear? Where is variable definition location?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User

    (@anonymized-20801613)

    Here – https://wordpress.org/support/topic/php-notice-undefined-index-wc-checkout-on-woocommerce-settings-page/, they suggest you

    1. Temporarily switch your theme back to the Storefront (https://www.woocommerce.com/storefront/) or TwentyNineteen (https://wordpress.org/themes/twentynineteen/) Theme.
    2. Disable all plugins except for WooCommerce.
    3. Test to see if the issue has been resolved.
    
    If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.
    Thread Starter wnsy

    (@wnsy)

    Thanks for your reply!
    However, this advice is not suitable for my task, because I am learning to develop my own theme and it doesn’t have plugins installed.
    Does anyone know what could be the problem? I haven’t customized the checkout page yet and pasted default woocommerce-code to form-checkout.php.

    Hi @wnsy

    I understand that you’re having a layout issue on the checkout page. It could be the custom theme is creating issue.
     
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Repeat the action that is causing the problem

    For reference, this forum is for questions directly related to the default features and functionality of the free WooCommerce plugin. However, it does not offer support for questions related to extensions or themes that can work with WooCommerce.

    You can find a more detailed explanation on how to do a conflict test here.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘$checkout is undefined’ is closed to new replies.