This article explains the "No stock available found for shop" error in the stock export feed for Prestashop integration
Explanations
When myFulfillment sends a stock update to Prestashop, among the product, combination and quantity, myFulfillment may also specifies the shop ID.
That depends of the settings in the Prestashop integration:
If no shop is selected, then stock are pushed without shop id.
If shops are selected, then stock are pushed for each shop
The error "No stock available found for shop" means that prestashop did not returned any stock information for the shop #
There may be 2 reasons why this is happening
1. Your magento database is corrupted and is missing stock information for some products
2. The configuration in the prestashop configuration is incorrect
How to fix ?
An easy way to check the issue it to perform an API call directly from the browser:
https://www.yourwebsite.com/api/stock_availables?ws_key=YOURAPIKEY&filter[id_product]=PRESTASHOPPRODUCTID&display=full
If the result does not contain any result it means that you have a database issue and some records are missing in prestashop table "stock_available":
<stock_availables> </stock_availables>
</prestashop>
If there are some results displayed, we must run again the query specifying the shop ID that causes the issue:
https://
www.yourwebsite.com/api/stock_availables?ws_key=
YOURAPIKEY&filter[id_product]=
PRESTASHOPPRODUCTID&display=full&filter[id_shop]=
SHOPID&id_shop=
SHOPID
If this configuration does not return any record, it means that we can not push the stock only for this shop ID.
It probably mean that prestashop shares the stock between the different shops. You can check it from prestashop admin panel, select menu advanced parameters > multishop
Then click on the shop group and check if the share stock option is enabled:
If yes, you must not select any shop in the prestashop integration to export stock to Prestashop