WooCommerce checkout process fails – “Notice: Undefined variable: checkout”


Building custom theme with WooCommerce support. On the checkout page, I’m getting an error that the checkout variable is undefined. Looking into where this is used, I find that form-checkout.php in the WooCommerce plugin has:

do_action( 'woocommerce_before_checkout_form', $checkout );

Great. I need $checkout, but not sure how to make sure the right info is passed.

Note – while this is a custom theme, the WooCommerce functionality should all be intact. Everything seems to work just fine up until this point, so I’m not sure if there’s a problem in getting the info from my cart to the checkout page?

Ben Davidson 6 years 2017-11-19T16:59:24-05:00 0 Answers 0 views 0

Leave an answer