Jump to content

Update Manufacturer for only one languages with web service prestashop


s.elettronew

Recommended Posts

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?

Edited by s.elettronew (see edit history)
Link to comment
Share on other sites

  • s.elettronew changed the title to Update Manufacturer for only one languages with web service prestashop

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