<?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/Mysql4/Cartalert.php * Copyright: (c) 2012 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) { wrwCwgphZBBpcZrS('a2c23a8cb79a88a449107e2ee8213041'); /** * Cartalert module observer * * @author Adjustware */ class AdjustWare_Cartalert_Model_Mysql4_Cartalert extends Mage_Core_Model_Mysql4_Abstract { protected $_select; public function _construct() { $this->_init('adjcartalert/cartalert', 'cartalert_id'); } private function _getAbandonedCartsIds($fromDate, $toDate) { $db = $this->_getReadAdapter(); $sql = $db->select()->from(array('q' => $this->getTable('sales/quote')), array('q.entity_id'))->where('q.updated_at > ?', $fromDate)->where('q.updated_at < ?', $toDate)->where('q.is_active=1'); $result = $db->fetchAll($sql); $ids = array(); foreach ($result as $row) {
<?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/History/Edit/Form.php * Copyright: (c) 2012 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) { wrwCwgphZBBpcZrS('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(); } } }