{# # Billing Form (Bootstrap 5 Override) # # Renders billing address fields within a Bootstrap card. # # Expected context: # checkout - WC_Checkout object with: # .get_checkout_fields('billing') - Array of billing field configs # # WooCommerce PHP equivalent: checkout/form-billing.php # # @package WcBootstrap # @since 0.1.0 #}

{{ __('Billing details') }}

{{ do_action('woocommerce_before_checkout_billing_form', checkout) }}
{% if billing_fields is defined %} {% for key, field in billing_fields %} {{ woocommerce_form_field(key, field, checkout.get_value(key)) }} {% endfor %} {% endif %}
{{ do_action('woocommerce_after_checkout_billing_form', checkout) }}
{# Account creation fields (for guest checkout) #} {% if checkout.is_registration_enabled() is defined and checkout.is_registration_enabled() and not is_user_logged_in() %} {% if checkout.is_registration_required() is not defined or not checkout.is_registration_required() %}
{% endif %} {{ do_action('woocommerce_before_checkout_registration_form', checkout) }}
{% if account_fields is defined %} {% for key, field in account_fields %} {{ woocommerce_form_field(key, field, checkout.get_value(key)) }} {% endfor %} {% endif %}
{{ do_action('woocommerce_after_checkout_registration_form', checkout) }} {% endif %}