I have multiple shops in PrestaShop, but I’m having trouble synchronizing stock and products for the secondary shop.

I have multiple shops in PrestaShop, but I'm having trouble synchronizing stock and products for the secondary shop.

This issue is related to how PrestaShop’s multi-store mode interacts with its API. In a multi-store setup, even if you use the same base URL for all shops and differentiate them by specifying the id_shops parameter (for example, id_shop=1 for your main shop and id_shop=2 for your secondary shop), the API only returns data for the default shop when accessed via that single URL. In PrestaShop, each shop needs its own unique URL.

For example, suppose you have two shops:

If you configure the connector with the URL https://shop.example/ for both shops and use different id_shops values, the API will only return data for the Main Shop. To synchronize stock for the Secondary Shop, you must use its unique URL (https://shop.example/secondary) in your configuration.

You can verify this by testing the API endpoints. For instance, using:

https://shop.example/api/stock_availables/?filter[id_product]=[25]&display=full&ws_key=YOUR_WS_KEY&output_format=JSON

will return stock records for the Main Shop only. In contrast, accessing:

https://shop.example/secondary/api/stock_availables/?filter[id_product]=[25]&display=full&ws_key=YOUR_WS_KEY&output_format=JSON

will return data for the Secondary Shop.

Response example (second store is available at the link https://shop.example/us):

image-20250304-151233.png

The same applies to products: products assigned exclusively to the Secondary Shop won’t be imported if you use the Main Shop’s URL.

Important: If your PrestaShop configuration is set to share stock between shops, please contact our support team, as the configuration process differs from the standard setup described here.

Feel free to reach out if you have further questions or need additional clarification.

Need Further Assistance? or Not sure if our connector will work for you?

If you’re unsure whether our connector is the right fit for your business, don’t hesitate to reach out. Our support team is here to help! We can answer your questions, provide guidance, or even schedule a demo meeting to show you how our connector works in real-time.

Contact us: https://support.ventor.tech/

We’re committed to helping you find the best solution for your needs. Let’s make sure everything is set up for success!

Related Posts