Do you use MSN Messenger and want to chat in Devnagari (Hindi, Nepali)? If your answer is YES then nepText plugin is just for you.
nepText is an MSN Messenger plugin that lets you to chat in both English and Devnagari.
PACKT Publishing has published a very useful Magento Developer Guide. This book has practical tutorials with examples. This book will be very useful for PHP Programmers who want to learn Magento architecture, extend the system and add new features to it.
I used to have google adsense in my blog but they suddenly disappeared these days. I don’t see the adsense in my blog. Instead, I see ads stating ‘Microfinance Empowers‘ in some of my adsense block. Others are empty.
I googled the web and found the following cause and solution:-
In my previous article to resize image in Magento, I had written direct code to resize any image. Here, I will be writing a simple function to resize image proportionally, which can be kept in the helper file of the module (as helper file can be accessed by any template (.phtml) file).
Well, the function credit goes to my friend Subesh’s article. He has already written such function in his blog article. I am just re-writing the function with some modifications (Making it easier for me to understand :))
Breadcrumbs are very useful for user navigation. Breadcrumbs for product page, category page, etc. are created by default Magento code.
The following code will show breadcrumbs created by Magento. You can print the following code anywhere in php or phtml files.
In adminhtml, you might have the following code in any form. Here ‘logo‘ is the name of the input type file. Or, you may have any HTML Form with the File field in the frontend page. Remember that your form’s enctype should be multipart/form-data.
$fieldset->addField(‘logo’, ‘file’, array(
‘label’ => ‘Small Logo’,
‘required’ => false,
‘name’ => ‘logo’,
));
Registry means registering or creating a new variable which is to be used later on in the project/code. The registry variable acts as a global variable which can be used anywhere.
We register a variable with register() function.
We can unregister the variable with unregister() function.
To fetch the registry variable, we use registry() function.
We can store anything in the registry variable. It can be integer, string, array, etc.
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.
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.
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 displayed the section and groups name. I have omitted others fields with dots, as they are not necessary here.