Merge Price Plans
In Spring '23 and later, Standard Digital Commerce supports only the DefaultPricingPlan for the Cart Based APIs and the Standard Digital Commerce APIs. Merge the price plans only if you enabled Standard Digital Commerce in the Winter '23 release and are upgrading to Spring '23.
If you enabled Standard Digital Commerce in Winter '23, merge StandardPricingPlan and DefaultPricingPlan. To merge the pricing plans, either execute the merge script or merge the custom fields in the Vlocity Product Console.
To execute the merge script, deploy the PricingPlanMergeService class from the telco_unmanaged repo to the org and execute the below snippet. Find and download the PricingPlanMergeService class from this zip file.
The table lists the scenarios and the merging strategy used.
Scenario Merging Strategy
StandardPricingPlan has no changes.
StandardPricingPlan is deactivated and DefaultPricingPlan is retained. Default steps are rearranged or removed only from StandardPricingPlan. StandardPricingPlan is deactivated and DefaultPricingPlan is retained. Custom steps are added to StandardPricingPlan.
The script checks whether the custom steps are available in DefaultPricingPlan.
If yes, StandardPricingPlan is deactivated and DefaultPricingPlan is retained.
If no, StandardPricingPlan is deactivated and the missing custom steps are added in the same sequence to DefaultPricingPlan.
The order of the custom and default steps in StandardPricingPlan is different from DefaultPricinPlan. StandardPricing Plan is deactivated and DefaultPricing Plan is retained.
To merge the custom fields in StandardPricingPlan to DefaultPricingPlan, deactivate StandardPricingPlan in the Vlocity Product Console. Add the custom steps available only in StandardPricingPlan to DefaultPricingPlan.
When adding a custom step, add the StandardDCFlow parameter and set the value to true.