Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想覆盖 PrestaShop 核心文件的库存更新功能。我不知道它在文件中的位置。
基本上,我想在产品库存更新时调用外部 API。(仅当库存更新时,例如购买产品或通过后端手动更新产品库存时)。
我认为你不需要覆盖任何东西。最好创建一个模块并使用可用的钩子来管理您的需求,例如前端中的 ,actionObjectOrderAddAfter和, , 。actionOrderStatusPostUpdateactionOrderStatusUpdateactionObjectProductAddAfteractionObjectProductDeleteAfteractionObjectProductUpdateAfter
actionObjectOrderAddAfter
actionOrderStatusPostUpdate
actionOrderStatusUpdate
actionObjectProductAddAfter
actionObjectProductDeleteAfter
actionObjectProductUpdateAfter