【问题标题】:Display SKU in magento product import data-flow profiles在 magento 产品导入数据流配置文件中显示 SKU
【发布时间】:2023-03-23 04:48:01
【问题描述】:

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

请看上面的截图

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

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

【问题讨论】:

    标签: magento import dataflow profiles


    【解决方案1】:

    数据流错误消息由以下人员生成:

    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>'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多