Created
September 18, 2012 21:29
-
-
Save deivisonarthur/3746048 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--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> </sup> '; | |
| } | |
| ?> | |
| <?php echo $this->__('Razã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ã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 ###########################################################################################--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment