Skip to content

Commit e5444ad

Browse files
committed
Add missing vatid field.
It was copied from nearby address/edit.phtml template
1 parent ad29452 commit e5444ad

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

app/code/Magento/Customer/view/frontend/templates/form/register.phtml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,23 @@ $formData = $block->getFormData();
131131
</div>
132132
</div>
133133

134+
<?php if ($addressHelper->isVatAttributeVisible()): ?>
135+
<?php $_vatidValidationClass = $addressHelper->getAttributeValidationClass('vat_id'); ?>
136+
<div class="field taxvat">
137+
<label class="label" for="vat_id">
138+
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('vat_id') ?></span>
139+
</label>
140+
<div class="control">
141+
<input type="text"
142+
name="vat_id"
143+
value="<?= $escaper->escapeHtmlAttr($formData->getVatId()) ?>"
144+
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('vat_id') ?>"
145+
class="input-text <?= $escaper->escapeHtmlAttr($_vatidValidationClass) ?>"
146+
id="vat_id">
147+
</div>
148+
</div>
149+
<?php endif; ?>
150+
134151
<div class="field country required">
135152
<label for="country" class="label">
136153
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('country_id') ?></span>

0 commit comments

Comments
 (0)