Loading...
Loading...
Use when adding or changing a Bagisto import — an Importer class, a file source, the importers registry, the queued import pipeline, or a stuck or failing import job. Trigger phrases include "import", "importer", "data transfer", "CSV", "XLSX", "XML", "bulk upload", "import batch", "queued import", "validate rows".
npx skill4agent add bagisto/agent-skills bagisto-data-transferpackages/Webkul/DataTransferbagisto-datagrid-development| File | Load when |
|---|---|
| importers.md | Writing or changing an Importer — the contract, validation, batches |
| pipeline.md | The state machine, queued jobs, and debugging a stuck import |
Config/importers.phpimportersdata_transfer.importers'tax_rates' => [
'title' => 'data_transfer::app.importers.tax-rates.title',
'importer' => 'Webkul\DataTransfer\Helpers\Importers\TaxRate\Importer',
'sample_paths' => [
'csv' => 'bagisto-data-transfer/samples/csv/tax-rates.csv',
'xls' => 'bagisto-data-transfer/samples/xls/tax-rates.xls',
'xlsx' => 'bagisto-data-transfer/samples/xlsx/tax-rates.xlsx',
'xml' => 'bagisto-data-transfer/samples/xml/tax-rates.xml',
],
],config('importers')Importconfig('importers.'.$type.'.importer')typeHelpers\Importers\AbstractImporterabstract public function validateRow(array $rowData, int $rowNumber): bool;
abstract public function importBatch(ImportBatchContract $importBatchContract): bool;$validColumnNames$masterAttributeCode$permanentAttributes$messagesHelpers\Sources\CSVXLSXLSXXMLAbstractSourcegenerateErrorReport(array $errors)$this->sourcevalidateRow()stop-on-errorsimportBatch()AbstractImporter::BATCH_SIZEtrans()data_transfer::isLinkingRequired()isIndexingRequired()QUEUE_CONNECTION=sync