SaleAdjust
Use this component to apply a sale price to an item.
This component is included for backward compatibility only. It has been replaced by the OrderDiscount component.
Intended use: Order Processing pipeline, Item Adjust Price stage.
Configuration Values
None.
Values Read
The SaleAdjust component reads the following values from the indicated dictionaries.
Key | Dictionary | Description |
---|---|---|
item._product_sale_start |
Order | Optional. The date the sale begins. |
item._product_sale_end |
Order | Optional. The date the sale ends. |
item._product_sale_price |
Order | The sale price of the item. |
Values Written
The SaleAdjust component writes the following values to the Order dictionary.
Key | Description |
---|---|
item._iadjust_currentprice |
The current price of the item with the promotion applied. |
Remarks
The SaleAdjust component allows you to apply the sale price of an item. If the item is on sale, and if its _iadjust
_currentprice
key has not been initialized by a component that was previous run, the SaleAdjust component initializes _iadjust_currentprice
key to the value stored in item._product_sale_price
key.
The SaleAdjust component determines if an item is on sale by comparing the current date to the date values specified for the_product_sale_start
key and the _product_sale_end
key of the item.
The SaleAdjust component requires that the various sale values exist in the product table of the site database. Otherwise, the OrderForm object will not contain the data needed to calculate the adjusted price of the item (_iadjust_currentprice
), and an error message will be generated. The product sale keys are set by the QueryProdInfoADO component in the Product Information stage.
Because the _product_sale_start
and _product_sale_end
keys are actually date-time pairs that specify midnight, the _product_sale_end
key excludes the date specified. Thus, if you want the last day of a promotion to be 3/31, be sure to specify that the promotion ends on 4/1.
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.