Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 039ea23

Browse files
committed
Add other field to in-purchase address
1 parent ddc91ce commit 039ea23

File tree

4 files changed

+47
-5
lines changed

4 files changed

+47
-5
lines changed

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
"ShipToPostalCode": "Postal code",
164164
"ShipToOther": "Contact Information",
165165
"ShipToOtherPlaceholder": "Alternate method(s) the seller can use to contact you, like email",
166+
"ShipToOtherPlaceholderShort": "Alternate contact method",
166167
"ShipToCountry": "Country",
167168
"EnableNotifications": "Enable Notifications",
168169
"SSLOn": "SSL on",

js/templates/buyAddresses.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
<%= address.city %><% if(address.city && address.state || address.city && address.postal_code) print(",") %>
2828
<%= address.state %> <%= address.postal_code %>
2929
</div>
30+
<div>
31+
<%= address.other %>
32+
</div>
3033
<div>
3134
<%= address.displayCountry %>
3235
</div>
@@ -77,6 +80,9 @@
7780
<%= address.city %><% if(address.city && address.state || address.city && address.postal_code) print(",") %>
7881
<%= address.state %> <%= address.postal_code %>
7982
</div>
83+
<div>
84+
<%= address.other %>
85+
</div>
8086
<div>
8187
<%= address.displayCountry %>
8288
</div>

js/templates/buyWizard.html

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,11 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
418418
</div>
419419
</div>
420420
<div class="flexCol-7 custCol-border">
421-
<input type="text" name="new_ship_to_name" class="fieldItem custCol-text" id="buyWizardNameInput" required/>
421+
<input type="text"
422+
name="new_ship_to_name"
423+
class="fieldItem custCol-text"
424+
placeholder="<%= polyglot.t('ShipToName') %>"
425+
id="buyWizardNameInput" required/>
422426
</div>
423427
</div>
424428
<div class="flexRow">
@@ -428,7 +432,11 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
428432
</div>
429433
</div>
430434
<div class="flexCol-7 custCol-border">
431-
<input type="text" name="new_ship_to_street" class="fieldItem custCol-text" id="buyWizardStreetInput"/>
435+
<input type="text"
436+
name="new_ship_to_street"
437+
class="fieldItem custCol-text"
438+
placeholder="<%= polyglot.t('ShipToStreet') %>"
439+
id="buyWizardStreetInput"/>
432440
</div>
433441
</div>
434442
<div class="flexRow">
@@ -438,7 +446,11 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
438446
</div>
439447
</div>
440448
<div class="flexCol-7 custCol-border">
441-
<input type="text" name="new_ship_to_city" class="fieldItem custCol-text" id="buyWizardCityInput"/>
449+
<input type="text"
450+
name="new_ship_to_city"
451+
class="fieldItem custCol-text"
452+
placeholder="<%= polyglot.t('ShipToCity') %>"
453+
id="buyWizardCityInput"/>
442454
</div>
443455
</div>
444456
<div class="flexRow">
@@ -448,7 +460,11 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
448460
</div>
449461
</div>
450462
<div class="flexCol-7 custCol-border">
451-
<input type="text" name="new_ship_to_state" class="fieldItem custCol-text js-buyWizardStateInput" id="buyWizardStateInput"/>
463+
<input type="text"
464+
name="new_ship_to_state"
465+
class="fieldItem custCol-text js-buyWizardStateInput"
466+
placeholder="<%= polyglot.t('ShipToState') %>"
467+
id="buyWizardStateInput"/>
452468
</div>
453469
</div>
454470
<div class="flexRow">
@@ -458,7 +474,25 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
458474
</div>
459475
</div>
460476
<div class="flexCol-7 custCol-border">
461-
<input type="text" name="new_ship_to_street" class="fieldItem custCol-text js-buyWizardPostalInput" id="buyWizardPostalInput"/>
477+
<input type="text"
478+
name="new_ship_to_street"
479+
class="fieldItem custCol-text js-buyWizardPostalInput"
480+
placeholder="<%= polyglot.t('ShipToPostalCode') %>"
481+
id="buyWizardPostalInput"/>
482+
</div>
483+
</div>
484+
<div class="flexRow">
485+
<div class="flexCol-5 custCol-border">
486+
<div class="fieldItem">
487+
<label for="buyWizardOther"><%= polyglot.t('ShipToOther') %></label>
488+
</div>
489+
</div>
490+
<div class="flexCol-7 custCol-border">
491+
<input type="text"
492+
name="new_ship_to_other"
493+
class="fieldItem custCol-text js-buyWizardPostalInput"
494+
placeholder="<%= polyglot.t('ShipToOtherPlaceholderShort') %>"
495+
id="buyWizardOther"/>
462496
</div>
463497
</div>
464498
<div class="flexRow">

js/views/buyWizardVw.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ module.exports = baseModal.extend({
340340
newAddress.city = this.$el.find('#buyWizardCityInput').val();
341341
newAddress.state = this.$el.find('#buyWizardStateInput').val();
342342
newAddress.postal_code = this.$el.find('#buyWizardPostalInput').val();
343+
newAddress.other = this.$el.find('#buyWizardOther').val();
343344
newAddress.country = this.$el.find('#buyWizardCountryInput').val();
344345
newAddress.displayCountry = this.$el.find('#buyWizardCountryInput option:selected').data('name');
345346

0 commit comments

Comments
 (0)