Skip to content

Commit

Permalink
PAYMENTS-5111 Proper address formatting without any additional commas…
Browse files Browse the repository at this point in the history
… in My Account Payment Methods
  • Loading branch information
Tharaae committed Jan 30, 2020
1 parent e46978a commit 8a9890f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Draft
- Add translation key for "read more" blog post link [#1625](https://github.com/bigcommerce/cornerstone/pull/1625)
- Update My Account Payment Methods template to expose all new savable payment methods [1603](https://github.com/bigcommerce/cornerstone/pull/1603)

- Proper address formatting without any additional commas in My Account Payment Methods [1626](https://github.com/bigcommerce/cornerstone/pull/1626)

## 4.3.1 (2020-01-17)
- Resolve visual regression in error modal icon animation [#1619](https://github.com/bigcommerce/cornerstone/pull/1619)
Expand Down
8 changes: 7 additions & 1 deletion templates/components/account/payment-methods-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ <h4 class="paymentMethodsTitle">
{{!-- If there is an address STARTS --}}
<p class="methodDetails">
<span class="methodDetails-label">{{lang 'account.payment_methods.billing_address'}}:</span>
<span class="methodDetails-description">{{billing_address.address1}}, {{billing_address.address2}}, {{billing_address.city}}, {{billing_address.state}}, {{billing_address.zip}}, {{billing_address.country}}</span>
<span class="methodDetails-description">
<span>{{billing_address.address1}}, </span>
{{#if billing_address.address2}}
<span>{{billing_address.address2}}, </span>
{{/if}}
<span>{{billing_address.city}}, {{billing_address.state}}, {{billing_address.zip}}, {{billing_address.country}}</span>
</span>
</p>
{{!-- If there is an address ENDS --}}

Expand Down

0 comments on commit 8a9890f

Please sign in to comment.