Skip to main content
deleted 17 characters in body
Source Link
Gopal Patel
  • 3.1k
  • 2
  • 16
  • 32

How to Add Custom MassAction In Controller For Status? 

My Status Having "Accepted", "Not Process", "Rejected", "Re-Offer".

  1. Accepted
  2. Not Process
  3. Rejected
  4. 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
}

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
}

How to Add Custom MassAction In Controller For Status? 

My Status Having

  1. Accepted
  2. Not Process
  3. Rejected
  4. 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
}
added 532 characters in body
Source Link
Harshil Parekh
  • 1.5k
  • 17
  • 31

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
}

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.

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