Jump to content

Prestashop link_rewrite is empty


Trejo

Recommended Posts

Hola , escribo para saber si alguien me puede ayudar...

Estoy tratando de actualizar un producto en Prestashop por medio de su webservice utilizando el código de ejemplo de  Github, pero al momento de actualizar me da el error de Property Product->link_rewrite is empty, aun cuando si envío un texto. Ya busque y trate de resolverlo de varias veces pero no queda espero que puedan ayudarme, adjunto el xml que envío y la respuesta.

XML SENT
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<product>
	<id>8</id>
	<id_manufacturer>0</id_manufacturer>
	<id_supplier>0</id_supplier>
	<id_category_default xlink:href="http://mimundo.mx/prestashop/api/categories/2">2</id_category_default>
	<new></new>
	<cache_default_attribute>0</cache_default_attribute>
	<id_default_image xlink:href="http://mimundo.mx/prestashop/api/images/products/8/24" notFilterable="true">24</id_default_image>
	<id_default_combination notFilterable="true"></id_default_combination>
	<id_tax_rules_group xlink:href="http://mimundo.mx/prestashop/api/tax_rule_groups/1">1</id_tax_rules_group>
	<position_in_category notFilterable="true">6</position_in_category>
	
	
	<type notFilterable="true">simple</type>
	<id_shop_default>1</id_shop_default>
	<reference>P055454</reference>
	<supplier_reference></supplier_reference>
	<location></location>
	<width>0.000000</width>
	<height>0.000000</height>
	<depth>0.000000</depth>
	<weight>0.000000</weight>
	<quantity_discount>0</quantity_discount>
	<ean13>6546468465464</ean13>
	<upc></upc>
	<cache_is_pack>0</cache_is_pack>
	<cache_has_attachments>0</cache_has_attachments>
	<is_virtual>0</is_virtual>
	<on_sale>1</on_sale>
	<online_only>0</online_only>
	<ecotax>0.000000</ecotax>
	<minimal_quantity>1</minimal_quantity>
	<price>20.000000</price>
	<wholesale_price>50.000000</wholesale_price>
	<unity></unity>
	<unit_price_ratio>0.000000</unit_price_ratio>
	<additional_shipping_cost>0.00</additional_shipping_cost>
	<customizable>0</customizable>
	<text_fields>0</text_fields>
	<uploadable_files>0</uploadable_files>
	<active>1</active>
	<redirect_type>404</redirect_type>
	<id_product_redirected>0</id_product_redirected>
	<available_for_order>1</available_for_order>
	<available_date>0000-00-00</available_date>
	<condition>used</condition>
	<show_price>1</show_price>
	<indexed>1</indexed>
	<visibility>both</visibility>
	<advanced_stock_management>0</advanced_stock_management>
	<date_add>2018-09-20 06:54:47</date_add>
	<date_upd>2018-09-20 08:19:02</date_upd>
	<pack_stock_type>3</pack_stock_type>
	<meta_description></meta_description>
	<meta_keywords></meta_keywords>
	<meta_title></meta_title>
	<link_rewrite>hola</link_rewrite>
	<name>nombre del productoo</name>
	<description></description>
	<description_short></description_short>
	<available_now></available_now>
	<available_later></available_later>
<associations></associations>
</product>
</prestashop>
RETURN HTTP BODY
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[84]]></code>
<message><![CDATA[Validation error: "Property Product->link_rewrite is empty"]]></message>
</error>
</errors>
</prestashop>
Edited by Trejo
letra incorrecta (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...