Posts

Showing posts from November, 2015

Add Custom Fields in Magento Admin Panel

Image
 Source code system.xml file content (inside etc/ folder of your extension): <?xml version="1.0"?> <config>     <tabs>         <myconf translate="label">             <label>My Configuration</label>             <sort_order>150</sort_order>         </myconf>     </tabs>     <sections>         <tab1 translate="label" module="adminhtml">             <label>Tab #1</label>             <tab>myconf</tab>             <sort_order>10</sort_order>   ...

Add a Dropdown Field In Admin Section

Image
Create the configuration field Without much effort, you can create your own fields. All you need is:     >>your own module     >>a system.xml file inside this module I assume that you are familiar with creating your own module and new (text) fields in the system.xml. It will look like this when it’s finished: In Your Custom module system.xml file Add this line     <shipping_costs translate="label">         <label>Zipcode Range,Weight with Price</label>         <frontend_model>dao_customshippingmethod_block_linkedAttributes</frontend_model>         <backend_model>adminhtml/system_config_backend_serialized_array</backend_model>         <sort_order>22</sort_order>         <show_in_default>1...

Magento Language Translation for Custom Module

This article shows how you can create and use custom language translation csv file for your custom module. Suppose, I have created a new module and I want language translation file particularly for my newly made module. Here is how we do it:- In this example,     Namespace: Rahul     Module Name: News 1) In config.xml file of your module, you have to write the following code specifying the language translation csv file. Note that the same code is written inside the frontend and adminhtml node. Frontend is for frontend translation and adminhtml is for backend translation. In the example below, same file name (Rahul_News.csv) is specified for both. You may use different file as well. <?xml version="1.0"?>     <config>      .      .      .       <frontend>       .       .    ...