在magento产品导入数据流配置文件中显示SKU



https://i.stack.imgur.com/tAluR.png

请查看上面的屏幕截图

有什么方法可以在错误前显示有问题的产品SKU吗?或者至少是导入的CSV文件的行号?

如果您知道在哪里编辑,这应该是一个相当简单的过程。我没有:D请帮忙。

数据流错误消息由生成

app/code/core/Mage/Adminhtml/Block/System/Convert/Profile/Run.php

将此文件复制到:

app/code/local/Mage/Adminhtml/Block/System/Convert/Profile/Run.php

并查找以下内容:

'template' => '<li style="#{style}" id="#{id}">'
    . '<img id="#{id}_img" src="#{image}" class="v-middle" style="margin-right:5px"/>'
    . '<span id="#{id}_status" class="text">#{text}</span>'
    . '</li>',
'text'     => $this->__('Processed <strong>%s%% %s/%d</strong> records', '#{percent}', '#{updated}', $this->getBatchItemsCount()),
'successText'  => $this->__('Imported <strong>%s</strong> records', '#{updated}')

更改:

. '<span id="#{id}_status" class="text">#{text}</span>'

收件人:

. '<span id="#{id}_status" class="text">Row #{id} - #{text}</span>'

最新更新