Prestashop 1.7 订单 Class:如何更新产品列表、重新计算运费和增值税?

Prestashop 1.7 Order Class: How to update the products list, recompute the shipping cost, and the VAT?

我必须更新现有订单。此更新包括 adding/removing/updating 产品(例如,更新产品包括更改数量)、重新计算运费和增值税。

OrderProduct类中,我没有找到任何方法来做。我怎样才能实现我的目标?

编辑:

在 controllers/admin/AdminOrderController 中检查这个函数 ajaxProcessEditProductOnOrder

您应该在此基础上创建一个新函数,或者您可以使用现有函数。