Like all other items in Magento store products have its own model and collection that can be used for getting list of products. So basic thing we do is getting instance of products collection: … At the same time we can specify which product attributes we want to get. For this we can use addAttributeToSelect method. You can specify them separately in each method or pass array as argument
read more