Don't inherit stock values in marketplace

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
aimeos
Administrator
Posts: 7913
Joined: 01 Jan 1970, 00:00

Re: Don't inherit stock values in marketplace

Post by aimeos » 16 May 2021, 07:22

tncgroup wrote: 16 May 2021, 07:14 What we want here is for each site to have its own stock. When a customer is in default shop, only stock level of the default shop reduces, and when the customer is in the secondsite only stock of the product in secondsite must change and so on.
Set this configuration to 0 (no inheritance and aggregation:

Code: Select all

mshop/stock/manager/sitemode = 0
tncgroup wrote: 16 May 2021, 07:14 And I was wondering what do these table in database are for? They seem to never get populated. `mshop_catalog_site` and ` mshop_product_site`
They are used if you configure the "Site" decorator like described in the README.md file. This is for complex B2B apps where products shouldn't be inherited into children sites without explicit marking products as availabel in each subsite.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply