Pricing policies
The Commerce Engine encompasses extensible services that enable you to customize commerce functionality.
Note
Do not extend or inherit from out-of-the-box policies; instead, create your own. You can change the values in a policy by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined and then re-running Bootstrap.
The following policies can be configured through the Pricing plug-in.
Policy | Description | Properties / Default Values |
---|---|---|
| Provides the ability to specify standard price policies. It applies in the Commerce Shops service. The following sample shows the | ShouldRoundPriceCalc / true RoundDigits / 2 MidPointRoundUp / true MaxPriceCardNameLength / 30 MaxPriceBookNameLength / 30 MinimumPrice / 0 MinimumPricingQuantity / 0 |
| Defines the names of the pricing entity view actions. | AddPriceBook / "AddPriceBook" EditPriceBook / "EditPriceBook" AssociateCatalog / "AssociateCatalog" DisassociateCatalog / "DisassociateCatalog" AddPriceCard / "AddPriceCard" EditPriceCard / "EditPriceCard" DeletePriceCard / "DeletePriceCard" DuplicatePriceCard / "DuplicatePriceCard" AddPriceSnapshot / "AddPriceSnapshot" EditPriceSnapshot / "EditPriceSnapshot" RemovePriceSnapshot / "RemovePriceSnapshot" RequestSnapshotApproval / "RequestSnapshotApproval" RejectSnapshot / "RejectSnapshot" ApproveSnapshot / "ApproveSnapshot" RetractSnapshot / "RetractSnapshot" AddCurrency / "AddCurrency" EditCurrency / "EditCurrency" RemoveCurrency / "RemoveCurrency" SelectCurrency / "SelectCurrency" |
| Defines the names of the pricing transient and entity indexes lists. List Name Default value PriceBookCards PriceBooks-{0}-PriceCards | PriceBookCards / "PriceBooks-{0}-PriceCards" |
| Defines the names of the pricing entity views | PricingDashboard / "PricingDashboard" Master / "Master" Summary / "Summary" Details / "Details" PriceBookCards / "PriceBookCards" PriceBooks / "PriceBooks" PriceBookCatalogs / "PriceBookCatalogs" PriceCardSnapshots / "PriceCardSnapshots" PriceSnapshotDetails / "PriceSnapshotDetails" SetSnapshotApprovalStatus / "SetSnapshotApprovalStatus" PriceSnapshotTiers / "PriceSnapshotTiers" PriceTierDetails / "PriceTierDetails" Pricing / "Pricing" PriceRow / "PriceRow" PriceCell / "PriceCell" |
| The { "@odata.type": "#Sitecore.Commerce.Plugin.Pricing.ListPricingPolicy", "PolicyId": "db13def722dc488f86a0673b83eb85e8", "Models": [], "RuleSet": null, "Prices": [ { "CurrencyCode": "USD", "Amount": 44.75 }, { "CurrencyCode": "CAD", "Amount": 45.75 } ] } | |
| The { "@odata.type": "#Sitecore.Commerce.Plugin.Pricing.OnSalePolicy", "PolicyId": "b70814f6f15b4a0aaeea74e83af63c20", "Models": [], "RuleSet": null, "OnSale": true, "ShowInCart": false, "CartDisplay": "text" } | |
| The { "@odata.type": "#Sitecore.Commerce.Plugin.Pricing.PriceCardPolicy", "PolicyId": "2f770e056b9149088c8f57a84d9343ed", "Models": [], "RuleSet": null, "PriceCardName": "HabitatPriceCard" } | |
| The { "@odata.type": "#Sitecore.Commerce.Plugin.Pricing.PurchaseOptionMoneyPolicy", "PolicyId": "b70814f6f15b4a0aaeea74e83af63c20", "Models": [], "RuleSet": null, "SellPrice": { "CurrencyCode": "USD", "Amount": 10 } } |