Updating Price for the Smart Cart
This global method updates the prices of the line items after the cart is split.
API | Signature |
---|---|
updatePriceForCart | static Id updatePriceForCart(Id cartId) |
Request Parameter | |||
---|---|---|---|
Name | Type | Required? | Description |
cartID | ID | Yes | The Id of the cart for which you want to update prices of the line item |
Response Parameter | ||
---|---|---|
Field | Type | Description |
jobId | ID | The Id of the batch job executed to update the pricing of the cart |
Code Sample
This sample enables you to update the price of the line items after the cart is split. When the method is executed, the task pending flag is set to true on the cart passed as the parameter. After pricing is calculated for the line items, the flag is set to false.
CODE