The pricing method CartItem.priceCartForCheckout
handles both single and split shipping pricing. There is no change to the API for the split shipping.
As you create your widgets, you should consider when pricing is called. For example, you should call pricing when:
The Quantity field changes.
The Shipping Method field changes.
A shipping group relationship is removed (clicking the X button in the sample UI shown in this section).
The priceCartForCheckout
method uses the isSplitShipping
property to determine which pricing request to make. The priceCartForCheckout
method will only make a pricing request if the split shipping form is complete and valid.