Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the best price of the items for which the discount is applicable by comparing the original price with the discounted price.
Syntax
server public static Price GetPromotionPrice(
RetailStoreId _storeId,
ItemId _itemId,
Price _originalPrice)
Run On
Server
Parameters
- _storeId
Type: RetailStoreId Extended Data Type
The location to which the item belongs.
- _itemId
Type: ItemId Extended Data Type
The caller record Item ID.
- _originalPrice
Type: Price Extended Data Type
The original price of the item.
Return Value
Type: Price Extended Data Type
The best price after it applies the store-specific promotion on the original price.
Remarks
This class updates the final price if the promotion price is lower.