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') ?>
14 <
form class=
"form-address-edit" 15 action=
"<?= $block->escapeUrl($block->getSaveUrl()) ?>" 18 enctype=
"multipart/form-data" 19 data-hasrequired=
"<?= $block->escapeHtmlAttr(__('* Required Fields')) ?>">
20 <fieldset
class=
"fieldset">
21 <legend
class=
"legend"><span><?=
$block->escapeHtml(
__(
'Contact Information')) ?></span></legend><br>
22 <?=
$block->getBlockHtml(
'formkey') ?>
23 <input type=
"hidden" name=
"success_url" value=
"<?= $block->escapeUrl($block->getSuccessUrl()) ?>">
24 <input type=
"hidden" name=
"error_url" value=
"<?= $block->escapeUrl($block->getErrorUrl()) ?>">
25 <?=
$block->getNameBlockHtml() ?>
27 <?php
if ($_company->isEnabled()): ?>
28 <?= $_company->setCompany(
$block->getAddress()->getCompany())->toHtml() ?>
31 <?php
if ($_telephone->isEnabled()): ?>
32 <?= $_telephone->setTelephone(
$block->getAddress()->getTelephone())->toHtml() ?>
35 <?php
if ($_fax->isEnabled()): ?>
36 <?= $_fax->setFax(
$block->getAddress()->getFax())->toHtml() ?>
40 <fieldset
class=
"fieldset">
41 <legend
class=
"legend"><span><?=
$block->escapeHtml(
__(
'Address')) ?></span></legend><br>
42 <?php
$_streetValidationClass = $this->helper(
'Magento\Customer\Helper\Address')->getAttributeValidationClass(
'street'); ?>
43 <div
class=
"field street required">
44 <label
for=
"street_1" class=
"label">
45 <span><?=
$block->getAttributeData()->getFrontendLabel(
'street') ?></span>
50 value=
"<?= $block->escapeHtmlAttr($block->getStreetLine(1)) ?>" 51 title=
"<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('street') ?>" 53 class=
"input-text <?= $block->escapeHtmlAttr($_streetValidationClass) ?>"/>
56 <?php
for (
$_i = 1, $_n = $this->helper(
'Magento\Customer\Helper\Address')->getStreetLines(); $_i < $_n; $_i++): ?>
57 <div
class=
"field additional">
58 <label
class=
"label" for=
"street_<?= /* @noEscape */ $_i + 1 ?>">
59 <span><?=
$block->escapeHtml(
__(
'Street Address %1',
$_i + 1)) ?></span>
62 <input type=
"text" name=
"street[]" 63 value=
"<?= $block->escapeHtmlAttr($block->getStreetLine($_i + 1)) ?>" 64 title=
"<?= $block->escapeHtmlAttr(__('Street Address %1', $_i + 1)) ?>" 65 id=
"street_<?= /* @noEscape */ $_i + 1 ?>" 66 class=
"input-text <?= $block->escapeHtmlAttr($_streetValidationClass) ?>">
74 <?php
if ($this->helper(
'Magento\Customer\Helper\Address')->isVatAttributeVisible()) : ?>
75 <div
class=
"field taxvat">
76 <label
class=
"label" for=
"vat_id">
77 <span><?=
$block->getAttributeData()->getFrontendLabel(
'vat_id') ?></span>
82 value=
"<?= $block->escapeHtmlAttr($block->getAddress()->getVatId()) ?>" 83 title=
"<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('vat_id') ?>" 84 class=
"input-text <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('vat_id')) ?>" 89 <div
class=
"field city required">
90 <label
class=
"label" for=
"city"><span><?=
$block->getAttributeData()->getFrontendLabel(
'city') ?></span></label>
94 value=
"<?= $block->escapeHtmlAttr($block->getAddress()->getCity()) ?>" 95 title=
"<?= $block->escapeHtmlAttr(__('City')) ?>" 96 class=
"input-text <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('city')) ?>" 100 <div
class=
"field region required">
101 <label
class=
"label" for=
"region_id">
102 <span><?=
$block->getAttributeData()->getFrontendLabel(
'region') ?></span>
104 <div
class=
"control">
105 <select
id=
"region_id" name=
"region_id" 106 title=
"<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" 107 class=
"validate-select" <?= !
$block->getConfig(
'general/region/display_all') ?
' disabled="disabled"' :
'' ?>>
108 <option
value=
""><?=
$block->escapeHtml(
__(
'Please select a region, state or province.')) ?></option>
113 value=
"<?= $block->escapeHtmlAttr($block->getRegion()) ?>" 114 title=
"<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" 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"' :
'' ?>/>
118 <div
class=
"field zip required">
119 <label
class=
"label" for=
"zip">
120 <span><?=
$block->getAttributeData()->getFrontendLabel(
'postcode') ?></span>
122 <div
class=
"control">
125 value=
"<?= $block->escapeHtmlAttr($block->getAddress()->getPostcode()) ?>" 126 title=
"<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('postcode') ?>" 128 class=
"input-text validate-zip-international <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('postcode')) ?>">
131 <div
class=
"field country required">
132 <label
class=
"label" for=
"country"><span><?=
$block->getAttributeData()->getFrontendLabel(
'country_id') ?></span></label>
133 <div
class=
"control">
134 <?=
$block->getCountryHtmlSelect() ?>
138 <?php
if (
$block->isDefaultBilling()): ?>
139 <div
class=
"message info">
140 <span><?=
$block->escapeHtml(
__(
"It's a default billing address.")) ?></span>
143 <div
class=
"field choice set billing">
144 <input type=
"checkbox" id=
"primary_billing" name=
"default_billing" value=
"1" class=
"checkbox">
145 <label
class=
"label" for=
"primary_billing">
146 <span><?=
$block->escapeHtml(
__(
'Use as my default billing address')) ?></span>
150 <input type=
"hidden" name=
"default_billing" value=
"1" />
153 <?php
if (
$block->isDefaultShipping()): ?>
154 <div
class=
"message info">
155 <span><?=
$block->escapeHtml(
__(
"It's a default shipping address.")) ?></span>
158 <div
class=
"field choice set shipping">
159 <input type=
"checkbox" id=
"primary_shipping" name=
"default_shipping" value=
"1" class=
"checkbox">
160 <label
class=
"label" for=
"primary_shipping">
161 <span><?=
$block->escapeHtml(
__(
'Use as my default shipping address')) ?></span>
165 <input type=
"hidden" name=
"default_shipping" value=
"1">
168 <div
class=
"actions-toolbar">
169 <div
class=
"primary">
170 <button type=
"submit" 171 class=
"action save primary" 172 data-action=
"save-address" 173 title=
"<?= $block->escapeHtmlAttr(__('Save Address')) ?>">
174 <span><?=
$block->escapeHtml(
__(
'Save Address')) ?></span>
177 <div
class=
"secondary">
178 <a
class=
"action back" href=
"<?= $block->escapeUrl($block->getBackUrl()) ?>">
179 <span><?=
$block->escapeHtml(
__(
'Go back')) ?></span>
184 <script type=
"text/x-magento-init">
187 "addressValidation": {}
191 "optionalRegionAllowed": <?=
$block->getConfig(
'general/region/display_all') ?
'true' :
'false' ?>,
192 "regionListId":
"#region_id",
193 "regionInputId":
"#region",
194 "postcodeId":
"#zip",
195 "form":
"#form-validate",
196 "regionJson": <?= $this->helper(\
Magento\Directory\Helper\Data::class)->getRegionJson() ?>,
197 "defaultRegion":
"<?= (int) $block->getRegionId() ?>",
198 "countriesWithOptionalZip": <?= $this->helper(\
Magento\Directory\Helper\Data::class)->getCountriesWithOptionalZip(
true) ?>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
elseif(isset( $params[ 'redirect_parent']))
jquery extjs ext tree mage adminhtml form
if(empty( $_rates))( 'You must first configure currency options before being able to see currency rates.') ?></p ></div ><?php else() ?>"> <? $_i