{"id":317305,"date":"2021-12-29T11:26:24","date_gmt":"2021-12-29T11:26:24","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=317305"},"modified":"2021-12-29T11:26:27","modified_gmt":"2021-12-29T11:26:27","slug":"adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/","title":{"rendered":"Adding custom bulk actions on modern pages in PrestaShop 1.7"},"content":{"rendered":"\n<p>In this blog, we are going to learn how to add custom bulk action on the modern page in PrestaShop 1.7.<\/p>\n\n\n\n<p>In PrestaShop 1.7.x.x, admin controllers pages are being migrated on the Symfony framework so we cannot use legacy methods to use bulk actions on controllers.<\/p>\n\n\n\n<p>So let\u2019s understand how to achieve it on modern pages: &#8211;<\/p>\n\n\n\n<p>Suppose, we want to add Subscribe newsletter bulk action on customer controller,<\/p>\n\n\n\n<p>First, we have to register hook actionCustomerGridDefinitionModifier. Its general form is <strong>action{gridId}GridDefinitionModifier<\/strong> where&nbsp;<code>{gridId}<\/code>&nbsp;is Grid id (e.g.&nbsp;&nbsp;Customers for the Customers grid, this means that the hook name would be&nbsp;actionCustomerGridDefinitionModifier)<\/p>\n\n\n\n<p>In the hook function, this is the example code&nbsp;<\/p>\n\n\n\n<p>use namespace <strong>use PrestaShop\\PrestaShop\\Core\\Grid\\Action\\Bulk\\Type\\<\/strong><em><strong>SubmitBulkAction<\/strong><\/em>; in the main module file.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">public function hookActionCustomerGridDefinitionModifier($params)\n{\n    \/\/ $params&#091;&#039;definition&#039;] is instance of \\PrestaShop\\PrestaShop\\Core\\Grid\\Definition\\GridDefinition\n   $params&#091;&#039;definition&#039;]-&gt;getBulkActions()-&gt;add(\n       (new SubmitBulkAction(&#039;subscribe_newsletter&#039;))\n           -&gt;setName($this-&gt;l(&#039;Subscribe newsletter&#039;))\n           -&gt;setOptions(&#091;\n               \/\/ submit action should be implemented by module\n               &#039;submit_route&#039; =&gt; &#039;wktestmodule_subscribe_users&#039;,\n           ])\n    );\n}<\/pre>\n\n\n\n<p> Now, we need to define the route <strong>wktestmodule_subscribe_users<\/strong> and its action controller. Create file <strong>routes.yml<\/strong> in path <strong>wktestmodule\/config\/routes.yml<\/strong> and add the following code-<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">wktestmodule_subscribe_users:\n  path: wktestmodule\/subscribe_users\n  methods: &#091;POST]\n  defaults:\n    _controller: &#039;WkTestModule\\Controller\\Admin\\WkSubscribeController::subscribeUsers&#039;<\/pre>\n\n\n\n<p>Now create the controller for action in the path <strong>wktestmodule\/src\/Controller\/Admin\/WkSubscribeController.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">namespace WkTestModule\\Controller\\Admin;\n\nuse PrestaShopBundle\\Controller\\Admin\\FrameworkBundleAdminController;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\n\nclass WkSubscribeController extends FrameworkBundleAdminController\n{\n    public function subscribeUsers()\n    {\n        \/\/ logic to subscribe newsletter\n    }\n}<\/pre>\n\n\n\n<p>After adding the above code, a new bulk action will be displayed like this :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"884\" height=\"492\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png\" alt=\"adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image\" class=\"wp-image-317385\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png 884w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-300x167.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-250x139.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-768x427.png 768w\" sizes=\"(max-width: 884px) 100vw, 884px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Add logic to subscribe newsletter like below code:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">namespace WkTestModule\\Controller\\Admin;\n\nuse PrestaShopBundle\\Controller\\Admin\\FrameworkBundleAdminController;\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Tools;\nuse Db;\n\nclass WkSubscribeController extends FrameworkBundleAdminController\n{\n    public function subscribeUsers()\n    {\n        $selectedCustomer = Tools::getValue(&#039;customer_customers_bulk&#039;);\n        if (is_array($selectedCustomer)) {\n            foreach ($selectedCustomer as $customer) {\n                $this-&gt;registerUser($customer);\n            }\n        }\n        $this-&gt;addFlash(\n            &#039;success&#039;,\n            $this-&gt;trans(&#039;Subscribed to newsletter successfully.&#039;, &#039;Admin.Notifications.Success&#039;)\n        );\n        return $this-&gt;redirectToRoute(&#039;admin_customers_index&#039;);\n    }\n\n    protected function registerUser($idCustomer)\n    {\n        $sql = &#039;UPDATE &#039; . _DB_PREFIX_ . &#039;customer\n            SET `newsletter` = 1, newsletter_date_add = NOW(), `ip_registration_newsletter` = \\&#039;&#039; . pSQL(Tools::getRemoteAddr()) . &#039;\\&#039;\n            WHERE `id_customer` = &#039;.(int) $idCustomer;\n\n        return Db::getInstance()-&gt;execute($sql);\n    }\n}<\/pre>\n\n\n\n<p>Select customers from the list and select Subscribe newsletter bulk action. Each selected customer will be subscribed to the newsletter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" width=\"1200\" height=\"632\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-2-1-1200x632.png\" alt=\"adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-2-1\" class=\"wp-image-317727\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-2-1-1200x632.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-2-1-300x158.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-2-1-250x132.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-2-1-768x405.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image-2-1.png 1399w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Note: If routing is not working then execute this command <strong>composer dump-autoload <\/strong>and then reset the module.<\/p>\n\n\n\n<p>You can define the <strong>composer.json<\/strong> file like this <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">{ \n  &quot;name&quot;: &quot;prestashop\/wktestmodule&quot;, \n  &quot;description&quot;: &quot;Help developers to understand how to create module using new hooks \n     and apply best practices when using CQRS&quot;, \n  &quot;autoload&quot;: { &quot;psr-4&quot;: { &quot;WkTestModule\\\\&quot;: &quot;src\/&quot; } }, \n  &quot;license&quot;: &quot;MIT&quot;, \n  &quot;type&quot;: &quot;prestashop-module&quot; \n}<\/pre>\n\n\n\n<p>That\u2019s all about this blog.<\/p>\n\n\n\n<p>If any issue or doubt please feel free to mention it in the comment section.<\/p>\n\n\n\n<p>We would be happy to help.<\/p>\n\n\n\n<p>Also, you can explore our&nbsp;<a href=\"https:\/\/webkul.com\/prestashop-development\/\">PrestaShop Development Services<\/a>&nbsp;&amp; a large range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt contact us at&nbsp;<a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn how to add custom bulk action on the modern page in PrestaShop 1.7. In PrestaShop 1.7.x.x, admin controllers pages are being migrated on the Symfony framework so we cannot use legacy methods to use bulk actions on controllers. So let\u2019s understand how to achieve it on modern <a href=\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":388,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209,1],"tags":[12274,12273,12267,12265],"class_list":["post-317305","post","type-post","status-publish","format-standard","hentry","category-prestashop","category-uncategorized","tag-add-bulk-action-in-grid-layout","tag-add-bulk-action-in-prestashop","tag-add-custom-action-on-modern-pages","tag-bulk-action"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding custom bulk actions on modern pages in PrestaShop 1.7 - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding custom bulk actions on modern pages in PrestaShop 1.7 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we are going to learn how to add custom bulk action on the modern page in PrestaShop 1.7. In PrestaShop 1.7.x.x, admin controllers pages are being migrated on the Symfony framework so we cannot use legacy methods to use bulk actions on controllers. So let\u2019s understand how to achieve it on modern [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-29T11:26:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-29T11:26:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png\" \/>\n<meta name=\"author\" content=\"Amit Kumar Tiwari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amit Kumar Tiwari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/\"},\"author\":{\"name\":\"Amit Kumar Tiwari\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257\"},\"headline\":\"Adding custom bulk actions on modern pages in PrestaShop 1.7\",\"datePublished\":\"2021-12-29T11:26:24+00:00\",\"dateModified\":\"2021-12-29T11:26:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/\"},\"wordCount\":312,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png\",\"keywords\":[\"Add Bulk Action in Grid Layout\",\"Add bulk action in PrestaShop\",\"Add custom action on modern pages\",\"bulk action\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/\",\"url\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/\",\"name\":\"Adding custom bulk actions on modern pages in PrestaShop 1.7 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png\",\"datePublished\":\"2021-12-29T11:26:24+00:00\",\"dateModified\":\"2021-12-29T11:26:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png\",\"width\":884,\"height\":492,\"caption\":\"adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding custom bulk actions on modern pages in PrestaShop 1.7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257\",\"name\":\"Amit Kumar Tiwari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0bfab402e3d85cb3f1ed4fbac60ad1c4532edd47917a00da0f77d94c75b54f7d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0bfab402e3d85cb3f1ed4fbac60ad1c4532edd47917a00da0f77d94c75b54f7d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Amit Kumar Tiwari\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/amitkr-tiwari139\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding custom bulk actions on modern pages in PrestaShop 1.7 - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/","og_locale":"en_US","og_type":"article","og_title":"Adding custom bulk actions on modern pages in PrestaShop 1.7 - Webkul Blog","og_description":"In this blog, we are going to learn how to add custom bulk action on the modern page in PrestaShop 1.7. In PrestaShop 1.7.x.x, admin controllers pages are being migrated on the Symfony framework so we cannot use legacy methods to use bulk actions on controllers. So let\u2019s understand how to achieve it on modern [...]","og_url":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-12-29T11:26:24+00:00","article_modified_time":"2021-12-29T11:26:27+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png","type":"","width":"","height":""}],"author":"Amit Kumar Tiwari","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Amit Kumar Tiwari","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/"},"author":{"name":"Amit Kumar Tiwari","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257"},"headline":"Adding custom bulk actions on modern pages in PrestaShop 1.7","datePublished":"2021-12-29T11:26:24+00:00","dateModified":"2021-12-29T11:26:27+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/"},"wordCount":312,"commentCount":1,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png","keywords":["Add Bulk Action in Grid Layout","Add bulk action in PrestaShop","Add custom action on modern pages","bulk action"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/","url":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/","name":"Adding custom bulk actions on modern pages in PrestaShop 1.7 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png","datePublished":"2021-12-29T11:26:24+00:00","dateModified":"2021-12-29T11:26:27+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image.png","width":884,"height":492,"caption":"adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7-image"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/adding-custom-bulk-actions-on-modern-pages-in-prestashop-1-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Adding custom bulk actions on modern pages in PrestaShop 1.7"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257","name":"Amit Kumar Tiwari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0bfab402e3d85cb3f1ed4fbac60ad1c4532edd47917a00da0f77d94c75b54f7d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0bfab402e3d85cb3f1ed4fbac60ad1c4532edd47917a00da0f77d94c75b54f7d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Amit Kumar Tiwari"},"url":"https:\/\/webkul.com\/blog\/author\/amitkr-tiwari139\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/317305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/388"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=317305"}],"version-history":[{"count":15,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/317305\/revisions"}],"predecessor-version":[{"id":380249,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/317305\/revisions\/380249"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=317305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=317305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=317305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}