PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

BulkActionColumn Type

This column type allows adding bulk action checkboxes to your Grid. This only adds the checkbox in the grid, you can then manage bulk actions via javascript.

Available options

Properties Type Expected value
bulk_field string required: The record field name that will be used as the bulk action checkbox value.

Example usage

<?php
use PrestaShop\PrestaShop\Core\Grid\Column\Type\Common\BulkActionColumn;
use PrestaShop\PrestaShop\Core\Grid\Column\ColumnCollection;

$bulkActionColumn = new BulkActionColumn('bulk_action');
$bulkActionColumn->setName(''); // it is common to set an empty name for bulk action columns
$bulkActionColumn->setOptions([
     'bulk_field' => 'id_product',
]);

$columns = new ColumnCollection();
$columns->add($bulkActionColumn);