<?php /** * Product: Loyalty Program for Enterprise Edition * Package: Aitoc_Aitloyalty_10.0.10_574534 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C * Generated: 2013-05-13 06:36:55 * File path: app/code/local/Aitoc/Aitloyalty/Model/Cart/Observer.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) { aYjBeeaROgakQMTO('a2d6f8f76c71a18f27545811679ee811'); class Aitoc_Aitloyalty_Model_Cart_Observer extends Mage_Core_Model_Abstract { public function onCoreLocaleSetLocale($observer) { if (!Mage::registry('aitpagecache_check_14') && Mage::getConfig()->getNode('modules/Aitoc_Aitpagecache/active') === 'true') { if (file_exists(Mage::getBaseDir('magentobooster') . DS . 'use_cache.ser')) { Mage::register('aitpagecache_check_14', 1); } elseif (file_exists(Mage::getBaseDir('app/etc') . DS . 'use_cache.ser')) { Mage::register('aitpagecache_check_13', 1); } } } } }
<?php /** * Product: Loyalty Program for Enterprise Edition * Package: Aitoc_Aitloyalty_10.0.10_574534 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C * Generated: 2013-05-13 06:36:55 * File path: app/code/local/Aitoc/Aitloyalty/Model/Rewrite/Front/SalesRule/Quote/Discount.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) { aYjBeeaROgakQMTO('cd142042087a066451bec2105973e947'); /** * * @copyright Copyright (c) 2011 AITOC, Inc. * @package Aitoc_Aitloyalty * @author lyskovets */ class Aitoc_Aitloyalty_Model_Rewrite_Front_SalesRule_Quote_Discount extends Mage_SalesRule_Model_Quote_Discount { /** * Add discount/surcharge total information to address * * @param Mage_Sales_Model_Quote_Address $address * @return Mage_SalesRule_Model_Quote_Discount */ public function fetch(Mage_Sales_Model_Quote_Address $address) { $amount = $address->getDiscountAmount(); $part = Mage::helper('aitloyalty/discount')->getTitlePart($amount); if ($amount != 0) {
<?php /** * Product: Loyalty Program for Enterprise Edition * Package: Aitoc_Aitloyalty_10.0.10_574534 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C * Generated: 2013-05-13 06:36:55 * File path: app/code/local/Aitoc/Aitloyalty/Model/Rule/Condition/Customer/Combine.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) { aYjBeeaROgakQMTO('fb8826776aa413d3189d1e47fc8c7d9d'); /** * @copyright Copyright (c) 2009 AITOC, Inc. */ class Aitoc_Aitloyalty_Model_Rule_Condition_Customer_Combine extends Mage_Rule_Model_Condition_Combine { public function __construct() { parent::__construct(); $this->setType('Aitoc_Aitloyalty_Model_Rule_Condition_Customer_Combine'); } public function isModuleEnabled($moduleName = '') { $aModuleList = Mage::getModel('aitsys/aitsys')->getAitocModuleList(); $data = array('is_installed' => false, 'is_enabled' => false); $aModuleList = Mage::getModel('aitsys/aitsys')->getAitocModuleList(); if ($aModuleList) { foreach ($aModuleList as $module) { if ($moduleName == $module['key']) { $data = array('is_installed' => (bool) $module->isAvailable(), 'is_enabled' => (bool) $module['value']);