Example #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/Block/Adminhtml/Quotestat.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    IgjjhoeEUBorUICi('b07f64168aa549125af3112c529609c0');
    class AdjustWare_Cartalert_Block_Adminhtml_Quotestat extends Mage_Adminhtml_Block_Widget_Grid_Container
    {
        public function __construct()
        {
            parent::__construct();
            $this->_controller = 'adminhtml_quotestat';
            $this->_blockGroup = 'adjcartalert';
            $this->_headerText = Mage::helper('adjcartalert')->__('Abandoned Carts Statistic');
            $this->_removeButton('add');
        }
    }
}
Example #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/Quotestat/View.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    IgjjhoeEUBorUICi('758ae413d6e039768fbaaa0d58661760');
    class AdjustWare_Cartalert_Block_Adminhtml_Quotestat_View extends Mage_Adminhtml_Block_Widget_Form_Container
    {
        public function __construct()
        {
            parent::__construct();
            $this->_objectId = 'id';
            // ?
            $this->_blockGroup = 'adjcartalert';
            $this->_controller = 'adminhtml_quotestat';
            $this->_mode = 'view';
            $this->_removeButton('reset');
            $this->_removeButton('save');
            $this->_removeButton('delete');
            $data = Mage::registry('quotestat_data');
            $this->_order = Mage::getModel('sales/order')->getCollection()->addFieldTofilter('quote_id', array('eq' => $data->getQuoteId()))->getFirstItem();
            $quote = Mage::getModel('sales/quote')->getCollection()->addFieldToFilter('entity_id', array('eq' => $data->getQuoteId()))->getFirstItem();
            $this->_customer = Mage::getModel('customer/customer')->load($quote->getCustomerId());
            $this->_customerGroup = Mage::getModel('customer/group')->load($this->_customer->getGroupId());
            if ($this->_order->getId()) {