Overview
This section explains how you can setup the product availability messages in MyFulfillment depending of products stock levels, suppliers information and expected purchase orders.
MyFulfillment provides mechanisms to handle different availability messages :
- Message to display when the product is in stock
- Message to display when the product is in stock but in a specific warehouse
- Message to display when product out of stock, based on the supplier delivery lead time
- Message to display when product is out of stock but there is a purchase order expected for it
This messages can then be sent to the CMS (Magento, prestashop ...) to be displayed on the website.
Configuration
The main configuration can be done from menu Settings > products :
- Default message when product is in stock : this is the message shown when the quantity sellable is greater than 0.
- Default message when product is out of stock : this is the message shown when the quantity sellable is 0.
- Use warehouse delay when product is in stock : if you enable this option, you'll be able to configure different messages depending of the warehouse where the product is available. This is usefull to return different message if product is in stock in your main warehouse, in a supplier warehouse or in a shop.
- Show PO eta essage if a PO is expected : If you enable this option, if the product is not in stock and there is a purchase order expected, the PO estimated date of arrival will be shown.
- Expected PO message : configure the PO estimate date of arrival message here.
- Use supplier delay : if enabled, when a product is not in stock and is assigned to a supplier, Connect will return a message based on the supplier shipping delay.
- Message by warehouse ranges : when product is available in a warhouse, depending of the warehouse shipping lead time, you can configure the message to show.
- Message by supplier ranges : when product is not available in a warhouse, depending of the supplier shipping lead time, you can configure the message to show.
Warehouse configuration
If for some warehouses, you need a few days to ship products, you can configure this delay in the warehouse view :
Note: if a product has several warehouses, the lowest warehouse delay will be used.
Supplier configuration
When Connect estimates the delivery lead time for a product, it first checks the Supplier assigned to the product :
Then, it uses by default the supplier shipping delay :
However, there may be a custom delay for the product / supplier (it will then be used instead of the shipping delay at the supplier level) :
Note: if a product has several supplier, this is the lowest shipping delay that will be used.
CMS integration
Note : not all CMS support the feature to export availability message.
To check the availability messages generated by Connect, go in menu Integrations > Integrations and click on your CMS integration.
Then, go in tab "Inventory sync" where you'll see the messages under column "Availability message" :
Availability messages are pushed with the stock updates. To enable it, enable option "Export availability message" in tab "Configuration" > "Stock level export settings"
Note : if you can not see this option "Export availability message", it means that your integration doesnt support it.
Examples
Warehouse configuration :
- Main : delay = 0
- DropShip : delay = 1
- Shop : delay = 4
Supplier configuration :
- Supplier A : shipping delay = 5
- Supplier B : shipping delay = 11
Availability status configuration :
- Default message when product is in stock : Available now !
- Default message when product is out of stock : Out of stock
- Use warehouse delay when product is in stock : Yes
- Show PO eta message if a PO is expected : Yes
- Expected PO message : Expected {Y}-{m}-{d}
- Use supplier delay : Yes
- Message by warehouse ranges :
- 1 > 1 : In stock, Shipped today
- 2 > 7 : In stock, Shipped under 1 week
- 8 > 99 : In stock, Shipped under a few weeks
- Message by supplier ranges
- 1 > 7 : Available from supplier, shipped in a few days
- 8 > 30 : Available from supplier, shipped next month
- 31 > 99 : On request
Examples :
Main WHS
| Dropship WHS
| Shop WHS
| Supplier
| Message
|
13
| 0
| 0
| -
| |
0
| 14
| 0
| -
| In stock, Shipped today
|
0
| 0
| 8
| -
| In stock, Shipped under 1 week
|
0
| 0
| 0
| A
| Available from supplier, shipped in a few days
|
0
| 0
| 0
| B
| Available from supplier, shipped next month
|
0
| 0
| 0
| A, B
| Available from supplier, shipped in a few days
|
0
| 0
| 0
| Po expected 2019-12-25
| Expected 2019-12-25
|
0
| 0
| 0
| -
| Out of stock
|
Send availability message to Prestashop
Availability messages can be sent to Prestashop via the Stock export feed.
However, it requires to override a class in Prestashop, here are the steps :
- Add new column in table stock_available : ALTER TABLE `ps_stock_available` ADD `availability_message` VARCHAR(255) NULL;
- Check if file /override/classes/stock/StockAvailable.php already exists on your server, If not, duplicate file /classes/stock/StockAvailable.php to /override/classes/stock/StockAvailable.php
- Edit file /override/classes/stock/StockAvailable.php as follow :
Then enable this option in the prestashop integration configuration:
Once this is done, force Connect to send the stock update of a product :
- In the prestashop integration, select tab "Inventory sync", check a few products and select mass action "Force to outdated"
- Then, select tab "Feeds" and click on button "Run now" for feed "Stock level export"
- Once the feed is complete, check in prestashop database, in table "stock_available" if the messages are visible.
Note : The last step is to display this attribute value on your frontend, but we dont cover this part in this documentation.
Send availability message to Magento2
Create magento attribute
First, you need to create a new magento attribute to contain the availability message (can be done in menu stores > attribute > Add new attribute)
Once the attribute is created, you must assign it to every attribute sets.
Then, go in Connect in menu integrations > integrations and click on your Magento2 integration.
In the "Configuration" tab, select your magento attribute in section ""STOCK LEVELS EXPORT SETTINGS" :
Then save the integration.
Force export
The product availability message is sent to magento every time the stock level for a product changes.
To force export and test it, tick some products in the "Inventory sync" tab from the integration view and select mass action "Force to outdated" :
Wait a few minutes OR manually run the "Export stock level" feed, you should then see the attribute value updated in magento :
Note : The last step is to display this attribute value on your frontend, but we dont cover this part in this documentation.