You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2018. It is now read-only.
There's a big js error in the addresses.liquid file when address pagination kicks in. I've reported it to Shopify last year, but it seems that it's still here..
When you are on page 2 of addresses it is impossible to edit or add new addresses, because there's a js error caused by the fact that the handlers aren't setup with pagination in mind.
The solution is simple, you just need to add pagination in the js part, when calling the Shopify js functions.
{% paginate customer.addresses by 5 %}
{% for address in customer.addresses %}
new Shopify.CountryProvinceSelector('AddressCountry_{{ address.id }}', 'AddressProvince_{{ address.id }}', {
hideElement: 'AddressProvinceContainer_{{ address.id }}'}
);
{% endfor %}
{% endpaginate %}