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 moreMagento
Magento not working in iframe?
If you try to load your store in iframe and did not successed you definitely has X-Frame-Options issue that is caused by new magento option that disable embedding. Magento team has added a new setting in Magento 1.9 Community Edition and Magento Enterprise Edition 1.14 : Allow Magento Frontend to run in frame. It is […]
read moreCustom 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 moreadminhtml.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 moreAdding javascript in Magento head block
Sometimes when working with Magento you’ll want to add some Javascript code. It could be third party library or your own custom code. Lets see the ways of adding javascript in Magento. In most cases your Javascript code you want to include to your Magento theme or extension are located or can be placed in […]
read more