Jump to content

Custom bulk action in products list not display


Recommended Posts

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?

Edited by 17mark (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...