process_checkout(); $result = woocommerce_cart::check_cart_item_stock(); if (is_wp_error($result)) woocommerce::add_error( $result->get_error_message() ); if ( woocommerce::error_count()==0 && $non_js_checkout) woocommerce::add_message( __('The order totals have been updated. Please confirm your order by pressing the Place Order button at the bottom of the page.', 'woothemes') ); woocommerce::show_messages(); woocommerce_get_template('checkout/form.php', false); }