<?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/Quotestat.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) { RjaaohZOQDhmQRUq('f3baf73fdeeed149b49927a5ba7c6407'); class AdjustWare_Cartalert_Model_Quotestat extends Mage_Core_Model_Abstract { protected $_followupArray = array('first' => 1, 'second' => 2, 'third' => 3, '' => 0); public function _construct() { parent::_construct(); $this->_init('adjcartalert/quotestat'); } public function onOrderCreate($observer) { $order = $observer->getEvent()->getOrder(); $this->load($order->getQuoteId(), 'quote_id'); if ($this->getId() && $this->getRecoveryDate()) { $this->setOrderDate($order->getCreatedAt()); $this->setOrderPrice($order->getBaseGrandTotal()); $items = array(); foreach ($order->getAllItems() as $item) { if ($item->getProductType() == 'simple') { $items[$item->getProductId()] = $item->getQtyOrdered();
<?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/Quotestat.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) { RjaaohZOQDhmQRUq('84b6da9e853f1e73bb5ed47bd9be543d'); class AdjustWare_Cartalert_Model_Mysql4_Quotestat extends Mage_Core_Model_Mysql4_Abstract { public function _construct() { $this->_init('adjcartalert/quotestat', 'id'); } } }
<?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/RecoverController.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Cartalert')) { RjaaohZOQDhmQRUq('ad658350bbd2813c585b5fb83842c2ad'); class AdjustWare_Cartalert_RecoverController extends Mage_Core_Controller_Front_Action { public function cartAction() { $code = (string) $this->getRequest()->getParam('code'); $id = (int) $this->getRequest()->getParam('id'); $history = Mage::getModel('adjcartalert/history')->load($id); if (!$history->getId() || $history->getRecoverCode() != $code) { $this->_redirect('/'); return; } $s = Mage::getSingleton('customer/session'); if ($s->isLoggedIn()) { if ($history->getCustomerId() == $s->getCustomerId()) { $this->redirectToCart($history); return; } else { $s->logout(); }