This Rapidez Module will offer compatibility with the Magento MSI functionality.
This module uses a HTTP Middleware to have access to the stock_id
for that website.
It also features 2 Global Scopes used by Eventy Filters to enrich product Detail and Overview Page and The Rapidez:Indexer with Stock Status Information.
This modules requires the Magento MSI functionality to be active and fully functional on the Magento side. Stock(s) and Source(s) should be created and assigned to the Website(s).
The Message Queues of Magento should be functional as MSI stock tables will be update through this mechanism. For example, the salable status of a product will be updated by process inventory.reservations.updateSalabilityStatus
.
composer require rapidez/msi
To expose the stock_qty
to the product detail and overview page you can add the following configuration to the config/rapidez.php
file:
'msi'=> [
'expose_stock_in_list' => true,
'expose_stock_in_detail' => true
]
Don't forget to reindex rapidez with artisan rapidez:index
for stock_qty
to be available in the Elasticsearch Indexes.
The MSI functionality in this module is currently supported for the following product types:
- Simple
GNU General Public License v3. Please see License File File for more information.