ExecuteUpsell Business Service Method
This method is part of Product UpSell CrossSell Service.
Usage
ExecuteUpsell Business Service method is triggered when the user clicks Accept for an upsell recommendation.
This method changes the product on the current line item to the recommended product. Then, depending whether the current product and the recommended product are simple, bundle, or customizable products, it performs the actions described in the following table.
Convert from | Convert to Simple Product | Convert to Bundle Product | Convert to Customizable Product |
---|---|---|---|
Simple Product |
None. |
Generates subcomponents. |
Generates default components and attributes. |
Bundle Product |
Deletes subcomponents. |
Deletes original subcomponents that are not in the new bundle. Adds any missing subcomponents. |
Deletes original subcomponents of bundle. Generates default subcomponents and attributes of customizable product. |
Customizable Product |
Deletes all subcomponents and attributes. |
Deletes subcomponents and attributes of customizable product. Generates subcomponents of bundle. |
Prompts user to start Configurator. |
When one compound product is changed to another, the user must start Configurator to generate missing components and attributes, to delete disallowed components and attributes, and to ensure a valid configuration. As much of the original configuration as possible is retained.
Input
If the business service is called from UMS, then Related Product Id is a required property under the child property set Payload.
If the business service is called from anywhere else, then Related Product Id is the only required property.
Output
None.