Пример #1
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 22/05/12
 * Package:     AdjustWare_Cartalert_3.0.7_0.2.3_397295
 * Purchase ID: z5YXD3ukNeCswAIzzfleVbg4dF1tD99hcVluCaOu0k
 * Generated:   2012-10-10 10:37:37
 * File path:   app/code/local/AdjustWare/Cartalert/controllers/Adminhtml/HistoryController.php
 * Copyright:   (c) 2012 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    CVCQwapRMrrpNWBS('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();
Пример #2
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 22/05/12
 * Package:     AdjustWare_Cartalert_3.0.7_0.2.3_397295
 * Purchase ID: z5YXD3ukNeCswAIzzfleVbg4dF1tD99hcVluCaOu0k
 * Generated:   2012-10-10 10:37:37
 * File path:   app/code/local/AdjustWare/Cartalert/Model/Cartalert.php
 * Copyright:   (c) 2012 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    CVCQwapRMrrpNWBS('600d052c5cf075cb6de50984d647848a');
    /**
     * Cartalert module observer
     *
     * @author Adjustware
     */
    class AdjustWare_Cartalert_Model_Cartalert extends Mage_Core_Model_Abstract
    {
        public function _construct()
        {
            parent::_construct();
            $this->_init('adjcartalert/cartalert');
        }
        public function generate($now)
        {
            return $this->getResource()->generate($now);
        }
        public function preprocess($store = null)
        {
            if ($this->getIsPreprocessed()) {
Пример #3
0
<?php

/**
 * Product:     Abandoned Carts Alerts Pro for 1.3.x-1.7.0.0 - 22/05/12
 * Package:     AdjustWare_Cartalert_3.0.7_0.2.3_397295
 * Purchase ID: z5YXD3ukNeCswAIzzfleVbg4dF1tD99hcVluCaOu0k
 * Generated:   2012-10-10 10:37:37
 * File path:   app/code/local/AdjustWare/Cartalert/Block/Adminhtml/Cartalert/Edit/Form.php
 * Copyright:   (c) 2012 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) {
    CVCQwapRMrrpNWBS('90480cbf1a6df13d436368743be990c4');
    class AdjustWare_Cartalert_Block_Adminhtml_Cartalert_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
    {
        protected function _prepareForm()
        {
            $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))), 'method' => 'post'));
            $form->setUseContainer(true);
            $this->setForm($form);
            $hlp = Mage::helper('adjcartalert');
            $fldInfo = $form->addFieldset('adjcartalert_info', array('legend' => $hlp->__('Alert Variables')));
            $fldInfo->addField('store_id', 'select', array('label' => $hlp->__('Store View'), 'class' => 'required-entry', 'required' => true, 'name' => 'store_id', 'values' => Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm()));
            $fldInfo->addField('follow_up', 'select', array('label' => $hlp->__('Follow Up'), 'name' => 'follow_up', 'options' => array('first' => $hlp->__('First'), 'second' => $hlp->__('Second'), 'third' => $hlp->__('Third'))));
            $fldInfo->addField('sheduled_at', 'date', array('label' => $hlp->__('Alert Will Be Sent On'), 'image' => $this->getSkinUrl('images/grid-cal.gif'), 'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'name' => 'sheduled_at'));
            $fldInfo->addField('customer_email', 'text', array('label' => $hlp->__('Customer E-mail'), 'class' => 'required-entry validate-email', 'required' => true, 'name' => 'customer_email'));
            $fldInfo->addField('customer_fname', 'text', array('label' => $hlp->__('Customer First Name'), 'class' => 'required-entry', 'required' => true, 'name' => 'customer_fname'));
            $fldInfo->addField('customer_lname', 'text', array('label' => $hlp->__('Customer Last Name'), 'name' => 'customer_lname'));
            $fldInfo->addField('products', 'textarea', array('label' => $hlp->__('Products'), 'class' => 'required-entry', 'required' => true, 'name' => 'products', 'style' => 'width:35em;height:15em;'));
            $fldInfo->addField('is_preprocessed', 'hidden', array('name' => 'is_preprocessed', 'value' => 1));
            if (Mage::registry('cartalert_data')) {
                $form->setValues(Mage::registry('cartalert_data')->getData());