Jump to content

Edit History

17mark

17mark

I am trying make bulk action button on Products list page from my module. I don't know why but i can't see my action in bulk menu.
I have defined bulk action in same way in Orders list and it's works.

PS 1.7.6.7

class AdminProductsController extends AdminProductsControllerCore
{
    public function __construct()
    {
        parent::__construct();

        $this->bulk_actions['myBulkAction'] = [
            'text' => $this->l('My bulk action'),
            'icon' => 'icon-list-ul',
        ];

    }

    public function postProcess()
    {
        if (Tools::isSubmit('submitBulkmyBulkActionproduct')) {
            //TODO 
        }

        parent::postProcess();
    }
}

Any idea what I'm doing wrong?

17mark

17mark

I am trying make bulk action button on Products list page from my module. I don't know why but i can't see my action in bulk menu.
I have defined bulk action in same way in Orders list and it's works.

PS 1.7.6.7

class AdminProductsController extends AdminProductsControllerCore
{
    public function __construct()
    {
        parent::__construct();

        $this->bulk_actions['myBulkAction'] = [
            'text' => $this->l('My bulk action'),
            'icon' => 'icon-list-ul',
        ];

    }

    public function postProcess()
    {
        if (Tools::isSubmit('submitBulkmyBulkActionproduct')) {
            //TODO 
        }

        parent::postProcess();
    }
}

 

×
×
  • Create New...