<?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/FrontSalesRuleRuleConditionCombine.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) { DYBMggDUPmDaTyIP('f711d766f8f52210977cd038e4521ffb'); /** * @copyright Copyright (c) 2009 AITOC, Inc. */ class Aitoc_Aitloyalty_Model_Rewrite_FrontSalesRuleRuleConditionCombine extends Mage_SalesRule_Model_Rule_Condition_Combine { public function __construct() { parent::__construct(); } public function getNewChildSelectOptions() { $addressCondition = Mage::getModel('salesrule/rule_condition_address'); $addressAttributes = $addressCondition->loadAttributeOptions()->getAttributeOption(); $attributes = array(); foreach ($addressAttributes as $code => $label) { $attributes[] = array('value' => 'salesrule/rule_condition_address|' . $code, 'label' => $label); } // $pAttributes = array( // array(
<?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/Block/Rewrite/AdminhtmlPromoQuoteEditTabs.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) { DYBMggDUPmDaTyIP('07414f792495b4a4b9dbf65e79504e4a'); /** * @copyright Copyright (c) 2009 AITOC, Inc. */ class Aitoc_Aitloyalty_Block_Rewrite_AdminhtmlPromoQuoteEditTabs extends Mage_Adminhtml_Block_Promo_Quote_Edit_Tabs { protected function _beforeToHtml() { $this->addTab('main_section', array('label' => Mage::helper('salesrule')->__('Rule Information'), 'content' => $this->getLayout()->createBlock('adminhtml/promo_quote_edit_tab_main')->toHtml(), 'active' => true)); $this->addTab('conditions_section', array('label' => Mage::helper('salesrule')->__('Conditions'), 'content' => $this->getLayout()->createBlock('adminhtml/promo_quote_edit_tab_conditions')->toHtml())); $this->addTab('actions_section', array('label' => Mage::helper('salesrule')->__('Actions'), 'content' => $this->getLayout()->createBlock('adminhtml/promo_quote_edit_tab_actions')->toHtml())); $this->addTab('aitoc_display_section', array('label' => Mage::helper('salesrule')->__('Display Options'), 'content' => $this->getLayout()->createBlock('aitloyalty/quote_options')->toHtml())); return Mage_Adminhtml_Block_Widget_Tabs::_beforeToHtml(); } } }
<?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/FrontSalesOrderPdfInvoice.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) { DYBMggDUPmDaTyIP('f1a89a255dfdb0c5500008d04a284fb9'); /** * @copyright Copyright (c) 2009 AITOC, Inc. */ class Aitoc_Aitloyalty_Model_Rewrite_FrontSalesOrderPdfInvoice extends Mage_Sales_Model_Order_Pdf_Invoice { protected function insertTotals($page, $source) { $order = $source->getOrder(); // $font = $this->_setFontBold($page); $totals = $this->_getTotalsList($source); $lineBlock = array('lines' => array(), 'height' => 15); foreach ($totals as $total) { $amount = $source->getDataUsingMethod($total['source_field']); $displayZero = isset($total['display_zero']) ? $total['display_zero'] : 0; if ($amount != 0 || $displayZero) { // AITOC modifications if ('discount_amount' == $total['source_field']) { $amount = 0 - $amount; if ($amount > 0) {