Magento: Read config XML nodes

Here, I will be showing you how you can read XML nodes from config.xml file of your module. It’s through the Magento way with Mage::getConfig()->getNode() function. :) Here is the XML code of my config.xml file. I will be reading the nodes of this XML file. <default> <catalog> <mypage> <name>myname</name> <age>100</age> <address_one>earth</address_one> </mypage> </catalog> </default> … Read more

Magento: Read Write XML

I will be using Varien_Simplexml_Element class to read write xml nodes. The path to this class file is lib/Varien/Simplexml/Element.php Here is a sample XML file which I am going to read through Magento code. I will also be adding an XML node to the following XML data. <?xml version="1.0"?> <config> <modules> <MyNamespace_MyModule> <version>0.1.0</version> </MyNamespace_MyModule> </modules> … Read more

Magento: Access denied in admin of custom module

I was building a custom module in Magento. I had created a system.xml file for storing configuration data from admin. From the below system.xml file, you can see that I have created a section named ‘My Module Name‘ which can be accessed from Admin –> System –> Configuration. In the file below, I have just … Read more

Magento: Set/Change page layout, title tag, meta keywords and description

Earlier in this blog, I had written about setting title, keywords, and description from xml layout file. In this article, I will be showing, how you can set/change title, keywords and description of any page programmatically. I mean, by php code. Here is the layout XML file. I have set title and template in the … Read more

jQuery: Grey out background and preview image as popup

Here, I will show you how to preview Image with grey out background effect. I mean, you will be able to preview large image when you click the thumbnail image. The background of the page will be greyed and the image will be displayed as popup. View Demo || Download Code The following code will … Read more

jQuery: A simple Tooltip

Here, I will show you how to show tooltip with jQuery. It’s very simple and easy. I have a href link. I will show you, how to show tooltip when you hover your mouse over the link. The title of the href link will be shown as tooltip. View Demo || Download Code In the … Read more

jQuery: Cool Bouncing Navigation with easing plugin

Here, I will be showing you how to create a cool bouncing navigation with jQuery and jQuery easing plugin. The content appears with the bouncing effect as you navigate through the menu. You need jQuery Library and the jQuery easing plugin. But you need not worry, I have zipped them all in the download file. … Read more