1

I need to redirect to get data relevant to current increment ID of Order entity? So how I find current increment ID?

public function viewAction() {      
    $this->loadLayout();
    if($increment_id = $this->getRequest()->getParam('increment_id')) {
        Mage::register('current_increment_id',$increment_id);
        $this->_setActiveMenu('casestation');
        $this->_addContent(
            $this->getLayout()->createBlock('casestation/adminhtml_print')
        );
    }
    return $this->renderLayout();
}

Page page directed according to above function. I need to add button here and want to get order details on current increment ID.

  • Which increment id are you talking about ? Order entity ? Product entity ? Category Entity ? Please specify or your question will be flagged as unclear. – Raphael at Digital Pianism Feb 29 '16 at 10:05
  • @DigitalPianism Order entity – Bandara Feb 29 '16 at 10:06
  • from which page you want to get that particular ID ? – Raphael at Digital Pianism Feb 29 '16 at 10:07
  • @DigitalPianism question has been edited. – Bandara Feb 29 '16 at 10:12
1

I think you need to assign current increment-id to variable.

 $currentIncrementId = $this->getRequest()->getParam('increment_id');  

This will help to assign current increment ID into new variable.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.