computeActions - Promotion Module Reference
This documentation provides a reference to the computeActions
method. This belongs to the Promotion Module.
This method provides the actions to perform on a cart based on the specified promotions and context.
Example
Parameters
promotionCodesToApply
string[]RequiredThe promotion codes to be applied on the cart.
The items and shipping methods of the cart.
options
Record<string, any>Any relevant options that may change how the actions are computed.
Returns
The list of computed actions to be applied on the cart.
Was this section helpful?