2

I had created a template for Customer address form. There is alignment issue with name block and phone number block. As shown in below image

enter image description here

This thing works fine on my development environment but creating issue on production site

<fieldset class="fieldset">
    <legend class="legend"><span><?= $block->escapeHtml(__('Contact Information')) ?></span></legend><br>
    <?= $block->getBlockHtml('formkey') ?>
    <input type="hidden" name="success_url" value="<?= $block->escapeUrl($block->getSuccessUrl()) ?>">
    <input type="hidden" name="error_url" value="<?= $block->escapeUrl($block->getErrorUrl()) ?>">
    <?= $block->getNameBlockHtml() ?>

    <?php if ($_telephone->isEnabled()): ?>
        <?= $_telephone->setTelephone($block->getAddress()->getTelephone())->toHtml() ?>
    <?php endif ?>

    <?php if ($_company->isEnabled()): ?>
        <?= $_company->setCompany($block->getAddress()->getCompany())->toHtml() ?>
    <?php endif ?>

    <?php if ($_fax->isEnabled()): ?>
        <?= $_fax->setFax($block->getAddress()->getFax())->toHtml() ?>
    <?php endif ?>
  • Are you working on live project if yes can you share the link or localhost ? – Mohit Rane Jul 3 '19 at 6:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.