Class Mage_SalesRule_Model_Observer

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /SalesRule/Model/Observer.php (line 28)


	
			
Variable Summary
mixed $_validator
Method Summary
Variables
mixed $_validator (line 30)
  • access: protected
Methods
addProductAttributes (line 227)

Append sales rule product attributes to select by quote item collection

  • access: public
Mage_SalesRule_Model_Observer addProductAttributes ( $observer)
  • Varien_Event_Observer $observer
aggregateSalesReportCouponsData (line 123)

Refresh sales coupons report statistics for last day

  • access: public
Mage_SalesRule_Model_Observer aggregateSalesReportCouponsData (Mage_Cron_Model_Schedule $schedule)
catalogAttributeDeleteAfter (line 211)

After delete attribute check rules that contains deleted attribute If rules was found they will seted to inactive and added notice to admin session

  • access: public
Mage_SalesRule_Model_Observer catalogAttributeDeleteAfter ( $observer)
  • Varien_Event_Observer $observer
catalogAttributeSaveAfter (line 194)

After save attribute if it is not used for promo rules already check rules for containing this attribute

  • access: public
Mage_SalesRule_Model_Observer catalogAttributeSaveAfter ( $observer)
  • Varien_Event_Observer $observer
getValidator (line 39)

Get quote item validator/processor object

  • deprecated:
  • access: public
Mage_SalesRule_Model_Validator getValidator (Varien_Event $event)
  • Varien_Event $event
sales_order_afterPlace (line 60)
  • access: public
void sales_order_afterPlace ( $observer)
  • $observer
sales_quote_address_discount_item (line 54)

Process quote item (apply discount to item)

  • deprecated: process call movet to total model
  • access: public
void sales_quote_address_discount_item (Varien_Event_Observer $observer)
  • Varien_Event_Observer $observer
_checkSalesRulesAvailability (line 140)

Check rules that contains affected attribute If rules were found they will be set to inactive and notice will be add to admin session

  • access: protected
Mage_SalesRule_Model_Observer _checkSalesRulesAvailability (string $attributeCode)
  • string $attributeCode
_removeAttributeFromConditions (line 172)

Remove catalog attribute condition by attribute code from rule conditions

  • access: protected
void _removeAttributeFromConditions (Mage_Rule_Model_Condition_Combine $combine, string $attributeCode)

Documentation generated on Fri, 11 Feb 2011 17:09:03 +0200 by phpDocumentor 1.4.3