{# # Cart Shipping Methods (Bootstrap 5 Override) # # Renders available shipping methods as Bootstrap form-check radios. # # Expected context: # available_methods - Array of shipping method objects # chosen_method - Currently chosen method ID # formatted_destination - Formatted shipping address # has_calculated_shipping - Whether shipping has been calculated # show_shipping_calculator - Whether to show the calculator # package_name - Package name/label # index - Package index # # WooCommerce PHP equivalent: cart/cart-shipping.php # # @package WcBootstrap # @since 0.1.0 #}
{{ package_name|default(__('Shipping'))|esc_html }} {% if available_methods is defined and available_methods|length > 0 %} {% if formatted_destination is defined and formatted_destination %}

{{ formatted_destination|raw }}

{% endif %} {% elseif not has_calculated_shipping|default(false) %}

{{ __('Shipping costs are calculated during checkout.') }}

{% else %}

{{ __('No shipping options were found.') }}

{% endif %} {% if show_shipping_calculator|default(false) %} {% include 'cart/shipping-calculator.html.twig' %} {% endif %}