@@ -22,24 +22,24 @@ use Magento\Framework\View\Helper\SecureHtmlRenderer;
22
22
$ viewModel = $ block ->getViewModel ();
23
23
$ regionProvider = $ block ->getRegionProvider ();
24
24
?>
25
- <?php $ _company = $ block ->getLayout ()->createBlock (Company::class) ?>
26
- <?php $ _telephone = $ block ->getLayout ()->createBlock (Telephone::class) ?>
27
- <?php $ _fax = $ block ->getLayout ()->createBlock (Fax::class) ?>
28
- <?php $ _country_id = $ block ->getAttributeData ()->getFrontendLabel ('country_id ' ); ?>
29
- <?php $ _street = $ block ->getAttributeData ()->getFrontendLabel ('street ' ); ?>
30
- <?php $ _city = $ block ->getLayout ()->createBlock (City::class); ?>
31
- <?php $ _region = $ block ->getAttributeData ()->getFrontendLabel ('region ' ); ?>
32
- <?php $ _selectRegion = 'Please select a region, state or province. ' ; ?>
33
- <?php $ _displayAll = $ block ->getConfig ('general/region/display_all ' ); ?>
25
+ <?php $ company = $ block ->getLayout ()->createBlock (Company::class) ?>
26
+ <?php $ telephone = $ block ->getLayout ()->createBlock (Telephone::class) ?>
27
+ <?php $ fax = $ block ->getLayout ()->createBlock (Fax::class) ?>
28
+ <?php $ country_id = $ block ->getAttributeData ()->getFrontendLabel ('country_id ' ); ?>
29
+ <?php $ street = $ block ->getAttributeData ()->getFrontendLabel ('street ' ); ?>
30
+ <?php $ city = $ block ->getLayout ()->createBlock (City::class); ?>
31
+ <?php $ region = $ block ->getAttributeData ()->getFrontendLabel ('region ' ); ?>
32
+ <?php $ selectRegion = 'Please select a region, state or province. ' ; ?>
33
+ <?php $ displayAll = $ block ->getConfig ('general/region/display_all ' ); ?>
34
34
35
- <?php $ _vatidValidationClass = $ viewModel ->addressGetAttributeValidationClass ('vat_id ' ); ?>
36
- <?php $ _cityValidationClass = $ viewModel ->addressGetAttributeValidationClass ('city ' ); ?>
37
- <?php $ _postcodeValidationClass_value = $ viewModel ->addressGetAttributeValidationClass ('postcode ' ); ?>
38
- <?php $ _postcodeValidationClass = $ _postcodeValidationClass_value ; ?>
39
- <?php $ _streetValidationClass = $ viewModel ->addressGetAttributeValidationClass ('street ' ); ?>
40
- <?php $ _streetValidationClassNotRequired = $ _streetValidationClass !== null ?
41
- trim (str_replace ('required-entry ' , '' , $ _streetValidationClass )) : '' ; ?>
42
- <?php $ _regionValidationClass = $ viewModel ->addressGetAttributeValidationClass ('region ' ); ?>
35
+ <?php $ vatIdValidationClass = $ viewModel ->addressGetAttributeValidationClass ('vat_id ' ); ?>
36
+ <?php $ cityValidationClass = $ viewModel ->addressGetAttributeValidationClass ('city ' ); ?>
37
+ <?php $ postcodeValidationClass_value = $ viewModel ->addressGetAttributeValidationClass ('postcode ' ); ?>
38
+ <?php $ postcodeValidationClass = $ postcodeValidationClass_value ; ?>
39
+ <?php $ streetValidationClass = $ viewModel ->addressGetAttributeValidationClass ('street ' ); ?>
40
+ <?php $ streetValidationClassNotRequired = $ streetValidationClass !== null ?
41
+ trim (str_replace ('required-entry ' , '' , $ streetValidationClass )) : '' ; ?>
42
+ <?php $ regionValidationClass = $ viewModel ->addressGetAttributeValidationClass ('region ' ); ?>
43
43
<form class="form-address-edit"
44
44
action="<?= $ escaper ->escapeUrl ($ block ->getSaveUrl ()) ?> "
45
45
method="post"
@@ -53,23 +53,23 @@ $regionProvider = $block->getRegionProvider();
53
53
<input type="hidden" name="error_url" value="<?= $ escaper ->escapeUrl ($ block ->getErrorUrl ()) ?> ">
54
54
<?= $ block ->getNameBlockHtml () ?>
55
55
56
- <?php if ($ _company ->isEnabled ()): ?>
57
- <?= $ _company ->setCompany ($ block ->getAddress ()->getCompany ())->toHtml () ?>
56
+ <?php if ($ company ->isEnabled ()): ?>
57
+ <?= $ company ->setCompany ($ block ->getAddress ()->getCompany ())->toHtml () ?>
58
58
<?php endif ?>
59
59
60
- <?php if ($ _telephone ->isEnabled ()): ?>
61
- <?= $ _telephone ->setTelephone ($ block ->getAddress ()->getTelephone ())->toHtml () ?>
60
+ <?php if ($ telephone ->isEnabled ()): ?>
61
+ <?= $ telephone ->setTelephone ($ block ->getAddress ()->getTelephone ())->toHtml () ?>
62
62
<?php endif ?>
63
63
64
- <?php if ($ _fax ->isEnabled ()): ?>
65
- <?= $ _fax ->setFax ($ block ->getAddress ()->getFax ())->toHtml () ?>
64
+ <?php if ($ fax ->isEnabled ()): ?>
65
+ <?= $ fax ->setFax ($ block ->getAddress ()->getFax ())->toHtml () ?>
66
66
<?php endif ?>
67
67
68
68
</fieldset>
69
69
<fieldset class="fieldset">
70
70
<legend class="legend"><span><?= $ escaper ->escapeHtml (__ ('Address ' )) ?> </span></legend><br>
71
71
<div class="field street required">
72
- <label for="street_1" class="label"><span><?= /* @noEscape */ $ _street ?> </span></label>
72
+ <label for="street_1" class="label"><span><?= /* @noEscape */ $ street ?> </span></label>
73
73
<div class="control">
74
74
<div class="field primary">
75
75
<label for="street_1" class="label">
@@ -81,9 +81,9 @@ $regionProvider = $block->getRegionProvider();
81
81
<input type="text"
82
82
name="street[0]"
83
83
value="<?= $ escaper ->escapeHtmlAttr ($ block ->getStreetLine (1 )) ?> "
84
- title="<?= /* @noEscape */ $ _street ?> "
84
+ title="<?= /* @noEscape */ $ street ?> "
85
85
id="street_1"
86
- class="input-text <?= $ escaper ->escapeHtmlAttr ($ _streetValidationClass ) ?> "/>
86
+ class="input-text <?= $ escaper ->escapeHtmlAttr ($ streetValidationClass ) ?> "/>
87
87
<div class="nested">
88
88
<?php for ($ _i = 1 , $ _n = $ viewModel ->addressGetStreetLines (); $ _i < $ _n ; $ _i ++): ?>
89
89
<div class="field additional">
@@ -96,7 +96,7 @@ $regionProvider = $block->getRegionProvider();
96
96
title="<?= $ escaper ->escapeHtmlAttr (__ ('Street Address %1 ' , $ _i + 1 )) ?> "
97
97
id="street_<?= /* @noEscape */ $ _i + 1 ?> "
98
98
class="input-text
99
- <?= $ escaper ->escapeHtmlAttr ($ _streetValidationClassNotRequired ) ?> ">
99
+ <?= $ escaper ->escapeHtmlAttr ($ streetValidationClassNotRequired ) ?> ">
100
100
</div>
101
101
</div>
102
102
<?php endfor ; ?>
@@ -114,7 +114,7 @@ $regionProvider = $block->getRegionProvider();
114
114
name="vat_id"
115
115
value="<?= $ escaper ->escapeHtmlAttr ($ block ->getAddress ()->getVatId ()) ?> "
116
116
title="<?= /* @noEscape */ $ block ->getAttributeData ()->getFrontendLabel ('vat_id ' ) ?> "
117
- class="input-text <?= $ escaper ->escapeHtmlAttr ($ _vatidValidationClass ) ?> "
117
+ class="input-text <?= $ escaper ->escapeHtmlAttr ($ vatIdValidationClass ) ?> "
118
118
id="vat_id">
119
119
</div>
120
120
</div>
@@ -129,28 +129,28 @@ $regionProvider = $block->getRegionProvider();
129
129
</div>
130
130
<div class="field region required">
131
131
<label class="label" for="region_id">
132
- <span><?= /* @noEscape */ $ _region ?> </span>
132
+ <span><?= /* @noEscape */ $ region ?> </span>
133
133
</label>
134
134
<div class="control">
135
135
<select id="region_id" name="region_id"
136
- title="<?= /* @noEscape */ $ _region ?> "
136
+ title="<?= /* @noEscape */ $ region ?> "
137
137
class="validate-select region_id"
138
- <?= /* @noEscape */ !$ _displayAll ? ' disabled="disabled" ' : '' ?> >
139
- <option value=""><?= $ escaper ->escapeHtml (__ ($ _selectRegion )) ?> </option>
138
+ <?= /* @noEscape */ !$ displayAll ? ' disabled="disabled" ' : '' ?> >
139
+ <option value=""><?= $ escaper ->escapeHtml (__ ($ selectRegion )) ?> </option>
140
140
</select>
141
141
<input type="text"
142
142
id="region"
143
143
name="region"
144
144
value="<?= $ escaper ->escapeHtmlAttr ($ block ->getRegion ()) ?> "
145
- title="<?= /* @noEscape */ $ _region ?> "
145
+ title="<?= /* @noEscape */ $ region ?> "
146
146
class="input-text validate-not-number-first
147
- <?= $ escaper ->escapeHtmlAttr ($ _regionValidationClass ) ?> "
148
- <?= !$ _displayAll ? ' disabled="disabled" ' : '' ?> />
147
+ <?= $ escaper ->escapeHtmlAttr ($ regionValidationClass ) ?> "
148
+ <?= !$ displayAll ? ' disabled="disabled" ' : '' ?> />
149
149
</div>
150
150
</div>
151
151
152
- <?php if ($ _city ->isEnabled ()): ?>
153
- <?= $ _city ->setCity ($ block ->getAddress ()->getCity ())->toHtml () ?>
152
+ <?php if ($ city ->isEnabled ()): ?>
153
+ <?= $ city ->setCity ($ block ->getAddress ()->getCity ())->toHtml () ?>
154
154
<?php endif ?>
155
155
156
156
<div class="field zip required">
@@ -164,7 +164,7 @@ $regionProvider = $block->getRegionProvider();
164
164
title="<?= /* @noEscape */ $ block ->getAttributeData ()->getFrontendLabel ('postcode ' ) ?> "
165
165
id="zip"
166
166
class="input-text validate-zip-international
167
- <?= $ escaper ->escapeHtmlAttr ($ _postcodeValidationClass ) ?> ">
167
+ <?= $ escaper ->escapeHtmlAttr ($ postcodeValidationClass ) ?> ">
168
168
<div role="alert" class="message warning">
169
169
<span></span>
170
170
</div>
@@ -228,7 +228,7 @@ $regionProvider = $block->getRegionProvider();
228
228
},
229
229
"#country": {
230
230
"directoryRegionUpdater": {
231
- "optionalRegionAllowed": <?= /* @noEscape */ $ _displayAll ? 'true ' : 'false ' ?> ,
231
+ "optionalRegionAllowed": <?= /* @noEscape */ $ displayAll ? 'true ' : 'false ' ?> ,
232
232
"regionListId": "#region_id",
233
233
"regionInputId": "#region",
234
234
"postcodeId": "#zip",
0 commit comments