Magento 2 how to get Order ID in the custom module

protected$view;

publicfunction__construct(

\Magento\Sales\Block\Adminhtml\Order\View $view

)

{

$this->view=$view;

}

publicfunctionYourfunction(){

$orderIds=$this->view->getOrderId();

}


原文链接: https://www.abmbio.xin/article/25 

你可能感兴趣的:(Magento 2 how to get Order ID in the custom module)