As you know, Magento supports multi-stores. I'm working with an extension that need to link a store with a specific warehouse.
For example, a store which sales furniture will be linked with a warehouse for furniture, a clothes store will be linked with a warehouse for clothes.
So I have a question, where Magento check to show products for each store? I need to rewrite this function.
When I read about "explanation of Magento's Store / Store View / Website layers", I saw that "Products and Categories are managed on the store level".
So where exactly the code that "manage" products and categories?