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
| //substituir pelo outro | |
| var OPC = Class.create(); | |
| OPC.prototype = { | |
| initialize: function (form, urls, agreement) { | |
| this.acceptAgreementText = agreement; | |
| this.successUrl = check_secure_url(urls.success); |
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
| /*===================================================== Click ===========================================================*/ | |
| /*Roda o clique para selecionar o tipo pessoa*/ | |
| $j('input[name*="tipopessoa"]').click( function(){ | |
| var existe; | |
| /*Pega do click tipo pessoa*/ | |
| queme = this.value; | |
| /*Verifica se existe o Taxvat*/ |
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 | |
| $_productCollection = $this->getLoadedProductCollection(); | |
| $_helper = $this->helper('catalog/output'); | |
| ?> | |
| <?php if(!$_productCollection->count()): ?> | |
| <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p> | |
| <?php else: ?> | |
| <?php $mod = $this->getRequest()->getModuleName(); | |
| if($mod!='catalogsearch'): |
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 Apenas_Numeros(caracter) | |
| { | |
| var nTecla = 0; | |
| if (document.all) { | |
| nTecla = caracter.keyCode; |
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 | |
| /** | |
| * @name : Apptha One Step Checkout | |
| * @version : 1.1 | |
| * @since : Magento 1.4 | |
| * @author : Apptha - http://www.apptha.com | |
| * @copyright : Copyright (C) 2011 Powered by Apptha | |
| * @license : http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
| * @Creation Date: June 20 2011 | |
| * |
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 | |
| /** | |
| * Magento | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Academic Free License (AFL 3.0) | |
| * that is bundled with this package in the file LICENSE_AFL.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/afl-3.0.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
| /* deivison 02 | |
| FUNÇÃO QUE EXECUTA PASSO A PASSO DE ATUALIZAÇÃO DOS CAMPOS PAYMENTS E REVIEW | |
| ------------------------------------------------------------------------------------------------------------------------------- | |
| Essa função foi feita para atualização dos valores, caso haja desconto para pagamentos específicos como 10% pagamento no boleto | |
| ------------------------------------------------------------------------------------------------------------------------------- | |
| Métodos de atualiação | |
| 'payment-method': 1, <- Atualiza os meios de pagamentos | |
| 'shipping-method': 1, <- Atualiza os métodos de envio | |
| 'review': 1 <- Atualiza o resumo da compra | |
| */ |
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
| Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
| $order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId()); | |
| if ($order->getId()) { | |
| try { | |
| $order->sendNewOrderEmail(); | |
| $order->setEmailSent(true); | |
| echo "Foi enviado copia do pedido para seu email com sucesso!\n"; | |
| } catch (Exception $e) { |
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
| include_once '../app/Mage.php'; | |
| Mage::app(); | |
| $myOrder=Mage::getModel('sales/order'); | |
| $orders=Mage::getModel('sales/mysql4_order_collection'); | |
| /*Caso coloque esse script na Cron pode resgatar os pedidos faturados assim:*/ |
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 | |
| Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
| $order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId()); | |
| if ($order->getId()) { | |
| try { | |
| $order->sendNewOrderEmail(); | |
| $order->setEmailSent(true); | |
| $this->sendEmail(); |