0

Does anyone know where the code that reduces the inventory by one on products ordered after an order is completed is located? Ive combed through the checkout folders and cant seem to locate it.

Im assuming its something like:

  1. Order is placed
  2. Array of products ordered
  3. Deducts "1" from each inventory number

Any help is appreciated!

4

1 回答 1

0

我想你会在 Mage\CatalogInventory\Model\Stock\Status.php 中找到你想要的东西

您可以从那里利用各种事件。另请注意,对库存的任何更改都通过此处进行管理。因此,不仅是在下订单时,还包括手动更改库存等。

于 2012-04-23T20:57:31.513 回答