Class Mage_SalesRule_Model_Validator
SalesRule Validator Model
Allows dispatching before and after events for each controller action
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_SalesRule_Model_Validator
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/Validator.php
public
|
|
protected
|
|
protected
|
#
_getAddress(
Get address object which can be used for discount calculation |
protected
boolean
|
#
_canProcessRule(
Check if rule can be applied for specific address/quote/customer |
public
|
#
processFreeShipping(
Quote item free shipping ability check This process not affect information about applied rules, coupon code etc. This information will be added during discount amounts processing |
public
|
|
public
|
|
public
|
#
processShippingAmount(
Apply discounts to shipping amount |
public
array
|
|
public
|
#
setCartFixedRuleUsedForAddress( integer $ruleId, integer $itemId )
Set information about usage cart fixed rule by quote address |
public
integer|null
|
#
getCartFixedRuleUsedForAddress( integer $ruleId )
Retrieve information about usage cart fixed rule by quote address |
public
|
#
initTotals( mixed $items,
Calculate quote totals for each rule and save results |
protected
|
#
_maintainAddressCouponCode(
Set coupon code to address if $rule contains validated coupon |
protected
|
#
_addDiscountDescription(
Add rule discount description label to address object |
protected
float
|
|
protected
float
|
|
protected
float
|
|
protected
float
|
#
_getItemBaseOriginalPrice(
Return item base original price |
protected
integer
|
#
_getItemQty(
Return discount item qty |
public
|
#
prepareDescription(
Convert address discount description array to string |
protected
|
$_rules |
|
#
Rule source collection |
protected
array
|
$_roundingDeltas | array() |
|
protected
array
|
$_baseRoundingDeltas | array() |
|
protected
boolean
|
$_isFirstTimeResetRun | true |
#
Defines if method Mage_SalesRule_Model_Validator::reset() wasn't called Used for clearing applied rule ids in Quote and in Address |
protected
array
|
$_rulesItemTotals | array() |
#
Information about item totals for rules. |
protected
array
|
$_cartFixedRuleUsedForAddress | array() |
#
Store information about addresses which cart fixed rule applied for |
$_cacheTag,
$_dataSaveAllowed,
$_eventObject,
$_eventPrefix,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|