Title: $checkout is undefined
Last modified: December 11, 2022

---

# $checkout is undefined

 *  Resolved [wnsy](https://wordpress.org/support/users/wnsy/)
 * (@wnsy)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/checkout-is-undefined/)
 * 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)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/checkout-is-undefined/#post-16278743)
 * Here – [https://wordpress.org/support/topic/php-notice-undefined-index-wc-checkout-on-woocommerce-settings-page/](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](https://wordpress.org/support/users/wnsy/)
 * (@wnsy)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/checkout-is-undefined/#post-16279424)
 * 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.**
 *  [Amir A. (woo-hc)](https://wordpress.org/support/users/amiralifarooq/)
 * (@amiralifarooq)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/checkout-is-undefined/#post-16286454)
 * Hi [@wnsy](https://wordpress.org/support/users/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](https://www.woocommerce.com/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.](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)

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

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

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [checkout](https://wordpress.org/support/topic-tag/checkout/)
 * [development](https://wordpress.org/support/topic-tag/development/)

 * 3 replies
 * 3 participants
 * Last reply from: [Amir A. (woo-hc)](https://wordpress.org/support/users/amiralifarooq/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/checkout-is-undefined/#post-16286454)
 * Status: resolved