Skip to main content
2 of 3
added 532 characters in body
Harshil Parekh
  • 1.5k
  • 17
  • 31

Add Custom MassAction for Status

How to Add Custom MassAction In Controller For Status? My Status Having "Accepted", "Not Process", "Rejected", "Re-Offer". So how can I Get These Values in change status in MassAction? I Put Default MassAction But Getting "Enable" And "Disable" Value for the Status.

Any Kind Of Will Appreciated.

MassAction

public function massStatusAction()
{
    
    $pricenegotiateIds = (array)$this->getRequest()->getParam('id');
    $pricenegotiateModel  = Mage::getModel('pricenegotiate/pricenegotiate')->load($pricenegotiateIds);
        print_r($pricenegotiateIds);exit;
    $status     = (int)$this->getRequest()->getParam('status'); //get Status
    if($status==2)
    {
        $couponcode=(rand(10,100));
        echo $couponcode."<br>";
    }
    print_r($status);die;
    //your logic
}
Harshil Parekh
  • 1.5k
  • 17
  • 31