{% extends 'shop/_layouts/checkout' %} {% block content %}

How should your order be shipped?

{#

Shipping To

{% if cart.shippingAddress %} {% include 'shop/_includes/addresses/address' with {'address': cart.shippingAddress} %} {% else %}

No shipping address selected.

{% endif %} {% if currentUser %}Edit{% endif %}
#} {# Choosing a shipping method. Now that we know the cart's address, we need to show all available shipping methods. Only those that match at least one rule contained in the shipping method are compatible with the order. `cart.shippingMethods` only returns methods available to the order. If you require shipping and no methods are avaialable, create a catch all rule in a method that matches all addresses. #} {% if cart.availableShippingMethods|length < 2 and cart.shippingMethod %} {% redirect 'shop/checkout/payment' %} {% endif %} {% if not cart.availableShippingMethods|length %}

No shipping methods available.

Continue to payment

{% endif %} {% if cart.availableShippingMethods|length %}
{{ redirectInput('shop/checkout/payment') }} {{ csrfInput() }} {% for handle, method in cart.availableShippingMethods %}
{% endfor %} {{ cart.getErrors('shippingMethod')|join }}

{% endif %}
{% include "shop/_includes/order-review" with { showShippingAddress: true } %}
{% endblock %}