From f98c31f6bcb531d6c69078c891473b7daf2a9367 Mon Sep 17 00:00:00 2001 From: Carson Shold Date: Tue, 31 Mar 2015 11:34:32 -0400 Subject: [PATCH 1/3] Fix broken edit/delete buttons on address template with pagination --- templates/customers/addresses.liquid | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/customers/addresses.liquid b/templates/customers/addresses.liquid index 695e011e5..e0a4d8e9f 100755 --- a/templates/customers/addresses.liquid +++ b/templates/customers/addresses.liquid @@ -8,6 +8,8 @@ {% endcomment %} +{% paginate customer.addresses by 5 %} +

{{ 'customer.account.title' | t }}

@@ -100,7 +102,7 @@ List all customer addresses with a unique edit form. Also add pagination in case they have a large number of addresses {% endcomment %} - {% paginate customer.addresses by 5 %} + {% for address in customer.addresses %}

@@ -193,8 +195,6 @@ {{ paginate | default_pagination | replace: '« Previous', '←' | replace: 'Next »', '→' }}

{% endif %} - - {% endpaginate %} @@ -232,4 +232,6 @@ } } } - + + +{% endpaginate %} From 4f2cdd134de122f4b48386dd48155e2a3f215fa1 Mon Sep 17 00:00:00 2001 From: Carson Shold Date: Tue, 31 Mar 2015 11:35:37 -0400 Subject: [PATCH 2/3] Tab size in address page --- templates/customers/addresses.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/customers/addresses.liquid b/templates/customers/addresses.liquid index e0a4d8e9f..2e5791eeb 100755 --- a/templates/customers/addresses.liquid +++ b/templates/customers/addresses.liquid @@ -232,6 +232,6 @@ } } } - + {% endpaginate %} From 71a722c0981179ab3065223adcdb7dedeb05fcc3 Mon Sep 17 00:00:00 2001 From: Carson Shold Date: Tue, 31 Mar 2015 11:37:01 -0400 Subject: [PATCH 3/3] More alignment in address template --- templates/customers/addresses.liquid | 153 +++++++++++++-------------- 1 file changed, 76 insertions(+), 77 deletions(-) diff --git a/templates/customers/addresses.liquid b/templates/customers/addresses.liquid index 2e5791eeb..6d64d51cb 100755 --- a/templates/customers/addresses.liquid +++ b/templates/customers/addresses.liquid @@ -102,99 +102,98 @@ List all customer addresses with a unique edit form. Also add pagination in case they have a large number of addresses {% endcomment %} + {% for address in customer.addresses %} + +

+ {{ address.first_name | capitalize }} {{ address.last_name | capitalize }} + {% if address == customer.default_address %}({{ 'customer.addresses.default' | t }}){% endif %} +

+ +

+ {{ address.company }}
+ {{ address.street }}
+ {{ address.city | capitalize }}
+ {% if address.province_code %} + {{ address.province_code | upcase }}
+ {% endif %} + {{ address.zip | upcase }}
+ {{ address.country }}
+ {{ address.phone }} +

+

+ {{ 'customer.addresses.edit' | t | edit_customer_address_link: address.id }} | + {{ 'customer.addresses.delete' | t | delete_customer_address_link: address.id }} +

+ +