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).
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024