elgentos / magento2-inventory-log

Magento 2 - Inventory Log
29 stars 11 forks source link

Not Detecting change when inventory updated via php script which uses Magento\CatalogInventory\Api\StockRegistryInterface #12

Open skmujahed opened 2 years ago

skmujahed commented 2 years ago

The Extension is not logging any changes in module when inventory is updated via custom php script which uses StockRegistryinterface

stijntrinos commented 1 year ago

I had the same problem. The problem is the Trigger event in the database.

The fix is to change the Trigger path in elgentos/magento2-inventory-log/Setup/InstallSchema.php line 181 & 193

cataloginventory/options/inventory_enabled needs to be cataloginventory/options/inventory_enabled

Hope this helps