To enable template path hints in Magento: Login to the magento back-end Go to System > Configuration Go to Developer section on the bottom left under ADVANCED Switch to the store view on the top left to your current website or store view. Open Debug and set “Template Path Hints” = Yes. Optionally you can […]read more
Sometimes you might get “Fatal error: Allowed memory size of …” PHP error. Usually this means that you run out of memory. It is recommended to double check your code and profile your app with xDebug. It should tell you which function is called how often and how much memory it eats. However, the code […]read more
It is common magento issue. You open product page and have quantity set to “0”. This is not good. Customer think that if the quantity is 0 it normally means nothing will be added to the cart. Setting default product quantity to 1 make your site more user friendly. It is pretty easy to fix. […]read more
Extending modules instead of modifying them is a good practice in Magento development. But what will happen if in Magento two modules extend same class? This can occur when two extensions extend same class for own needs. In this case only the last one will get benefit from extending it. And the first one will […]read more
Most magento extension has its own section in admin configuration. Sometimes you want to have one of configuration groups to be expanded. All you need to do is add expanded parameter to it. It will define whether the group is expanded by default when viewing that particular tab section. Configuration section / groups defined in […]read more
It is pretty easy to restrict access to magento admin area in nginx. Basically you need to update configuration file and restart it.
All commands applicable for debian. There might be different syntax for other versions.
It is pretty common magento error. Even if you yourself don’t use helper, Magento admin does. You should always create helper class in your custom module. File location depends on module code pool and could be located in ….read more
Debugging takes 90% of php developement time. You often need to comment out a piece code. In case of single line it is pretty simple. But if you need to comment large block it could take time. Do you want to comment php code with one keypress ? There is pretty simple method to achieve […]read more
Magento has default new products block. It can be added to cms home page via shortcode. However, if you have multiple currencies and try to switch to different currency new products still show price in old one. This happens due to block cache…read more