maxcode / module-export-select-all
EN: Adds Exclude All / Include All / Invert Selection buttons to the attribute grid of the Magento 2 export screen. FR : Ajoute les boutons Tout exclure / Tout inclure / Inverser la sélection à la grille des attributs de l'écran d'export de Magento 2.
Package info
github.com/eBusiness360/module-export-select-all
Type:magento2-module
pkg:composer/maxcode/module-export-select-all
Requires
- php: ~8.1.0||~8.2.0||~8.3.0||~8.4.0
- magento/framework: ^103.0
- magento/module-backend: *
- magento/module-import-export: *
- maxcode/module-core: ^1.0.11
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
English · Français
Maxcode Export Select All for Magento 2
Exclude, include or invert every attribute of the Magento export screen in one click. Free, no core override, nothing to configure.
The problem
The attribute grid of System > Data Transfer > Export lists every attribute with an Exclude box, all unchecked. To export only a few columns you have to tick dozens of boxes one by one.
What it does
- Adds Exclude All, Include All and Invert Selection next to Search and Reset Filter.
- Typical use: click Exclude All, then untick the few attributes you want to export.
- The buttons follow the grid when it reloads after a filter or a search.
- No core override, no configuration, no database table. One plugin and a small script on the export page.
- Translated into English and French.
Installation
composer require maxcode/module-export-select-all bin/magento module:enable Maxcode_ExportSelectAll bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy -f bin/magento cache:flush
The static content step is only for the small script of the export page. If the buttons do not appear on a server with OPcache, reset the PHP OPcache as well.
Requirements: Magento Open Source or Adobe Commerce 2.4.4 or later, PHP 8.1 or later. Tested up to Magento Open Source 2.4.8.
For developers
| Piece | Role |
|---|---|
Plugin/AddSelectionButtons |
afterGetMainButtonsHtml on Magento\ImportExport\Block\Adminhtml\Export\Filter: appends the three buttons to the grid HTML |
view/adminhtml/web/js/select-all.js |
delegated click handler on the document: ticks or unticks the skip_attr[] boxes |
view/adminhtml/layout/adminhtml_export_index.xml, templates/init.phtml |
loads the script on the export page |
The buttons are part of the grid HTML, which Magento reloads by AJAX: that is why the handler is delegated and not attached to the buttons.
License and support
Free for any number of Magento installations that you own or operate. You receive the full source code and may adapt it to your needs; redistribution is not allowed. See LICENSE (free-module EULA).
Provided as is, without support or update commitment. For questions and paid services: ebusiness360.fr.