is_registration_enabled() && $checkout->is_registration_required() && !NASA_CORE_USER_LOGGED) : echo '
'; echo apply_filters('woocommerce_checkout_must_be_logged_in_message', esc_html__('You must be logged in to checkout.', 'elessi-theme')); /** * Hook Login form */ do_action('woocommerce_before_checkout_form', $checkout); echo '
'; return; endif; // $need_shipping = 'no' === get_option('woocommerce_enable_shipping_calc') || !WC()->cart->needs_shipping() ? false : true; $need_shipping = true === WC()->cart->needs_shipping() ? true : false; ?>
get_checkout_fields(); if ($fields) : do_action('woocommerce_checkout_before_customer_details'); $billing_fields = isset($fields['billing']) ? $fields['billing'] : null; $email_fields = isset($billing_fields['billing_email']) ? $billing_fields['billing_email'] : null; if ($email_fields || (!NASA_CORE_USER_LOGGED && $checkout->is_registration_enabled())) : ?>

cart->needs_shipping_address() && 'shipping' === get_option('woocommerce_ship_to_destination')) : ?>