Page 1 of 1

Multiple Warehouses

Posted: 17 Nov 2017, 15:21
by Doveman
The user docs indicate that I can setup multiple warehouses but I can't find any info on that in the developer docs. Does the siteid field have anything to do with this? If not what is the purpose of siteid? Is there some special config entries that need to be made?
The user doc that talks about this is at:
https://aimeos.org/docs/User_Manual/Adm ... ct_details
Specifically it is under the heading Stock Levels. My edit screens do not match this documentation.

Re: Multiple Warehouses

Posted: 18 Nov 2017, 11:22
by aimeos
The site ID is for multi-tenancy, e.g. if you want to offer different shops, shops for different vendors, complex B2B scenarios, market places or reseller structures.

If you add a new stock type (JQAdm interface, Types -> Stock type), you will see that you can add more than one stock level for a product in the product detail view of the admin interface. In the frontend, you have to add a selector where the user can choose the pickup point and you have to pass that value as "b_stocktype" to the basket:
https://github.com/aimeos/ai-client-htm ... d.php#L482

You can add the selector here in the catalog detail view:
https://github.com/aimeos/ai-client-htm ... t.php#L260