我需要重定向以获取与订单实体的当前增量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归因
scroll top