All Release Notes
Added support for changing Line Items' order on Carts
18 July 2024
Composable Commerce
HTTP API
Enhancement
CartsGraphQL
You can now change the order of Line Items in a Cart. This enhancement helps Customers identify which Line Items belong together. Previously, the order of Line Items in a Cart was based on the sequence in which the Line Items were added to the Cart.
Changes:
- [API] Added
changeLineItemsOrderupdate action to the Carts and My Carts APIs. - [GraphQL API] Added
ChangeCartLineItemsOrdertype to the GraphQL schema. - [GraphQL API] Added
changeLineItemsOrderinput field to theCartUpdateActiontype.
We made the following addition to the GraphQL SDL:
extend input CartUpdateAction {changeLineItemsOrder: ChangeCartLineItemsOrder}input ChangeCartLineItemsOrder {lineItemOrder: String!}