Skip to content

Commit

Permalink
Merge pull request #33 from r-martins/geoip-e-correcoes-diversas
Browse files Browse the repository at this point in the history
Comentado includes errados do GeoIP / Descomentado linhas do xml...
  • Loading branch information
deivisonarthur committed Nov 29, 2013
2 parents 1e4da81 + f618eba commit ab092ed
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
@@ -1,8 +1,8 @@
<?php

include_once(Mage::getBaseDir('lib')."/MaxMind/GeoIP/geoip.inc");
include_once(Mage::getBaseDir('lib')."/MaxMind/GeoIP/geoipcity.inc");
include_once(Mage::getBaseDir('lib')."/MaxMind/GeoIP/geoipregionvars.php");
// include_once(Mage::getBaseDir('lib')."/MaxMind/GeoIP/geoip.inc");
// include_once(Mage::getBaseDir('lib')."/MaxMind/GeoIP/geoipcity.inc");
// include_once(Mage::getBaseDir('lib')."/MaxMind/GeoIP/geoipregionvars.php");

class DeivisonArthur_OnepageCheckout_Model_Type_Geo
{
Expand Down
16 changes: 8 additions & 8 deletions app/code/local/DeivisonArthur/OnepageCheckout/etc/system.xml
Expand Up @@ -141,7 +141,7 @@
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</analytics>
<!--

<guest_checkout1 translate="label" module="checkout">
<label>Exibir login padrao do OSC</label>
<frontend_type>select</frontend_type>
Expand Down Expand Up @@ -170,7 +170,7 @@
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</habilitarcad>
-->

<shipping_address translate="label" module="onepagecheckout">
<label>Permitir entregar em outro endereco?</label>
<comment>Valido somente para compras por pessoa fisica</comment>
Expand Down Expand Up @@ -216,7 +216,7 @@
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<!--

<cpfcnpjtaxvat translate="label" module="checkout">
<label>CPF/CNPJ pelo Taxvat</label>
<comment>Esse campo so funciona as opcoes (Nao exibir campo) e (Obrigatorio)</comment>
Expand Down Expand Up @@ -346,7 +346,7 @@
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</country>
-->

<sexo translate="label" module="checkout">
<label>Sexo</label>
<frontend_type>select</frontend_type>
Expand Down Expand Up @@ -402,7 +402,7 @@



<!--

<outrasopcoes translate="label">
<label>Tela do cadastro e edit do usuario</label>
<frontend_type>text</frontend_type>
Expand Down Expand Up @@ -491,7 +491,7 @@

</fields>
</outrasopcoes>
-->


<agreements translate="label" module="checkout">
<label>Termos e condicoes</label>
Expand Down Expand Up @@ -524,7 +524,7 @@



<!--

<geo_ip translate="label">
<label>GeoIP</label>
<frontend_type>text</frontend_type>
Expand Down Expand Up @@ -572,7 +572,7 @@
</fields>
</geo_ip>

-->


</groups>
</onepagecheckout>
Expand Down
Expand Up @@ -412,7 +412,7 @@ $has_addr = $this->customerHasAddresses();
}
?>
<div class="data_area">
<input type="text" id="celular" name="billing[celular]" value="<?php echo $this->htmlEscape($this->getBillAddress()->getCelular()) ?>" title="<?php echo $this->__('Celular') ?>" class="t1 required-entry" id="billing:fax" />
<input type="text" id="celular" name="billing[celular]" value="<?php echo $this->htmlEscape($this->getBillAddress()->getCelular()) ?>" title="<?php echo $this->__('Celular') ?>" class="t1<?php if($celular === 'required') {echo ' class=" required-entry" ';}?>" id="billing:fax" />
</div>
</div>
<?php endif ?>
Expand Down
Expand Up @@ -43,7 +43,7 @@ if (!$this->getQuote()->isVirtual() && Mage::helper('onepagecheckout')->isShippi
<ul>
<li class="options">
<input type="checkbox" class="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getShipAddress()->getSameAsBilling()){echo ' checked="checked" ';} ?> title="<?php echo $this->__('Ship to this address') ?>" onclick="shipping.setSameAsBilling(this.checked)" />
<label>
<label for="shipping:same_as_billing">
<?php echo $this->__('Ship to this address') ?>
</label>
</li>
Expand Down Expand Up @@ -202,7 +202,7 @@ if (!$this->getQuote()->isVirtual() && Mage::helper('onepagecheckout')->isShippi
}
?>
<div class="data_area">
<input type="text" id="celular" name="shipping[celular]" value="<?php echo $this->htmlEscape($this->getBillAddress()->getCelular()) ?>" title="<?php echo $this->__('Celular') ?>" class="t1 required-entry" id="billing:fax" />
<input type="text" id="celular" name="shipping[celular]" value="<?php echo $this->htmlEscape($this->getBillAddress()->getCelular()) ?>" title="<?php echo $this->__('Celular') ?>" class="t1<?php if($celular_r === 'required') {echo ' class=" required-entry" ';}?>" id="billing:fax" />
</div>
</div>
<?php endif ?>
Expand Down
2 changes: 1 addition & 1 deletion app/locale/pt_BR/DeivisonArthur_OnepageCheckout.csv
Expand Up @@ -36,7 +36,7 @@
"Please select an option.","Selecione uma op&ccedil;&atilde;o."
"Please make sure your passwords match.","As senhas n&atilde;o s&atilde;o iguais"
"Please enter 6 or more characters. Leading or trailing spaces will be ignored.","A senha dever&aacute; ter no m&iacute;nimo 6 caracteres"
"Already registered? Click here to login","Caso possua conta? Clique aqui e poupe tempo!"
"Already registered? Click here to login","Já é cliente? Clique aqui e poupe tempo!"
"Sorry, no quotes are available for this order at this time.","M&eacute;todo de envio n&atilde;o liberado para esse CEP"
"New Shipping Address","Endere&ccedil;o de Entrega"
"Taxvat","CNPJ/CPF"
Expand Down

0 comments on commit ab092ed

Please sign in to comment.