You can use your custom font in Slider Revolution Magento Extension in the following way: 1. Upload your font to your server, for example in media/fonts/ folder. 2. Include your custom font by inserting following line to style of your slider. You can do it in sliders Custom CSS of Slider Settings here: Or in Edit […]
read moreHow to insert Slider Revolution programmatically
You can insert Slider Revolution to Magento store programmatically by adding it to layout or generating and outputting its code in controller action or block. For example in controller action you can use following code: $this->loadLayout(); $myBlock = $this->getLayout() ->createBlock(‘revslider/revslider’) ->setAlias(‘homepage’); This will create Slider Revolution block, now you can render it to html string to […]
read moreHow to fix Database tables not found error in Slider Revolution extension
Problem: Got error “Database tables not found…” after installing Slider Revolution extension. Reason: Cache was not disabled during installation process. Solution: Go to System > Cache Management of Magento Admin panel Disable All Cache Log out from Magento Admin panel Remove nwdthemes_revslider_setup row from core_resource table using PhpMyAdmin or by running this MySQL query: DELETE FROM `core_resource` […]
read moreSlider Revolution Responsive Magento Extension Release
Good news everyone! Most popular slider plugin Slider Revolution Responsive WordPress Plugin now available for Magento platform as Slider Revolution Responsive Magento Extension. Slider Revolution plugin is slides display solution that works with all possible types of content with easy to customize styles, transitions, effects and animations. With this extension you can build responsible or […]
read moreGenerate Magento translation CSV file
We know that Magento provides great feature for translation of text strings in code. Such content that needs to be localized for different store views is outputted through __() helper function. It will search for data loaded from locale translation .csv file and if found match for current store view it will be replaced with it…
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 moreGetting products 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 moreMagento 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 more