Class Mage_SalesRule_Model_Rule
Shopping Cart Rule data model
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_Rule_Model_Abstract
- Mage_SalesRule_Model_Rule
Package: Mage\SalesRule
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/SalesRule/Model/Rule.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/SalesRule/Model/Rule.php
protected
|
|
public static
Mage_SalesRule_Model_Coupon_MassgneratorInterface
|
#
getCouponMassGenerator( )
Returns code mass generator instance for auto generated specific coupons |
protected
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
#
setCouponCodeGenerator(
Set code generator instance for auto generated coupons |
public
|
|
public
array
|
|
public
string|boolean
|
#
getStoreLabel(
Get Rule label by specified store |
public
array
|
|
public
array
|
|
public
array
|
|
public
|
#
acquireCoupon( boolean $saveNewlyCreated = true, integer $saveAttemptCount = 10 )
Acquire coupon instance |
public
boolean
|
#
hasIsValidForAddress(
Check cached validation result for specific address |
public
|
#
setIsValidForAddress(
Set validation result for specific address to results cache |
public
boolean
|
#
getIsValidForAddress(
Get cached validation result for specific address |
private
string
|
integer |
FREE_SHIPPING_ITEM
|
1 |
#
Free Shipping option "For matching items only" |
integer |
FREE_SHIPPING_ADDRESS
|
2 |
#
Free Shipping option "For shipment with matching items" |
integer |
COUPON_TYPE_NO_COUPON
|
1 |
#
Coupon types |
integer |
COUPON_TYPE_SPECIFIC
|
2 |
|
integer |
COUPON_TYPE_AUTO
|
3 |
|
string |
TO_PERCENT_ACTION
|
'to_percent' |
#
Rule type actions |
string |
BY_PERCENT_ACTION
|
'by_percent' |
|
string |
TO_FIXED_ACTION
|
'to_fixed' |
|
string |
BY_FIXED_ACTION
|
'by_fixed' |
|
string |
CART_FIXED_ACTION
|
'cart_fixed' |
|
string |
BUY_X_GET_Y_ACTION
|
'buy_x_get_y' |
protected static
|
$_couponCodeGenerator |
|
#
Store coupon code generator instance |
protected
string
|
$_eventPrefix | 'salesrule_rule' |
#
Prefix of model events names |
protected
string
|
$_eventObject | 'rule' |
#
Parameter name in event |
protected
|
$_primaryCoupon |
|
#
Rule's primary coupon |
protected
array
|
$_coupons |
|
#
Rule's subordinate coupons |
protected
array
|
$_couponTypes |
|
#
Coupon types cache for lazy getter |
protected
array
|
$_validatedAddresses | array() |
#
Store already validated addresses and validation results |
$_actions,
$_conditions,
$_form,
$_isDeleteable,
$_isReadonly
|
$_cacheTag,
$_dataSaveAllowed,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|