This file contains 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
if($("#shipping_postcode").size() > 0) { | |
$(document).ready(function(){ | |
GER_localizacao = 'http://www.vacamarela.com/lojadoamigo/' | |
$("#shipping_postcode").keyup(function(){ | |
resultado = GER_localizacao+'webservices.php?cep='+$(this).val(); | |
if($(this).val().length > 7){ | |
$.ajax({ | |
url:resultado, | |
type:'GET', | |
dataType: 'xml', |
This file contains 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
<?php | |
$installer = $this; | |
$installer->startSetup(); | |
$setup = Mage::getModel('customer/entity_setup', 'core_setup'); | |
$setup->addAttribute('customer', 'tipopessoa', array( | |
'type' => 'int', | |
'input' => 'select', |
This file contains 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
<?php | |
class Alexbraga_Novoatributo_Model_Entity_Tipopessoa extends Mage_Eav_Model_Entity_Attribute_Source_Abstract | |
{ | |
public function getAllOptions() | |
{ | |
if ($this->_options === null) { | |
$this->_options = array(); | |
$this->_options[] = array( | |
'value' => '', | |
'label' => 'Escolha a opco..' |
This file contains 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
<onepagecheckout_setup> | |
<setup> | |
<module>IWD_OnepageCheckout</module> | |
<class>Mage_Customer_Model_Entity_Setup</class> | |
</setup> | |
<connection> | |
<use>core_setup</use> | |
</connection> | |
</onepagecheckout_setup> |
This file contains 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
<?php | |
$installer = $this; | |
$installer->startSetup(); | |
$setup = Mage::getModel('customer/entity_setup', 'core_setup'); | |
$setup->addAttribute('customer', 'tipopessoa', array( | |
'type' => 'int', | |
'input' => 'select', |
This file contains 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
<customer_account_create> | |
<reference name="customer_form_register"> | |
<action method="setTemplate"><template>novoatributo/persistent/customer/form/register.phtml</template></action> | |
</reference> | |
</customer_account_create> | |
<customer_account_edit> | |
<reference name='customer_edit'> | |
<action method="setTemplate"><template>novoatributo/customer/form/edit.phtml</template></action> | |
</reference> | |
</customer_account_edit> |
This file contains 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
package com.phonegap.plugin.localnotification; | |
import java.util.Calendar; | |
import org.json.JSONArray; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.content.SharedPreferences.Editor; | |
import android.util.Log; |
This file contains 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
/** | |
* calculates total value from quote | |
* | |
* @return int|float | |
*/ | |
public function getShippingPrice() { | |
/** | |
* get quote items | |
*/ | |
$items = Mage::getSingleton('checkout/cart')->getItems(); |
This file contains 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
/** | |
* calculates total value from quote | |
* | |
* @return int|float | |
*/ | |
public function getShippingPrice() { | |
/** | |
* get quote items | |
*/ | |
$items = Mage::getSingleton('checkout/cart')->getItems(); |
This file contains 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
$('input[name*="[telephone]"]').keydown( function(e){ | |
if (e.keyCode >= 9){ | |
length = this.value.length; | |
if (length == 0) | |
this.value += "("; | |
if (length == 3) | |
this.value += ")"; | |
/* | |
Testa para ver se o ddd começa com 11 e coloca maxlength para 14 |
OlderNewer