成功导入ShopWare 5.4.6后,只有XML文件中的最后一篇文章可见

时间:2018-08-24 10:08:17

标签: mysql xml shopware

我想通过导入功能分发13个类别的26个文章。每个类别两个。

在前端:不幸的是,在每个类别中,我仅看到XML文件中的最后一篇文章(名称:bluesea)。同样在“新”和“最畅销”下,我只会看到这篇文章。

在XML文件(official example中):我给文章指定了不同的订货号,不同的主编号和不同的名称。 当然,类别有时是相同的。

我的XML的第一篇和最后一篇文章下方

<Root>
<articles>
    <article>
        <name>greensea</name>
        <ordernumber>1</ordernumber>
        <mainnumber>1</mainnumber>
        <tax>19.00</tax>
        <prices>
            <price>
                <group>EK</group>
                <price>2.99</price>
                <pseudoprice></pseudoprice>
                <baseprice></baseprice>
            </price>
        </prices>
        <active>1</active>
        <description>Isolierpacks..
        </description>
        <category>
            <categories>101</categories>
        </category>
        <description_long>1200g
        </description_long>
    </article>

    <article>
        <name>bluesea</name>
        <ordernumber>26</ordernumber>
        <mainnumber>26</mainnumber>
        <tax>19.00</tax>
        <prices>
            <price>
                <group>EK</group>
                <price>2.99</price>
                <pseudoprice></pseudoprice>
                <baseprice></baseprice>
            </price>
        </prices>
        <active>1</active>
        <description>Bluesea...
        </description>
        <category>
            <categories>103</categories>
        </category>
        <description_long>1 kg</description_long>
    </article>
</articles>
</Root>

以前,我安装了商店shopware 5.4.6,然后导入了13个类别(它们都是可见的),并创建了一个空主题,该主题继承了响应主题。 我也可以通过phpmyadmin访问数据库。

1 个答案:

答案 0 :(得分:1)

您的示例根本不起作用,因为它缺少供应商,这是创建新产品所需的最小值之一。文档中的示例对我来说很好。

enter image description here