Hi everyone,
I would like to display customer shipping address country in our store’s header to update or add a new one, once logged in the store.
Thank you very much.
Hi everyone,
I would like to display customer shipping address country in our store’s header to update or add a new one, once logged in the store.
Thank you very much.
@Alliance , hey, thanks for posting here.
{% if customer %}
{% assign shipping_address = customer.address %}
{% if shipping_address %}
Shipping to: {{ shipping_address.country }}
{% else %}
No shipping address found. Add one
{% endif %}
{% endif %}
Please use it in the header section. Let me know if any further info is needed.
Don’t forget to mark it as solved if your issue is solved. thanks.
Hi,
Thank you so much for the effort.
The goal is to allow customers to easily view or update their current address from any page without redirecting them to their account. Instead of a link that takes them to their account settings, we need a pop-up dialog form triggered by a button (e.g., a ‘Change Address’ button) for quick and seamless editing.
@Alliance , if the customer is logged in, then if they need to change or update their address, they must need to visit /account/addresses
Note, on checkout it changes the address for the order, not changed for account.
True, I meant the delivery address only as we do local delivery.