Import/Export Add-On
The Import/Export add-on (MageB2B_SubloginImportExport) adds bulk tooling for Sublogins:
- Export selected sublogins from the Admin grid as CSV
- Import sublogins from a CSV via a CLI command
Installation
composer config bearer.repo.softwaresilo.io composer config repositories.softwaresilo composer https://repo.softwaresilo.io/ composer require mageb2b/sublogin-importexport:* php bin/magento module:enable MageB2B_SubloginImportExport php bin/magento setup:upgrade php bin/magento cache:flush Admin Export (Grid Mass Action)
After enabling the module you get an Export mass action in:
- Customers >Sublogins (Sublogin grid)
Workflow:
- Select one or more sublogins in the grid
- Choose Export
- Magento downloads a generated CSV
Screenshot placeholder: Sublogin grid with “Export” mass action
Export Format Notes
- Passwords are not exported.
- The export includes up to 3 addresses per sublogin (
address_1_*…address_3_*).
CLI Import
The module provides a CLI command:
php bin/magento sublogin:import-sublogin --behavior=add_update Supported behaviors:
appendadd_updatereplacedelete
Optional flags:
--field_separator=,--field_multiple_value_separator=,--fields_enclosure=0--delete_file_after_import=1(defaults to1)
Screenshot placeholder: CLI import run + resulting sublogins in admin grid
Sample CSV
A sample CSV file is shipped with the module:
vendor/mageb2b/sublogin-importexport/Files/Sample/sublogin.csv
Tip: Start by exporting a few existing sublogins and use that CSV as your “real” template to avoid missing fields.
