Class Mage_CatalogRule_Model_Observer
Catalog Price rules observer model
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/CatalogRule/Model/Observer.php
public
|
#
applyAllRulesOnProduct( Varien_Event_Observer $observer )
Apply all catalog price rules for specific product |
public
|
#
applyAllRules( Varien_Event_Observer $observer )
Apply all price rules for current date. Handle cataolg_product_import_after event |
public
|
#
processFrontFinalPrice( Varien_Event_Observer $observer )
Apply catalog price rules to product on frontend |
public
|
#
processAdminFinalPrice( Varien_Event_Observer $observer )
Apply catalog price rules to product in admin |
public
|
#
catalogProductTypeConfigurablePrice( Varien_Event_Observer $observer )
Calculate price using catalog price rules of configurable product |
public
|
#
dailyCatalogUpdate( Varien_Event_Observer $observer )
Daily update catalog price rule by cron Update include interval 3 days - current day - 1 days before + 1 days after This method is called from cron process, cron is working in UTC time and we should generate data for interval -1 day ... +1 day |
public
|
|
public
|
#
prepareCatalogProductPriceIndexTable( Varien_Event_Observer $observer )
Calculate minimal final price with catalog rule price |
protected
|
#
_checkCatalogRulesAvailability( string $attributeCode )
Check rules that contains affected attribute If rules were found they will be set to inactive and notice will be add to admin session |
protected
|
#
_removeAttributeFromConditions(
Remove catalog attribute condition by attribute code from rule conditions |
public
|
#
catalogAttributeSaveAfter( Varien_Event_Observer $observer )
After save attribute if it is not used for promo rules already check rules for containing this attribute |
public
|
#
catalogAttributeDeleteAfter( Varien_Event_Observer $observer )
After delete attribute check rules that contains deleted attribute |
public
|
|
public
|
#
createCatalogRulesRelations( Varien_Event_Observer $observer )
Create catalog rule relations for imported products |
protected
array
|
$_rulePrices | array() |
#
Store calculated catalog rules prices for products Prices collected per website, customer group, date and product |