CartUpdateItemResource and CartUpdateItemsResource should use \Drupal\commerce_cart\CartManager to update any order items for an order.

Created on 20 March 2025, 17 days ago

Updating order items for a order without calling \Drupal\commerce_cart\CartManager::updateOrderItem will miss some important task in commerce_cart module, for example:

1. CartOrderItemUpdateEvent will not be trigered.
2. CheckoutFlow and CheckoutFlow steps will not be reset.
3. If some custom module overide the @commerce_cart.cart_manager service to provide additional code to CartManager::updateOrderItem, it will not working.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇨🇳China 司南

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024