且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在销售订单onclick中的自定义操作中获取选定的订单ID?

更新时间:2023-11-29 22:37:34

您可以通过getRequest在如下所示的自定义控制器操作的getParam方法中获取此信息

You can get this by getRequest in getParam method of your custom controllers action like below

  public function massChangeTypeAction()
    {
      $orderIds = (array)$this->getRequest()->getParam('order_ids');        
    }

您可以打印$orderIds以从网格中获取选定的订单.

You can print $orderIds to get selected order from grid.