|
8 | 8 |
|
9 | 9 | /** @var \Magento\Customer\Block\Address\Edit $block */
|
10 | 10 | ?>
|
11 |
| -<?php $_company = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Company') ?> |
12 |
| -<?php $_telephone = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Telephone') ?> |
13 |
| -<?php $_fax = $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Fax') ?> |
| 11 | +<?php $_company = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Company::class) ?> |
| 12 | +<?php $_telephone = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Telephone::class) ?> |
| 13 | +<?php $_fax = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Fax::class) ?> |
14 | 14 | <form class="form-address-edit"
|
15 | 15 | action="<?= $block->escapeUrl($block->getSaveUrl()) ?>"
|
16 | 16 | method="post"
|
|
39 | 39 | </fieldset>
|
40 | 40 | <fieldset class="fieldset">
|
41 | 41 | <legend class="legend"><span><?= $block->escapeHtml(__('Address')) ?></span></legend><br>
|
42 |
| - <?php $_streetValidationClass = $this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('street'); ?> |
| 42 | + <?php $_streetValidationClass = $this->helper(\Magento\Customer\Helper\Address::class)->getAttributeValidationClass('street'); ?> |
43 | 43 | <div class="field street required">
|
44 | 44 | <label for="street_1" class="label">
|
45 | 45 | <span><?= $block->escapeHtml(__('Street Address')) ?></span>
|
|
53 | 53 | class="input-text <?= $block->escapeHtmlAttr($_streetValidationClass) ?>"/>
|
54 | 54 | <div class="nested">
|
55 | 55 | <?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
56 |
| - <?php for ($_i = 1, $_n = $this->helper('Magento\Customer\Helper\Address')->getStreetLines(); $_i < $_n; $_i++): ?> |
| 56 | + <?php for ($_i = 1, $_n = $this->helper(\Magento\Customer\Helper\Address::class)->getStreetLines(); $_i < $_n; $_i++): ?> |
57 | 57 | <div class="field additional">
|
58 | 58 | <label class="label" for="street_<?= /* @noEscape */ $_i + 1 ?>">
|
59 | 59 | <span><?= $block->escapeHtml(__('Street Address %1', $_i + 1)) ?></span>
|
|
71 | 71 | </div>
|
72 | 72 | </div>
|
73 | 73 |
|
74 |
| - <?php if ($this->helper('Magento\Customer\Helper\Address')->isVatAttributeVisible()) : ?> |
| 74 | + <?php if ($this->helper(\Magento\Customer\Helper\Address::class)->isVatAttributeVisible()) : ?> |
75 | 75 | <div class="field taxvat">
|
76 | 76 | <label class="label" for="vat_id">
|
77 | 77 | <span><?= $block->escapeHtml(__('VAT Number')) ?></span>
|
|
81 | 81 | name="vat_id"
|
82 | 82 | value="<?= $block->escapeHtmlAttr($block->getAddress()->getVatId()) ?>"
|
83 | 83 | title="<?= $block->escapeHtmlAttr(__('VAT Number')) ?>"
|
84 |
| - class="input-text <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('vat_id')) ?>" |
| 84 | + class="input-text <?= $block->escapeHtmlAttr($this->helper(\Magento\Customer\Helper\Address::class)->getAttributeValidationClass('vat_id')) ?>" |
85 | 85 | id="vat_id">
|
86 | 86 | </div>
|
87 | 87 | </div>
|
|
93 | 93 | name="city"
|
94 | 94 | value="<?= $block->escapeHtmlAttr($block->getAddress()->getCity()) ?>"
|
95 | 95 | title="<?= $block->escapeHtmlAttr(__('City')) ?>"
|
96 |
| - class="input-text <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('city')) ?>" |
| 96 | + class="input-text <?= $block->escapeHtmlAttr($this->helper(\Magento\Customer\Helper\Address::class)->getAttributeValidationClass('city')) ?>" |
97 | 97 | id="city">
|
98 | 98 | </div>
|
99 | 99 | </div>
|
|
112 | 112 | name="region"
|
113 | 113 | value="<?= $block->escapeHtmlAttr($block->getRegion()) ?>"
|
114 | 114 | title="<?= $block->escapeHtmlAttr(__('State/Province')) ?>"
|
115 |
| - class="input-text validate-not-number-first <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('region')) ?>"<?= !$block->getConfig('general/region/display_all') ? ' disabled="disabled"' : '' ?>/> |
| 115 | + class="input-text validate-not-number-first <?= $block->escapeHtmlAttr($this->helper(\Magento\Customer\Helper\Address::class)->getAttributeValidationClass('region')) ?>"<?= !$block->getConfig('general/region/display_all') ? ' disabled="disabled"' : '' ?>/> |
116 | 116 | </div>
|
117 | 117 | </div>
|
118 | 118 | <div class="field zip required">
|
|
125 | 125 | value="<?= $block->escapeHtmlAttr($block->getAddress()->getPostcode()) ?>"
|
126 | 126 | title="<?= $block->escapeHtmlAttr(__('Zip/Postal Code')) ?>"
|
127 | 127 | id="zip"
|
128 |
| - class="input-text validate-zip-international <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('postcode')) ?>"> |
| 128 | + class="input-text validate-zip-international <?= $block->escapeHtmlAttr($this->helper(\Magento\Customer\Helper\Address::class)->getAttributeValidationClass('postcode')) ?>"> |
129 | 129 | </div>
|
130 | 130 | </div>
|
131 | 131 | <div class="field country required">
|
|
0 commit comments