Class Mage_CatalogRule_Model_Observer

Description

Catalog Price rules observer model

Located in /CatalogRule/Model/Observer.php (line 30)


	
			
Variable Summary
mixed $_rulePrices
Method Summary
Variables
mixed $_rulePrices = array() (line 32)
  • access: protected
Methods
applyAllRules (line 71)

Apply all price rules for current date.

Handle cataolg_product_import_after event

  • access: public
Mage_CatalogRule_Model_Observer applyAllRules (Varien_Event_Observer $observer)
  • Varien_Event_Observer $observer
applyAllRulesOnProduct (line 40)

Apply all catalog price rules for specific product

  • access: public
Mage_CatalogRule_Model_Observer applyAllRulesOnProduct (Varien_Event_Observer $observer)
  • Varien_Event_Observer $observer
catalogAttributeDeleteAfter (line 305)

After delete attribute check rules that contains deleted attribute

  • access: public
Mage_CatalogRule_Model_Observer catalogAttributeDeleteAfter ( $observer)
  • Varien_Event_Observer $observer
catalogAttributeSaveAfter (line 289)

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

  • access: public
Mage_CatalogRule_Model_Observer catalogAttributeSaveAfter ( $observer)
  • Varien_Event_Observer $observer
catalogProductTypeConfigurablePrice (line 169)

Calculate price using catalog price rules of configurable product

  • access: public
Mage_CatalogRule_Model_Observer catalogProductTypeConfigurablePrice ( $observer)
  • Varien_Event_Observer $observer
dailyCatalogUpdate (line 193)

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

  • access: public
Mage_CatalogRule_Model_Observer dailyCatalogUpdate (Varien_Event_Observer $observer)
  • Varien_Event_Observer $observer
flushPriceCache (line 199)
  • access: public
void flushPriceCache ()
prepareCatalogProductCollectionPrices (line 315)
  • access: public
void prepareCatalogProductCollectionPrices ( $observer)
  • Varien_Event_Observer $observer
prepareCatalogProductPriceIndexTable (line 210)

Calculate minimal final price with catalog rule price

  • access: public
Mage_CatalogRule_Model_Observer prepareCatalogProductPriceIndexTable ( $observer)
  • Varien_Event_Observer $observer
processAdminFinalPrice (line 128)

Apply catalog price rules to product in admin

  • access: public
Mage_CatalogRule_Model_Observer processAdminFinalPrice ( $observer)
  • $observer
processFrontFinalPrice (line 84)

Apply catalog price rules to product on frontend

  • access: public
Mage_CatalogRule_Model_Observer processFrontFinalPrice ( $observer)
  • $observer
_checkCatalogRulesAvailability (line 235)

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_CatalogRule_Model_Observer _checkCatalogRulesAvailability (string $attributeCode)
  • string $attributeCode
_removeAttributeFromConditions (line 267)

Remove catalog attribute condition by attribute code from rule conditions

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

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