Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
{% paginate customer.addresses by 4 %} {% for address in customer.addresses %} ** Code ** {% endfor %} {% endpaginate %}
Hi @coding_beginner
You can use the code below to show the default address first
{% for address in customer.addresses %}
{% if address == customer.default_address %}
{{ address | format_address }}
{% else %}
{{ address | format_address }}
{% endif %}
{% endfor %}
Hello!
Thank you for you reply!
Unfortunately, applying the code displays the same results.
I currently have JANE465 DOE set as the default address, but it's second in the address list (Image included).
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024