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 moretip
Increase PHP memory limit
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 moreHow to change default product quantity from 0 to 1 in Magento
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 moreHow to Dynamically Replace Slide Images in Slider Revolution
In some cases you will need to dynamically replace slide images in Slider Revolution. For example if you want to change image depending on browser size. Or after some user actions. This is quite easy with use of Slider Revolution API and Custom Javascript. Lets for example add feature that changes second slides image to […]
read moreMagento two modules extend same class problem solution for Slider Revolution extension
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 moreConfiguration group expanded by default
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 moreRestrict Access to Magento Admin Area in Nginx
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.
Magento module Fatal error: helper class not found
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 moreComment php code with one keypress
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 moreNew products block does not change currency
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