문제

주문 엔티티의 현재 증분 ID와 관련된 데이터를 눌러 리디렉션해야합니까?현재 증분 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();
}
.

페이지 페이지 위의 기능에 따라 지시됩니다.여기에 버튼을 추가하고 현재 증분 ID에 대한 주문 세부 정보를 얻고 싶습니다.

도움이 되었습니까?

해결책

현재 증분 ID를 변수에 할당해야한다고 생각합니다.

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

현재 증분 ID를 새 변수에 할당하는 데 도움이됩니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top