Getting products by attribute or category in Magento

Ho to get product by attribute or category in magento

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

Custom module development: basic errors

Custom module development: basic errors

Magento custom module development has tricky parts that are not obvious for inexperienced developer. For example: you have created a router, but get 404 page you have created a layout, but page content is empty you have added new block to layout, but page is still empty There are no errors on frontend and logs […]

read more

adminhtml.xml in details

adminhtml.xml in details

At the beginning there was config.xml. It contain module configuration information for all “areas”, like frontend, adminhtml, global etc. Since magento does consist of a lot of modules resulting configuration object has rather big size. To reduce its size and speed up frontend developers decide to separate admin information from config.xml. adminhtml.xml was presented in […]

read more