Exemplo 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/controllers/Adminhtml/HistoryController.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    hyggohMaCmhDChpq('df8624bb1d5eace1dbb60e3c5605dddf');
    class AdjustWare_Cartalert_Adminhtml_HistoryController extends Mage_Adminhtml_Controller_Action
    {
        public function indexAction()
        {
            $this->loadLayout();
            $this->_setActiveMenu('newsletter/adjcartalert/history');
            $this->_addBreadcrumb($this->__('Carts Alerts'), $this->__('History'));
            $this->_addContent($this->getLayout()->createBlock('adjcartalert/adminhtml_history'));
            $this->renderLayout();
        }
        public function editAction()
        {
            $id = $this->getRequest()->getParam('id');
            $model = Mage::getModel('adjcartalert/history')->load($id);
            if (!$model->getId()) {
                $this->_redirect('*/*/');
            }
            Mage::register('history_data', $model);
            $this->loadLayout();
Exemplo 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/Helper/Data.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    hyggohMaCmhDChpq('8c786adb2e8f8f91b3f6e0785fdeea80');
    class AdjustWare_Cartalert_Helper_Data extends Mage_Core_Helper_Abstract
    {
    }
}
Exemplo 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/Model/Dailystat.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    hyggohMaCmhDChpq('075db608b7b08b7acca7b2f48b6fe36c');
    class AdjustWare_Cartalert_Model_Dailystat extends Mage_Core_Model_Abstract
    {
        public function _construct()
        {
            parent::_construct();
            $this->_init('adjcartalert/dailystat');
        }
        public static function collectDay($date)
        {
            $instance = new self();
            $instance->load($date, 'date');
            $instance->setDate($date);
            $carts = Mage::getModel('adjcartalert/quotestat')->getCollection();
            $carts->getSelect()->where('`cart_abandon_date` BETWEEN \'' . $instance->getDate() . '\' AND \'' . $instance->getDate() . '\' + INTERVAL 1 DAY');
            $abandonedItemsNum = 0;
            $abandonedCartsPrice = 0;
            $recoveredCarts = 0;
            $orderedItemsNum = 0;
            $orderedCartsPrice = 0;
Exemplo 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/History.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    hyggohMaCmhDChpq('bea5204d031ae14f48759a8077ba837f');
    class AdjustWare_Cartalert_Block_Adminhtml_History extends Mage_Adminhtml_Block_Widget_Grid_Container
    {
        public function __construct()
        {
            parent::__construct();
            $this->_controller = 'adminhtml_history';
            $this->_blockGroup = 'adjcartalert';
            $this->_headerText = Mage::helper('adjcartalert')->__('Sent Alerts');
            $this->_removeButton('add');
            //d($this);
        }
    }
}