How to create dropdown/select box in magento system.xml for payment/shipping configuration
Magento – Create dropdown/select box in magento system.xml for payment/shipping configuration
configurationmagento-1.9paymentshippingsystem.xml
configurationmagento-1.9paymentshippingsystem.xml
How to create dropdown/select box in magento system.xml for payment/shipping configuration
Best Answer
Create drop down in system.xml and show custom values in it, rather than using default magento classes only
Directory : app/code/local/Companyname/Modulename/config/system.xml
In system.xml
If you want to create your custom source_Model, you need to do the following steps: Create a Pmethod.php in app/code/local/Companyname/Modulename/Model/Pmethod.php Companyname_Modulename is our module name. You need to create a function name toOptionArray() as mention below, the value and label can be anything you want to be display in dropdown
In Pmethod.php