2016-08-17 76 views
2

我已嘗試添加產品中的Prestashop與下面的數據format.I我得到錯誤「link_rewrite爲空「]]>``」「鏈接重寫」的錯誤添加

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

請給我建議,爲什麼我收到上述錯誤我?

感謝 Surajit

+0

您是否使用模塊通過XML導入? – sarcom

回答

0

link_rewrite所需要的變量已經正確的格式,如此微小,並沒有空格。

更換

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

有:

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

當你編輯你有一個名爲 「搜索引擎優化」 標籤的產品,檢查場 「Firendly URL」。

如果是空填充這個。並記住你必須啓用友好的網址在配置首選項 - > SEO & URL的 - >設置網址和設置爲「友好的URL」「是」