【问题标题】:'link rewrite' error in prestashop product addprestashop 产品添加中的“链接重写”错误
【发布时间】:2016-12-23 15:16:42
【问题描述】:

我尝试使用以下数据格式在 prestashop 中添加产品。我收到错误 'link_rewrite is empty"]]>``'

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
    <product>
        <id_shop_default>1</id_shop_default>
        <name>
            <language id="1">BALERO 623-2RS</language>
        </name>
        <price>9.80</price>
        <reference>A-10273</reference>
        <description>BALERO 623-2RS</description>
        <active>1</active>
        <advanced_stock_management>1</advanced_stock_management>
        <id_tax_rules_group>1</id_tax_rules_group>
        <width>0.000000</width>
        <height>0.000000</height>
        <depth>0.000000</depth>
        <weight>0.000000</weight>
        <on_sale>0</on_sale>
        <online_only>0</online_only>
        <minimal_quantity>0</minimal_quantity>
        <customizable>0</customizable>
        <text_fields>0</text_fields>
        <uploadable_files>0</uploadable_files>
        <available_for_order>1</available_for_order>
        <condition>new</condition>
        <show_price>1</show_price>
        <date_add>2016-08-10</date_add>
        <associations>
            <categories>
                <id>2</id>
            </categories>
        </associations>
        <link_rewrite>
            <language id="1">BALERO</language>
        </link_rewrite>
    </product>
</prestashop>

请给我建议为什么我会出现上述错误?

谢谢 苏拉吉特

【问题讨论】:

  • 您是否使用模块通过 XML 导入?

标签: xml prestashop prestashop-1.6


【解决方案1】:

link_rewrite 需要已经采用正确格式的变量,非常小且没有空格。

替换

<link_rewrite>
    <language id="1">BALERO</language>
</link_rewrite>

与:

<link_rewrite>
    <language id="1">balero</language>
</link_rewrite>

【讨论】:

    【解决方案2】:

    当您编辑产品时,您有一个名为“SEO”的选项卡,请选中“Firendly URL”字段。

    如果为空,请填写。请记住,您必须在配置首选项 -> SEO & URL's -> 设置 URL 并为“友好 URL”设置“是”中启用友好 URL

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-26
      • 2015-10-19
      • 2022-06-10
      相关资源
      最近更新 更多