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.

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

1 Answer 1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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