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.
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
}