Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #519 from rubenbristian/paginated-addresses-js-bug
Browse files Browse the repository at this point in the history
Paginated addresses js bug
  • Loading branch information
cshold committed Mar 2, 2016
2 parents 1a5a718 + f5d0e0b commit cb1415a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/customers/addresses.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,13 @@
});
// Setup province selector on each customer address
{% for address in customer.addresses %}
new Shopify.CountryProvinceSelector('AddressCountry_{{ address.id }}', 'AddressProvince_{{ address.id }}', {
hideElement: 'AddressProvinceContainer_{{ address.id }}'}
);
{% endfor %}
{% 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 %}
// Modified contents of customer_area.js (global asset)
Shopify.CustomerAddress = {
Expand Down

0 comments on commit cb1415a

Please sign in to comment.