Starting with version 1.20.0 it is possible to subscribe to stock notifications based on product quantity instead of stock status. The feature works with backorder and pre-order products, including those managed by Amasty Pre Order. You need to install the 'amasty/module-xnotif-stock-availability-mode' package from composer suggest to use this functionality (the functionality is available as a part of an active product subscription or support subscription).
Once installed, you can find the 'Check Stock Availability Based On' setting in the module configuration (Amasty > Out of Stock Notifications > Configuration > Stock Subscription):
This setting does not affect the display of the Add to Cart button. It only controls the display of the subscription block from the module.
- If Check Stock Availability Based On is set to Stock Status, the module works as it does now. The product stock is determined by the stock status: In Stock or Out of Stock. The subscription block is displayed only for products with the Out of Stock status.
- If Check Stock Availability Based On is set to Quantity, the module checks the product stock as follows.
When Magento Inventory modules are disabled the product is considered in stock if: Qty > Minimum Stock Quantity. The product is considered out of stock if: Qty < Minimum Stock Quantity.
When Magento Inventory modules are enabled the product is considered in stock if: Salable Quantity > 0. The product is considered out of stock if: Salable Quantity < 0.