Skip to content

Commit 26a8fb8

Browse files
ENGCOM-3283: Feature/import success page improvement #138
- Merge Pull Request magento-engcom/import-export-improvements#138 from sawebvisum/import-export-improvements:feature/importSuccessPageImprovement - Merged commits: 1. 98715ca 2. 6b2a6d0
2 parents 77af5d6 + 6b2a6d0 commit 26a8fb8

File tree

1 file changed

+14
-0
lines changed
  • app/code/Magento/ImportExport/Controller/Adminhtml/Import

1 file changed

+14
-0
lines changed

app/code/Magento/ImportExport/Controller/Adminhtml/Import/Start.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,20 @@ public function execute()
9393
$this->addErrorMessages($resultBlock, $errorAggregator);
9494
} else {
9595
$this->importModel->invalidateIndex();
96+
97+
$noticeHtml = $this->historyModel->getSummary();
98+
99+
if ($this->historyModel->getErrorFile()) {
100+
$noticeHtml .= '<div class="import-error-wrapper">' . __('Only the first 100 errors are shown. ')
101+
. '<a href="'
102+
. $this->createDownloadUrlImportHistoryFile($this->historyModel->getErrorFile())
103+
. '">' . __('Download full report') . '</a></div>';
104+
}
105+
106+
$resultBlock->addNotice(
107+
$noticeHtml
108+
);
109+
96110
$this->addErrorMessages($resultBlock, $errorAggregator);
97111
$resultBlock->addSuccess(__('Import successfully done'));
98112
}

0 commit comments

Comments
 (0)