Skip to content

Commit

Permalink
Merge pull request #45 from FosterCommerce/fix/requested-changes
Browse files Browse the repository at this point in the history
chore: code refactor
  • Loading branch information
nedu64 authored Oct 11, 2024
2 parents 519d962 + 89d464f commit 2859d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/checkout/shipping.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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 %}
Expand Down

0 comments on commit 2859d78

Please sign in to comment.