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
| <?php foreach($this->getParcelas() as $parcela): ?> | |
| <?php | |
| if( $parcela['parcela'] <= 2 ){ | |
| ?> | |
| <label style="clear: both !important; padding: 0px !important"><input style="width: 20px !important" type="radio" id="cielo_cc_parcelas_<?php echo $parcela['parcela']; ?>" name="payment[cc_parcelas]" class="validate-one-required-by-name" value="<?php echo $parcela['parcela']; ?>"><strong><?php echo $parcela['label']; ?></strong> <em><?php if( $parcela['parcela'] != 1 ): echo "(Sem juros)"; endif; ?></em> </label><br /> | |
| <?php | |
| } | |
| if( $parcela['parcela'] == 3 && $total > 70 || $parcela['parcela'] == 3 && $total < 150 && $total > 70 ){ |
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
| <?php foreach($this->getParcelas() as $parcela): ?> | |
| <?php | |
| if( $parcela['parcela'] <= 2 ){ | |
| ?> | |
| <label style="clear: both !important; padding: 0px !important"><input style="width: 20px !important" type="radio" id="cielo_cc_parcelas_<?php echo $parcela['parcela']; ?>" name="payment[cc_parcelas]" class="validate-one-required-by-name" value="<?php echo $parcela['parcela']; ?>"><strong><?php echo $parcela['label']; ?></strong> <em><?php if( $parcela['parcela'] != 1 ): echo "(Sem juros)"; endif; ?></em> </label><br /> | |
| <?php | |
| } | |
| if( $parcela['parcela'] == 3 && $total < 150 && $total > 70 ){ |
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
| <script type="text/javascript"> | |
| $('firstname').addClassName('unico'); | |
| Validation.add('unico','Ja existe esse usuario cadastrado!',function(the_field_value){ | |
| var url = '<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)?>unico/verifica.php?firstname=' + $('firstname').value; | |
| var ok = false; | |
| new Ajax.Request(url, { | |
| method: 'get', |
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
| <?php | |
| include_once '../app/Mage.php'; | |
| Mage::app(); | |
| $compara = $_GET['firstname']; | |
| $cli = Mage::getModel('customer/customer') | |
| ->getCollection() | |
| ->addAttributeToFilter('firstname', array('eq' => $compara)); |
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
| <?php if(!$this->settings['exclude_address']):?> | |
| <?php if(Mage::getStoreConfig('onestepcheckout/exclude_fields/enable_address_fields')):?> | |
| <?php | |
| $addressFields = ''; | |
| for ($_i=1, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++){ | |
| $addressFields .= '<div class="input-box input-address-short'.((in_array('address', $formErrors)) ? ' input-error' : '').'"> | |
| <label for="billing:street'.$_i.'">'.$this->__('Street Address '.$_i).'<span class="required">*</span></label><br /> | |
| <input type="text" title="'.$this->__('Street Address '.$_i).'" name="billing[street][]" id="billing:street'.$_i.'" value="'.$dataHelper->clearDash($this->getQuote()->getBillingAddress()->getStreet($_i)).'" class="required-entry input-text onestepcheckout-address-line" /> | |
| </div>'; | |
| } |
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
| //no checkout do OSC | |
| <?php | |
| //Redireciona para o login caso n esteja logado add isso no inicio | |
| if (!Mage::getSingleton('customer/session')->isLoggedIn()){ //verifica se o usuário nao esta logado | |
| $_SESSION['voltarCarrinho'] = 1; //cria session | |
| header("Location: /customer/account/login/"); exit(); | |
| }else{ //Ao voltar se estiver logado ira setar 0(zero) no voltar carrinho |
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
| <?php | |
| if( !isset($_POST['r3l0g105']) && !isset($_POST['email']) ){ | |
| //if( !isset($_GET['r3l0g105']) && !isset($_GET['email']) ){ | |
| echo "Error"; | |
| exit(); | |
| } | |
| require_once('../../app/Mage.php'); |
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
| $(function(){ | |
| var email = $("input#email").val(); | |
| if(isValidEmailAddress(email)) { | |
| $(email).after("hooray!"); | |
| } else { | |
| $(email).addClass("yourerror").after("<label class='error'>Email is not valid!</label>").focus(); | |
| //alert('Email invalido'); | |
| return false; | |
| } |
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
| <script type="text/javascript"> | |
| $(document).ready(function() { | |
| jQuery.validator.addMethod("valDomain",function(nname) | |
| { | |
| <!-- Script by hscripts.com --> | |
| <!-- Modified to fit jQuery Validate by Dan of QSD Consulting (http://qsdconsulting.com) --> | |
| <!-- Released under the GPL --> | |
| var arr = new Array( | |
| '.com','.net','.org','.biz','.coop','.info','.museum','.name', |
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
| <?php | |
| //Optional filters you might want to use - more available operations in method _getConditionSql in Varien_Data_Collection_Db. | |
| $orders->addFieldToFilter('total_paid',Array('gt'=>0)); //Amount paid larger than 0 | |
| $orders->addFieldToFilter('state',Array('like'=>"%processing%")); //Status is "processing" completed | |
| //$orders->addFieldToFilter('status',Array('like'=>"%lise de Sua Compra%")); //Status is "processing" completed | |
| $orders->addFieldToFilter('status',Array('like'=>"%lise de Sua Compra%")); //Status is "processing" completed | |
| //cod acima faz o select de todos os pedidos ja faturados, ou seja, setado completed |