Jump to content

Edit History

s.elettronew

s.elettronew

Hi guys

I have problems with the webservice. I neet to update a manufacturer, only for a specific language. In my case, for example, i need to update the id_manufacturer 14 in the id_lang 4.

But he update the fields of id lang 4 but he leave me all fields of the other languages in blank.

So, mi url is structured like that:

https://mysite.com/api/manufacturers/14?language=4

And this is my XML structure:
 

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">

  <manufacturer>

    <id>14</id>

    <active>1</active>

    <name>NAME</name>

    <description>

      <language id="4">description></language>

    </description>

    <short_description>

      <language id="4">short description</language>

    </short_description>

    <meta_title>

      <language id="4">meta title</language>

    </meta_title>

    <meta_description>

      <language id="4">meta description</language>

    </meta_description>

    <meta_keywords>

      <language id="4">meta keywords</language>

    </meta_keywords>

  </manufacturer>

</prestashop>


The problem is the manufacturer of id_lang 4 is correctly updated, but the fields of all rest of languages, are blank now!
Example

613481038_Immagine2023-03-27120917.thumb.png.5f7d1b12743b8ef626c553fcb2ec910e.png

How can i concerne the modify just for the fields of id lang 4 and NOT leave in blank the fields of other languages?

s.elettronew

s.elettronew

Hi guys

I have problems with the webservice. I neet to update a manufacturer, only for a specific language. In my case, for example, i need to update the id_manufacturer 14 in the id_lang 4.

But he update the fields of id lang 4 but he leave me all fields of the other languages in blank.

So, mi url is structured like that:

https://mysite.com/api/manufacturers/14?language=4

And this is my XML structure:
 

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">

  <manufacturer>

    <id>14</id>

    <active>1</active>

    <name>NAME</name>

    <description>

      <language id="4">description></language>

    </description>

    <short_description>

      <language id="4">short description</language>

    </short_description>

    <meta_title>

      <language id="4">meta title</language>

    </meta_title>

    <meta_description>

      <language id="4">meta description</language>

    </meta_description>

    <meta_keywords>

      <language id="4">meta keywords</language>

    </meta_keywords>

  </manufacturer>

</prestashop>


The problem is the manufacturer of id_lang 4 is correctly updated, but the fields of all rest of languages, are blank now!
Example

613481038_Immagine2023-03-27120917.thumb.png.5f7d1b12743b8ef626c553fcb2ec910e.png

How can i concerne the modify just for the fields of id lang 4 and NOT leave in blank the fields of other languages?

×
×
  • Create New...