deivisonarthur
9/18/2012 - 9:29 PM

conserto.php




<!--Acredito que seja +/- isso existe uma verficação <?php if (!$logged)  : ?> dentro dela tem vários campos tipo esse:-->


 <!--
                          IF BLOCO EMPRESA -----------------------------------------
                     -->
                      <?php
          			$company = Mage::getStoreConfig('onepagecheckout/outrasopcoes/empresaregistro');
          			if ($company !== 'hidden') : ?>
                          <div class="short">
          	                <label <?php if ( $company  === 'required' ){ echo 'class="required"'; }?> >
          					<?php
                              if($company === 'required') {
                                echo ' <sup>*</sup> ';
                              }else{
                                echo ' <sup>&nbsp;</sup> ';
                              }
                              ?>
                              <?php echo $this->__('Raz&atilde;o Social') ?></label>
                              <div class="input-box">
                                  <input type="text" style="width: 109px !important" name="billing[empresa]" id="empresa"  value="<?php echo $this->htmlEscape($this->getCustomer()->getEmpresa()) ?>"  title="<?php echo $this->__('Raz&atilde;o Social'); ?>" class="input-text t1 <?php if($company === 'required'){ echo ' required-entry';} ?>" />
                              </div>
                          </div>
                      <?php endif; ?>



<!--La em baixo vc ira ver o fim desse campo -->

            <?php endif; ?>
            <!-- END IF LOGGED ###########################################################################################-->

<!--Coloque assim:-->

            <?php else: ?>
                <input type="hidden" name="billing[address_id]" value="<?php echo $this->getBillAddress()->getId() ?>" />
                <input type="hidden" name="billing[firstname]" value="<?php echo $this->htmlEscape($this->getCustomer()->getFirstname()) ?>"/>
                <input type="hidden" name="billing[lastname]" value="<?php echo $this->htmlEscape($this->getCustomer()->getLastname()) ?>"/>
                <input type="hidden" name="billing[tipopessoa]" value="<?php echo $this->htmlEscape($this->getCustomer()->getTipopessoa()) ?>"/>
                <input type="hidden" name="billing[rg]" value="<?php echo $this->htmlEscape($this->getCustomer()->getRg()) ?>"/>
                <input type="hidden" name="billing[cpfcnpj]" value="<?php echo $this->htmlEscape($this->getCustomer()->getCpfcnpj()) ?>"/>
                <input type="hidden" name="billing[taxvat]" value="<?php echo $this->htmlEscape($this->getCustomer()->getTaxvat()) ?>"/>
                <input type="hidden" name="billing[ie]" value="<?php echo $this->htmlEscape($this->getCustomer()->getIe()) ?>"/>
                <input type="hidden" name="billing[empresa]" value="<?php echo $this->htmlEscape($this->getCustomer()->getEmpresa()) ?>"/>
                <input type="hidden" name="billing[nomefantasia]" value="<?php echo $this->htmlEscape($this->getCustomer()->getNomefantasia()) ?>"/>
            <?php endif; ?>
            <!-- END IF LOGGED ###########################################################################################-->
            <!-- END CAMPOS DO CADASTRO ###########################################################################################-->