How to add the new mass action in magento sales order grid to update my custom status.
1 Answer
your config.xml for event calling
<events>
<core_block_abstract_prepare_layout_before>
<observers>
<modulename>
<class>modulename/observer</class>
<method>addActions</method>
</modulename>
</observers>
</core_block_abstract_prepare_layout_before>
</events>
your observer function
class Spacename_Moudlename_Model_Observer
{
public function addActions($observer)
{
$block = $observer->getEvent()->getBlock();
if(get_class($block) =='Mage_Adminhtml_Block_Widget_Grid_Massaction'
&& $block->getRequest()->getControllerName() == 'sales_order')
{
$block->addItem('--Your Label--', array(
'label' => '--Your Label--' ,
'url' => '',
'target' => '_blank'
));
}
}}
-
In which config.xml and observer function can i add the given code. @Qaisar Satti Nov 5, 2015 at 12:52
-
-
-
if you asking about the massaction url you can add it 'url' => 'your post action url', Nov 5, 2015 at 13:00
-