Skip to content

Instantly share code, notes, and snippets.

@razbakov
Last active November 9, 2015 14:21
Show Gist options
  • Save razbakov/605d539ef4778e8b4678 to your computer and use it in GitHub Desktop.
Save razbakov/605d539ef4778e8b4678 to your computer and use it in GitHub Desktop.

ShadowStocks

Each product in a Magento store has a stock count. This stock count can be updated by vendors by calling a Magento REST API. The warehouse sends amount of each product to the Magento Store.

  • Problem: There could be some products which are sold in the Magento store, but not processed by the warehouse.
  • Solution: The module will find orders being processed and products which have not yet been processed by the warehouse yet. Amount of those products will be substracted from the actual amount from the warehouse. In other words those products are stored in ShadowStocks.

Kirchbergerknorr_ShadowStocks extends Magento API REST functionality for HTTP Method PUT /stockitems to implement ShadowStocks.

Facts

  • version: 0.1.0
  • extension key: Kirchbergerknorr_ShadowStocks

Installation

composer require kirchbergerknorr_shadowstocks ~1.0

Configuration

System Configuration / kirchbergerknorr / ShadowStocks

  • Enabled - enabled functionality of module
  • Statuses - defines which products (orders filtered by order statuses) should be substracted on stock update.

Developer

License

OSL - Open Software Licence 3.0

Copyright

(c) 2015 kirchbergerknorr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment