diff --git a/src/templates/checkout/shipping.twig b/src/templates/checkout/shipping.twig index d35aa01..4b0974a 100644 --- a/src/templates/checkout/shipping.twig +++ b/src/templates/checkout/shipping.twig @@ -13,7 +13,7 @@ {% if cart is defined %} {% if currentStore.requireShippingMethodSelectionAtCheckout == false %} {# If there's 1 or more shipping method available then set it on the cart #} - {% if cart.availableShippingMethodOptions|length == 1 or cart.availableShippingMethodOptions|length > 1 %} + {% if cart.availableShippingMethodOptions|length >= 1 %} {% for handle, option in cart.availableShippingMethodOptions %} {% set onlyMethod = handle %} {% endfor %} @@ -23,7 +23,7 @@ {% endif %} {% else %} {# If there's 1 or more shipping method available then set it on the cart #} - {% if cart.availableShippingMethodOptions|length == 1 or cart.availableShippingMethodOptions|length > 1 %} + {% if cart.availableShippingMethodOptions|length >= 1 %} {% for handle, option in cart.availableShippingMethodOptions %} {% set onlyMethod = handle %} {% endfor %}