MrwIberia_Mage2Mrw

by Peter D.
1. Open tm/firecheckout/checkout/billing.phtml 1.1. Find the following lines:
<?php elseif ('taxvat' === $field): ?>
      <?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat($_prefix . ':%s')->setFieldNameFormat($_prefix . '[%s]')->toHtml() ?>
  <?php else: ?>
Replace them with:
<?php elseif ('taxvat' === $field): ?>
      <?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat($_prefix . ':%s')->setFieldNameFormat($_prefix . '[%s]')->toHtml() ?>
  <?php elseif ('street1' === $field): ?>
          <label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Tipo de vía') ?></label>
          <div class="input-box">
              <?php echo $this->helper('mrw4mage')->getTipoViaHtmlSelect($this->getAddress(), 'billing[street][]', 'billing:street1', 'Tipo de vía') ?>
          </div>
      </li>
      <li class="wide">
          <label for="billing:street2" class="required"><em>*</em><?php echo $this->__('Nombre de la vía') ?></label>
          <div class="input-box">
              <input type="text" title="<?php echo $this->__('Nombre de la vía') ?>" name="billing[street][]" id="billing:street2" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(2)) ?>" class="input-text required-entry" />
          </div>
      </li>
      <li class="wide">
          <label for="billing:street3" class="required"><em>*</em><?php echo $this->__('Número de la vía') ?></label>
          <div class="input-box">
              <input type="text" title="<?php echo $this->__('Número de la vía') ?>" name="billing[street][]" id="billing:street3" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(3)) ?>" class="input-text required-entry" />
          </div>
      </li>
      <li class="wide">
          <label for="billing:street4"><?php echo $this->__('Resto (portal, escalera, etc.)') ?></label>
          <div class="input-box">
              <input type="text" title="<?php echo $this->__('Resto (portal, escalera, etc.)') ?>" name="billing[street][]" id="billing:street4" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(4)) ?>" class="input-text" />
          </div>
  <?php else: ?>
1.2. Find the next line:
<?php if ('street1' === $field) : ?>
and replace it with:
 <?php if (false && 'street1' === $field) : ?>
2. Open tm/firecheckout/checkout/shipping.phtml 2.1. Find the following lines:
 <?php if ('name' === $field) : ?>
      <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($_address)->setFieldIdFormat($_prefix . ':%s')->setFieldNameFormat($_prefix . '[%s]')->toHtml() ?>
  <?php else: ?>
And replace them with:
<?php if ('name' === $field) : ?>
      <?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($_address)->setFieldIdFormat($_prefix . ':%s')->setFieldNameFormat($_prefix . '[%s]')->toHtml() ?>
  <?php elseif ('street1' === $field) : ?>
          <label for="shipping:street1" class="required"><em>*</em><?php echo $this->__('Tipo de vía') ?></label>
          <div class="input-box">
              <?php echo $this->helper('mrw4mage')->getTipoViaHtmlSelect($this->getAddress(), 'shipping[street][]', 'shipping:street1', 'Tipo de vía', 'class="input-text required-entry"') ?>
          </div>
      </li>
      <li class="wide">
          <label for="shipping:street2" class="required"><em>*</em><?php echo $this->__('Nombre de la vía') ?></label>
          <div class="input-box">
              <input type="text" title="<?php echo $this->__('Nombre de la vía') ?>" name="shipping[street][]" id="shipping:street2" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(2)) ?>" class="input-text required-entry" />
          </div>
      </li>
      <li class="wide">
          <label for="shipping:street3" class="required"><em>*</em><?php echo $this->__('Número de la vía') ?></label>
          <div class="input-box">
              <input type="text" title="<?php echo $this->__('Número de la vía') ?>" name="shipping[street][]" id="shipping:street3" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(3)) ?>" class="input-text required-entry" />
          </div>
      </li>
      <li class="wide">
          <label for="shipping:street4"><?php echo $this->__('Resto (portal, escalera, etc.)') ?></label>
          <div class="input-box">
              <input type="text" title="<?php echo $this->__('Resto (portal, escalera, etc.)') ?>" name="shipping[street][]" id="shipping:street4" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(4)) ?>" class="input-text" />
          </div>
  <?php else : ?>
2.2. Find the next line:
<?php if ('street1' === $field) : ?>
and replace it with:
<?php if (false && 'street1' === $field) : ?>

Recent articles

Back to top