Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_SalesRule_Exception
  • Mage_SalesRule_Helper_Coupon
  • Mage_SalesRule_Helper_Data
  • Mage_SalesRule_Model_Coupon
  • Mage_SalesRule_Model_Coupon_Codegenerator
  • Mage_SalesRule_Model_Coupon_Massgenerator
  • Mage_SalesRule_Model_Mysql4_Coupon
  • Mage_SalesRule_Model_Mysql4_Coupon_Collection
  • Mage_SalesRule_Model_Mysql4_Coupon_Usage
  • Mage_SalesRule_Model_Mysql4_Report_Collection
  • Mage_SalesRule_Model_Mysql4_Report_Rule
  • Mage_SalesRule_Model_Mysql4_Report_Updatedat_Collection
  • Mage_SalesRule_Model_Mysql4_Rule
  • Mage_SalesRule_Model_Mysql4_Rule_Collection
  • Mage_SalesRule_Model_Mysql4_Rule_Customer
  • Mage_SalesRule_Model_Mysql4_Rule_Customer_Collection
  • Mage_SalesRule_Model_Mysql4_Rule_Product
  • Mage_SalesRule_Model_Mysql4_Rule_Product_Collection
  • Mage_SalesRule_Model_Observer
  • Mage_SalesRule_Model_Quote_Discount
  • Mage_SalesRule_Model_Quote_Freeshipping
  • Mage_SalesRule_Model_Quote_Nominal_Discount
  • Mage_SalesRule_Model_Resource_Coupon
  • Mage_SalesRule_Model_Resource_Coupon_Collection
  • Mage_SalesRule_Model_Resource_Coupon_Usage
  • Mage_SalesRule_Model_Resource_Report_Collection
  • Mage_SalesRule_Model_Resource_Report_Rule
  • Mage_SalesRule_Model_Resource_Report_Rule_Createdat
  • Mage_SalesRule_Model_Resource_Report_Rule_Updatedat
  • Mage_SalesRule_Model_Resource_Report_Updatedat_Collection
  • Mage_SalesRule_Model_Resource_Rule
  • Mage_SalesRule_Model_Resource_Rule_Collection
  • Mage_SalesRule_Model_Resource_Rule_Customer
  • Mage_SalesRule_Model_Resource_Rule_Customer_Collection
  • Mage_SalesRule_Model_Resource_Rule_Product
  • Mage_SalesRule_Model_Resource_Rule_Product_Collection
  • Mage_SalesRule_Model_Rule
  • Mage_SalesRule_Model_Rule_Action_Collection
  • Mage_SalesRule_Model_Rule_Action_Product
  • Mage_SalesRule_Model_Rule_Condition_Address
  • Mage_SalesRule_Model_Rule_Condition_Combine
  • Mage_SalesRule_Model_Rule_Condition_Product
  • Mage_SalesRule_Model_Rule_Condition_Product_Combine
  • Mage_SalesRule_Model_Rule_Condition_Product_Found
  • Mage_SalesRule_Model_Rule_Condition_Product_Subselect
  • Mage_SalesRule_Model_Rule_Customer
  • Mage_SalesRule_Model_Rule_Product
  • Mage_SalesRule_Model_System_Config_Source_Coupon_Format
  • Mage_SalesRule_Model_Validator

Interfaces

  • Mage_SalesRule_Model_Coupon_CodegeneratorInterface
  • Overview
  • Package
  • Class
  • Tree

Class Mage_SalesRule_Model_Observer

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 license@magentocommerce.com 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.

Package: Mage\SalesRule
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Located at code/core/Mage/SalesRule/Model/Observer.php
Methods summary
public
# sales_order_afterPlace( mixed $observer )
public Mage_SalesRule_Model_Observer
# aggregateSalesReportCouponsData( Mage_Cron_Model_Schedule $schedule )

Refresh sales coupons report statistics for last day

Refresh sales coupons report statistics for last day

Parameters

$schedule
Mage_Cron_Model_Schedule
$schedule

Returns

Mage_SalesRule_Model_Observer
protected Mage_SalesRule_Model_Observer
# _checkSalesRulesAvailability( 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

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

Parameters

$attributeCode
string
$attributeCode

Returns

Mage_SalesRule_Model_Observer
protected
# _removeAttributeFromConditions( Mage_Rule_Model_Condition_Combine $combine, string $attributeCode )

Remove catalog attribute condition by attribute code from rule conditions

Remove catalog attribute condition by attribute code from rule conditions

Parameters

$combine
Mage_Rule_Model_Condition_Combine
$combine
$attributeCode
string
$attributeCode
public Mage_SalesRule_Model_Observer
# catalogAttributeSaveAfter( Varien_Event_Observer $observer )

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

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

Parameters

$observer
Varien_Event_Observer
$observer

Returns

Mage_SalesRule_Model_Observer
public Mage_SalesRule_Model_Observer
# catalogAttributeDeleteAfter( Varien_Event_Observer $observer )

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

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

Parameters

$observer
Varien_Event_Observer
$observer

Returns

Mage_SalesRule_Model_Observer
public Mage_SalesRule_Model_Observer
# addProductAttributes( Varien_Event_Observer $observer )

Append sales rule product attributes to select by quote item collection

Append sales rule product attributes to select by quote item collection

Parameters

$observer
Varien_Event_Observer
$observer

Returns

Mage_SalesRule_Model_Observer
public Mage_SalesRule_Model_Observer
# addSalesRuleNameToOrder( Varien_Event_Observer $observer )

Add coupon's rule name to order data

Add coupon's rule name to order data

Parameters

$observer
Varien_Event_Observer
$observer

Returns

Mage_SalesRule_Model_Observer
Properties summary
protected mixed $_validator
#
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0