Ejemplo n.º 1
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 01/11/12
 * Package:     AdjustWare_Cartalert_3.1.1_0.2.3_440060
 * Purchase ID: NZmnTZChS7OANNEKozm6XF7MkbUHNw6IY9fsWFBWRT
 * Generated:   2013-01-22 11:08:03
 * File path:   app/code/local/AdjustWare/Cartalert/Model/Checkout/Cart/Observer.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    NZkkqcrdfacgfNRw('c58590ae13b47a57924f744db69a65bb');
    class AdjustWare_Cartalert_Model_Checkout_Cart_Observer extends Mage_Core_Model_Abstract
    {
        public function onCoreLocaleSetLocale($observer)
        {
            if (!Mage::registry('aitpagecache_check_14') && Mage::getConfig()->getNode('modules/Aitoc_Aitpagecache/active') === 'true') {
                if (file_exists(Mage::getBaseDir('magentobooster') . DS . 'use_cache.ser')) {
                    Mage::register('aitpagecache_check_14', 1);
                } elseif (file_exists(Mage::getBaseDir('app/etc') . DS . 'use_cache.ser')) {
                    Mage::register('aitpagecache_check_13', 1);
                }
            }
        }
    }
}
Ejemplo n.º 2
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 01/11/12
 * Package:     AdjustWare_Cartalert_3.1.1_0.2.3_440060
 * Purchase ID: NZmnTZChS7OANNEKozm6XF7MkbUHNw6IY9fsWFBWRT
 * Generated:   2013-01-22 11:08:03
 * File path:   app/code/local/AdjustWare/Cartalert/Block/Adminhtml/Dailystat/Grid.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    NZkkqcrdfacgfNRw('4302323565b691ec93423f7640ec3985');
    class AdjustWare_Cartalert_Block_Adminhtml_Dailystat_Grid extends Mage_Adminhtml_Block_Widget_Grid
    {
        public function __construct()
        {
            parent::__construct();
            $this->setId('dailystatGrid');
            // This is the primary key of the database
            $this->setDefaultSort('date');
            $this->setDefaultDir('DESC');
            $this->setSaveParametersInSession(true);
            $this->setUseAjax(false);
            $this->setFilterVisibility(false);
            $this->setPagerVisibility(false);
        }
        private function _processPeriod($collection, $period)
        {
            switch ($period) {
                case 'day':
                    return $collection;
Ejemplo n.º 3
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 01/11/12
 * Package:     AdjustWare_Cartalert_3.1.1_0.2.3_440060
 * Purchase ID: NZmnTZChS7OANNEKozm6XF7MkbUHNw6IY9fsWFBWRT
 * Generated:   2013-01-22 11:08:03
 * File path:   app/code/local/AdjustWare/Cartalert/Block/Adminhtml/History/Edit/Form.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    NZkkqcrdfacgfNRw('c6dd1017cabe8ef363c1a015c7bc8506');
    class AdjustWare_Cartalert_Block_Adminhtml_History_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
    {
        protected function _prepareForm()
        {
            $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => '', 'method' => 'post'));
            $form->setUseContainer(true);
            $this->setForm($form);
            $hlp = Mage::helper('adjcartalert');
            $fldInfo = $form->addFieldset('adjcartalert_info', array('legend' => $hlp->__('Alert Variables')));
            $fldInfo->addField('customer_email', 'text', array('label' => $hlp->__('Customer E-mail'), 'name' => 'customer_email'));
            $fldInfo->addField('customer_name', 'text', array('label' => $hlp->__('Customer Name'), 'name' => 'customer_name'));
            $fldInfo->addField('txt', 'textarea', array('label' => $hlp->__('Message'), 'name' => 'txt', 'style' => 'width:35em;height:15em;'));
            if (Mage::registry('history_data')) {
                $form->setValues(Mage::registry('history_data')->getData());
            }
            return parent::_prepareForm();
        }
    }
}
Ejemplo n.º 4
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 01/11/12
 * Package:     AdjustWare_Cartalert_3.1.1_0.2.3_440060
 * Purchase ID: NZmnTZChS7OANNEKozm6XF7MkbUHNw6IY9fsWFBWRT
 * Generated:   2013-01-22 11:08:03
 * File path:   app/code/local/AdjustWare/Cartalert/Block/Adminhtml/Quotestat/View/Form.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    NZkkqcrdfacgfNRw('eb4b21317780153132f29b01c1ba0e3b');
    class AdjustWare_Cartalert_Block_Adminhtml_Quotestat_View_Form extends Mage_Adminhtml_Block_Sales_Order_View_Tab_Info
    {
        public function __construct()
        {
            parent::__construct();
            $this->setTemplate('adjcartalert/quotestat.phtml');
        }
        public function getProductsHtml($products = array())
        {
            if (!is_array($products)) {
                return '';
            }
            $productModel = Mage::getModel('catalog/product');
            $html = '<table style="margin: 3px; width: 95%;">';
            foreach ($products as $productId => $productQty) {
                $html .= '<tr><td>' . $productModel->load($productId)->getName() . '</td><td><b>&nbsp;x&nbsp;</b></td><td>' . (int) $productQty . '</td></tr>';
            }
            $html .= '</table>';
            return $html;
Ejemplo n.º 5
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 01/11/12
 * Package:     AdjustWare_Cartalert_3.1.1_0.2.3_440060
 * Purchase ID: NZmnTZChS7OANNEKozm6XF7MkbUHNw6IY9fsWFBWRT
 * Generated:   2013-01-22 11:08:03
 * File path:   app/code/local/AdjustWare/Cartalert/Block/Adminhtml/Quotestat/Grid.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    NZkkqcrdfacgfNRw('3cb08cd5c7517f9070f1b23b64e4e666');
    class AdjustWare_Cartalert_Block_Adminhtml_Quotestat_Grid extends Mage_Adminhtml_Block_Widget_Grid
    {
        public function __construct()
        {
            parent::__construct();
            $this->setId('quotestatGrid');
            $this->setDefaultSort('quote_id');
            $this->setDefaultDir('DESC');
            $this->setSaveParametersInSession(true);
            $this->setUseAjax(true);
            if ($this->getRequest()->getParam('date')) {
                $this->_processUrlDateParams($this->getRequest()->getParam('date'), $this->getRequest()->getParam('period_type'));
            }
        }
        protected function _prepareCollection()
        {
            $collection = Mage::getModel('adjcartalert/quotestat')->getCollection();
            $this->setCollection($collection);
            return parent::_prepareCollection();
Ejemplo n.º 6
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 01/11/12
 * Package:     AdjustWare_Cartalert_3.1.1_0.2.3_440060
 * Purchase ID: NZmnTZChS7OANNEKozm6XF7MkbUHNw6IY9fsWFBWRT
 * Generated:   2013-01-22 11:08:03
 * File path:   app/code/local/AdjustWare/Cartalert/controllers/Adminhtml/DailystatController.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    NZkkqcrdfacgfNRw('ef535db1867116b8b187ae1add595c89');
    class AdjustWare_Cartalert_Adminhtml_DailystatController extends Mage_Adminhtml_Controller_Action
    {
        protected function _initAction()
        {
            $this->loadLayout()->_setActiveMenu('adjcartalert/quotestat')->_addBreadcrumb(Mage::helper('adminhtml')->__('Daily Statistic'), Mage::helper('adminhtml')->__('Daily Statistic'));
            return $this;
        }
        public function indexAction()
        {
            $periodType = $this->getRequest()->getParam('period_type');
            $from = $this->getRequest()->getParam('from');
            $to = $this->getRequest()->getParam('to');
            if ($periodType && (!$from || !$to)) {
                Mage::getSingleton('core/session')->addError($this->__('Please select correct from/to values'));
                $this->getRequest()->setParam('period_type', '');
            }
            $this->_initAction();
            $this->_addContent($this->getLayout()->createBlock('adjcartalert/adminhtml_dailystat_cronmanage'));
            $this->_addContent($this->getLayout()->createBlock('adjcartalert/adminhtml_dailystat_filter'));
Ejemplo n.º 7
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 01/11/12
 * Package:     AdjustWare_Cartalert_3.1.1_0.2.3_440060
 * Purchase ID: NZmnTZChS7OANNEKozm6XF7MkbUHNw6IY9fsWFBWRT
 * Generated:   2013-01-22 11:08:03
 * File path:   app/code/local/AdjustWare/Cartalert/Model/Mysql4/History.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    NZkkqcrdfacgfNRw('a80cb86d173a171213d3443b58e7f10b');
    class AdjustWare_Cartalert_Model_Mysql4_History extends Mage_Core_Model_Mysql4_Abstract
    {
        public function _construct()
        {
            $this->_init('adjcartalert/history', 'id');
        }
    }
}