Skip to content

Commit

Permalink
add extra fields to another phtml file, may still be missing some...
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbeaty committed Sep 28, 2024
1 parent ba0b154 commit 7ee6573
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@
<?php if ($_gender->isEnabled()): ?>
<li><?= $_gender->setGender($this->getFormData()->getGender())->toHtml() ?></li>
<?php endif ?>

<?php foreach ($this->extraFields() as $_code => $_attribute): ?>
<?php $_block = 'eav/widget_'.$_attribute->getFrontendInput() ?>
<?php $_element = $this->getLayout()->createBlock($_block)->setData('attribute', $_attribute) ?>
<?php if ($_element->isEnabled()): ?>
<li><?php echo $_element->setObject($this->getFormData())->toHtml() ?></li>
<?php endif ?>
<?php endforeach ?>

</ul>
</div>
<?php if($this->getShowAddressFields()): ?>
Expand Down

0 comments on commit 7ee6573

Please sign in to comment.