Hi everyone,
I have a weird issue with my shopify, the buttons in the customer page to add, edit or delete the address aren’t working.
I’ve already checked other topic of people having the same issue like this and this one but aren’t working for me because I don’t have anything after the closing of html tag.
Here my shop, password is powngu.
Thanks everyone!
I solved the issue making my own functionality in my js file like this:
/* Manage addresses buttons click */
if ($(“.customer.addresses”)) {
$(“.customer.addresses button”).on(‘click’, function() {
$(this).attr(‘aria-expanded’, $(this).attr(‘aria-expanded’) === ‘true’ ? false : true);
});
}
And changing the code in the addresses.liquid file after read this topic, seems that the issue was coming from the option “—”.
In the add new address form:
<select
id=“AddressCountryNew”
name=“address[country]”
data-default=“{{ form.country }}”
autocomplete=“country”
{{ all_country_option_tags }}
And in the edit address form:
<select
id=“AddressCountry_{{ form.id }}”
name=“address[country]”
data-address-country-select
data-default=“{{ form.country }}”
data-form-id=“{{ form.id }}”
autocomplete=“country”
{% if form.country %}
{{ form.country }}
{% else %}
{% endif %}
{{ all_country_option_tags }}
Hope this helps 