808 views
In this article, we highlight the expected pricing outcomes through decision tables.
For a high-level look at the important aspects of the business logic that determine list and sell prices, see Pricing Calculation Logic – Part 1.
Pricing Transparency (Advanced)
The following decision tables can be utilised to help understand and troubleshoot pricing outcomes.
Important notes:
- The business logic applies to the OOTB Sitecore Commerce solution.
- Price cards are resolved by the price book associated to the catalog.
- These findings do not take into consideration promotions, specifically those that affect sellable item/variant sell price.
Sellable Item Price Calculation
These messages will be applied to the MessagesComponent of a SellableItem entity.
In simplying the table, I took a few shortcuts to note:
- ‘Valid snapshot’ conditions assume a price card has been resolved by name or tag. Refer to the previous flow diagrams in Pricing Calculation Logic – Part 1 to understand the more complex conditions.
- For ‘Has variants?’, ‘Calculate item list price in depth?’, and ‘Has list price for currency?’ conditions, the Rules that state a group ‘N’. However, I actually mean that some, but not all, of these conditions can be true.
Variant Price Calculation
These messages will be applied to the MessagesComponent of a ItemVariationComponent within the SellableItem entity.
In simplying the table, I took a few shortcuts to note:
- ‘Valid snapshot’ conditions assume a price card has been resolved by name or tag. Refer to the previous flow diagrams in Pricing Calculation Logic – Part 1 to understand the more complex conditions.
Cart Item Calculation (Sellable Item)
These messages will be applied to the MessagesComponent of a sellable item CartLineComponent.
Messages will be applied in the following order:
- Sellable Item Price Calculation
- Cart Item Calculation (Sellable Item)
Cart Item Calculation (Variant)
These messages will be applied to the MessagesComponent of a variant CartLineComponent.
Messages will be applied in the following order:
- Sellable Item Price Calculation
- Variant Price Calculation
- Cart Item Calculation (Variant)