-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout_fields.html
More file actions
81 lines (66 loc) · 2.96 KB
/
checkout_fields.html
File metadata and controls
81 lines (66 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{% if checkout.requiredFields|length > 0 %}
<div class="row mt-5">
<div class="col-12">
<h4 class="mb-3">Billing details</h4>
<div class="details">
{% if "req_full_name" in checkout.requiredFields %}
<div class="row">
<div class="name form-group col-12">
<label>{{ __("Full name:") }}</label>
<input type="input" class="form-control" name="address_name" />
</div>
</div>
{% endif %}
{% if "req_email" in checkout.requiredFields %}
<div class="row">
<div class="email form-group col-12">
<label>{{ __("Email address:") }}</label>
<input type="input" class="form-control" name="email" />
</div>
</div>
{% endif %}
</div>
{% if "req_address" in checkout.requiredFields or "req_country_and_state" in checkout.requiredFields %}
{% if "req_address" in checkout.requiredFields %}
<div class="row">
<div class="address1 form-group col-12 col-md-6">
<label>{{ __("Address Line 1:") }}</label>
<input type="input" class="form-control" name="address_line_1" />
</div>
<div class="address2 form-group col-12 col-md-6">
<label>{{ __("Address Line 2:") }}</label>
<input type="input" class="form-control" name="address_line_2" />
</div>
</div>
<div class="row">
<div class="city form-group col-12 col-md-6">
<label>{{ __("City:") }}</label>
<input type="input" class="form-control" name="address_city" />
</div>
<div class="zip form-group col-12 col-md-6">
<label>{{ __("Zip Code:") }}</label>
<input type="input" class="form-control" name="address_zip" />
</div>
</div>
{% endif %}
{% if "req_address" in checkout.requiredFields or "req_country_and_state" in checkout.requiredFields %}
<div class="row">
<div class="country form-group col-12 col-md-6">
<label>{{ __("Country:") }}</label>
<select class="form-control" name="address_country">
<option value="">{{ __("Select a country") }}</option>
{% for country in checkout.countries %}
<option value="{{ country.id }}">{{ country.name }}</option>
{% endfor %}
</select>
</div>
<div class="state form-group col-12 col-md-6">
<label>{{ __("State/Region:") }}</label>
<input type="input" class="form-control" name="address_state" />
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}