Jump to content

Problema insertando producto con imagen vía webservice


miguelangelss4

Recommended Posts

Buenas,

 

tengo un pequeño problema dando de alta artículos vía webservice.

el XML que le paso a prestashop es este:

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<product>
 <id>40</id>
<id_manufacturer>1</id_manufacturer>
<id_supplier>1</id_supplier>
<id_category_default>11</id_category_default>
<new>1</new>
<cache_default_attribute>1</cache_default_attribute>
<id_default_image>16</id_default_image>
<id_default_combination>1</id_default_combination>
<id_tax_rules_group>1</id_tax_rules_group>
<id_shop_default>1</id_shop_default>
<reference>1</reference>
<supplier_reference>1</supplier_reference>
<location>1</location>
<width></width>
<height></height>
<depth></depth>
<weight></weight>
<quantity_discount></quantity_discount>
<ean13></ean13>
<upc></upc>
<cache_is_pack></cache_is_pack>
<cache_has_attachments></cache_has_attachments>
<is_virtual></is_virtual>
<on_sale></on_sale>
<online_only></online_only>
<ecotax></ecotax>
<minimal_quantity></minimal_quantity>
<price>123</price>
<wholesale_price></wholesale_price>
<unity></unity>
<unit_price_ratio></unit_price_ratio>
<additional_shipping_cost></additional_shipping_cost>
<customizable></customizable>
<text_fields></text_fields>
<uploadable_files></uploadable_files>
<active>0</active>
<available_for_order></available_for_order>
<available_date></available_date>
<condition></condition>
<show_price></show_price>
<indexed></indexed>
<visibility></visibility>
<advanced_stock_management></advanced_stock_management>
<date_upd></date_upd>
<meta_description><language id="1"></language><language id="3"></language><language id="9"></language><language id="6"></language><language id="35"></language><language id="36"></language><language id="37"></language><language id="38"></language></meta_description>
<meta_keywords><language id="1"></language><language id="3"></language><language id="9"></language><language id="6"></language><language id="35"></language><language id="36"></language><language id="37"></language><language id="38"></language></meta_keywords>
<meta_title><language id="1"></language><language id="3"></language><language id="9"></language><language id="6"></language><language id="35"></language><language id="36"></language><language id="37"></language><language id="38"></language></meta_title>
<link_rewrite>
   <language id="1">ipod-Nuevo</language>
   <language id="3">ipod-nano</language>
   <language id="9">ipod-nano</language>
   <language id="6">ipod-nano</language>
</link_rewrite>
<name>
   <language id="1">ipod-Nuevo</language>
   <language id="3">ipod-nano</language>
   <language id="9">ipod-nano</language>
   <language id="6">ipod-nano</language>
 </name>
<description>
   <language id="1">ipod-Nuevo</language>
   <language id="3">ipod-nano</language>
   <language id="9">ipod-nano</language>
   <language id="6">ipod-nano</language>
 </description>
<description_short>
   <language id="1">ipod-Nuevo</language>
   <language id="3">ipod-nano</language>
   <language id="9">ipod-nano</language>
   <language id="6">ipod-nano</language>
 </description_short>
<available_now>
   <language id="1">ipod-Nuevo</language>
   <language id="3">ipod-nano</language>
   <language id="9">ipod-nano</language>
   <language id="6">ipod-nano</language>
 </available_now>
<available_later>
   <language id="1">ipod-Nuevo</language>
   <language id="3">ipod-nano</language>
   <language id="9">ipod-nano</language>
   <language id="6">ipod-nano</language>
 </available_later>
 <associations>
   <categories node_type="category">
  <category>
    <id>11</id>
  </category>
   </categories>
   <images node_type="image">
  <image>
    <id>28</id>
  </image>
   </images>
 </associations>
</product>
</prestashop>

lo coge todo bien, pero el campo <image> y <id_default_image> me los toma como si se los pasara vacíos...

 

¿alguien me puede echar un cable?

gracias.

Link to comment
Share on other sites

  • 3 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...