First of all, you have to create a new module. After that, you have to put the code in config.xml
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<adminhtml> <events> <adminhtml_block_salesrule_actions_prepareform> <observers> <magemonkeys_custofield> <type>model</type> <class>Magemonkeys_Custofield_Model_Observer</class> <method>adminhtmlBlockSalesruleActionsPrepareform</method> </magemonkeys_custofield> </observers> </adminhtml_block_salesrule_actions_prepareform> </events> </adminhtml> |
in Model/Observer.php file you have to put this method and code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?php class Magemonkeys_Custofield_Model_Observer { public function adminhtmlBlockSalesruleActionsPrepareform($observer) { $fieldset = $observer->getForm()->getElement('action_fieldset'); $fieldset->addField('sku', 'text', array( 'name' => 'sku', 'label' => Mage::helper('freeproduct')->__('Add skus'), 'title' => Mage::helper('freeproduct')->__('Add skus'), 'note' => Mage::helper('freeproduct')->__('Add sku(s) separated with comma'), )); } } ?> |
And after that, you have to flush the cache and check.
If you want get query string params in controller file,...
Create di.xml and add the below code Magemonkey/Redirect/etc/frontend/di.xml [crayon-62838474a2988523961549/] Create...
You can try below code to change local date to...
Step 1: First you need to add registration.php file in...
Step1 : Override message.js in current theme file on the...