{"id":353326,"date":"2022-09-26T16:07:12","date_gmt":"2022-09-26T16:07:12","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=353326"},"modified":"2022-09-26T16:07:22","modified_gmt":"2022-09-26T16:07:22","slug":"update-module-multi-lang-data-with-prestashop-webservices","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/","title":{"rendered":"Update module multi-lang data using association with PrestaShop native API"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>In this blog, we are going to learn how to update module multi-lang data or configurations with native PrestaShop Webservices.<\/p>\n\n\n\n<p>In the previous <a href=\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/\" target=\"_blank\" rel=\"noreferrer noopener\">blog<\/a>, we updated the data that was not related to PrestaShop&#8217;s multi-lang concept. The process to enable the web services in Prestashop are same as mentioned in the previous blog.<\/p>\n\n\n\n<p>Suppose, we have a module <strong>demomodule<\/strong> that has a multi-lang field in the table and we want to update\/get the language-wise data with Prestashop&#8217;s post\/get API requests. For this, we use the concept of <a href=\"https:\/\/webkul.com\/blog\/associations-in-prestashop-webservice\/\" target=\"_blank\" rel=\"noreferrer noopener\">association<\/a>. <\/p>\n\n\n\n<p>Override&nbsp;<strong>$webserviceParameters<\/strong>&nbsp;protected variable of core Prestashop file product.php by module and add association for&nbsp;<strong>demomodule<\/strong>&nbsp;in the&nbsp;<strong>demomodule\/override\/product.php<\/strong>&nbsp;like below code :<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">protected $webserviceParameters = &#091;\n    &#039;objectMethods&#039; =&gt; &#091;\n        &#039;add&#039; =&gt; &#039;addWs&#039;,\n        &#039;update&#039; =&gt; &#039;updateWs&#039;,\n    ],\n    &#039;objectNodeNames&#039; =&gt; &#039;products&#039;,\n    &#039;fields&#039; =&gt; &#091;\n        &#039;id_manufacturer&#039; =&gt; &#091;\n            &#039;xlink_resource&#039; =&gt; &#039;manufacturers&#039;,\n        ],\n        &#039;id_supplier&#039; =&gt; &#091;\n            &#039;xlink_resource&#039; =&gt; &#039;suppliers&#039;,\n        ],\n        &#039;id_category_default&#039; =&gt; &#091;\n            &#039;xlink_resource&#039; =&gt; &#039;categories&#039;,\n        ],\n        &#039;new&#039; =&gt; &#091;],\n        &#039;cache_default_attribute&#039; =&gt; &#091;],\n        &#039;id_default_image&#039; =&gt; &#091;\n            &#039;getter&#039; =&gt; &#039;getCoverWs&#039;,\n            &#039;setter&#039; =&gt; &#039;setCoverWs&#039;,\n            &#039;xlink_resource&#039; =&gt; &#091;\n                &#039;resourceName&#039; =&gt; &#039;images&#039;,\n                &#039;subResourceName&#039; =&gt; &#039;products&#039;,\n            ],\n        ],\n        &#039;id_default_combination&#039; =&gt; &#091;\n            &#039;getter&#039; =&gt; &#039;getWsDefaultCombination&#039;,\n            &#039;setter&#039; =&gt; &#039;setWsDefaultCombination&#039;,\n            &#039;xlink_resource&#039; =&gt; &#091;\n                &#039;resourceName&#039; =&gt; &#039;combinations&#039;,\n            ],\n        ],\n        &#039;id_tax_rules_group&#039; =&gt; &#091;\n            &#039;xlink_resource&#039; =&gt; &#091;\n                &#039;resourceName&#039; =&gt; &#039;tax_rule_groups&#039;,\n            ],\n        ],\n        &#039;position_in_category&#039; =&gt; &#091;\n            &#039;getter&#039; =&gt; &#039;getWsPositionInCategory&#039;,\n            &#039;setter&#039; =&gt; &#039;setWsPositionInCategory&#039;,\n        ],\n        &#039;manufacturer_name&#039; =&gt; &#091;\n            &#039;getter&#039; =&gt; &#039;getWsManufacturerName&#039;,\n            &#039;setter&#039; =&gt; false,\n        ],\n        &#039;quantity&#039; =&gt; &#091;\n            &#039;getter&#039; =&gt; false,\n            &#039;setter&#039; =&gt; false,\n        ],\n        &#039;type&#039; =&gt; &#091;\n            &#039;getter&#039; =&gt; &#039;getWsType&#039;,\n            &#039;setter&#039; =&gt; &#039;setWsType&#039;,\n        ],\n    ],\n    &#039;associations&#039; =&gt; &#091;\n        &#039;categories&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;category&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n            ],\n        ],\n        &#039;images&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;image&#039;,\n            &#039;fields&#039; =&gt; &#091;&#039;id&#039; =&gt; &#091;]],\n        ],\n        &#039;combinations&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;combination&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n            ],\n        ],\n        &#039;product_option_values&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;product_option_value&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n            ],\n        ],\n        &#039;product_features&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;product_feature&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n                &#039;id_feature_value&#039; =&gt; &#091;\n                    &#039;required&#039; =&gt; true,\n                    &#039;xlink_resource&#039; =&gt; &#039;product_feature_values&#039;,\n                ],\n            ],\n        ],\n        &#039;tags&#039; =&gt; &#091;&#039;resource&#039; =&gt; &#039;tag&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n            ], ],\n        &#039;stock_availables&#039; =&gt; &#091;&#039;resource&#039; =&gt; &#039;stock_available&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n                &#039;id_product_attribute&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n            ],\n            &#039;setter&#039; =&gt; false,\n        ],\n        &#039;attachments&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;attachment&#039;,\n            &#039;api&#039; =&gt; &#039;attachments&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n            ],\n        ],\n        &#039;accessories&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;product&#039;,\n            &#039;api&#039; =&gt; &#039;products&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;\n                    &#039;required&#039; =&gt; true,\n                    &#039;xlink_resource&#039; =&gt; &#039;products&#039;, ],\n            ],\n        ],\n        &#039;product_bundle&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;product&#039;,\n            &#039;api&#039; =&gt; &#039;products&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;id&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n                &#039;id_product_attribute&#039; =&gt; &#091;],\n                &#039;quantity&#039; =&gt; &#091;],\n            ],\n        ],\n        &#039;wk_fields&#039; =&gt; &#091;\n            &#039;resource&#039; =&gt; &#039;wk_field&#039;,\n            &#039;api&#039; =&gt; &#039;products&#039;,\n            &#039;fields&#039; =&gt; &#091;\n                &#039;fav_country&#039; =&gt; &#091;&#039;required&#039; =&gt; true, &#039;i18n&#039; =&gt; true],\n            ],\n            &#039;setter&#039; =&gt; &#039;setFavCountryFieldData&#039;,\n            &#039;getter&#039; =&gt; &#039;getFavCountryFieldData&#039;\n        ],\n    ],\n];<\/pre>\n\n\n\n<p> With the <strong>i18n<\/strong> parameter, it will create a language-wise node of data associated with the product and write the given code in the getter function of demomodule\/override\/product.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">public function getFavCountryFieldData()\n{\n    $records = Db::getInstance()-&gt;executeS(\n        &#039;SELECT * FROM  `&#039;._DB_PREFIX_.&#039;wk_field` WHERE `id_product` = &#039;.(int)$this-&gt;id\n    );\n    $finalData = &#091;];\n    if (!empty($records)) {\n        foreach ($records as $data) {\n            $fieldData = &#091;];\n            foreach (LanguageCore::getLanguages(true) as $lang) {\n                $langData = Db::getInstance()-&gt;getValue(\n                    &#039;SELECT `fav_country` FROM  `&#039;._DB_PREFIX_.&#039;wk_field_lang`\n                    WHERE `id_wk_field` = &#039;.(int)$data&#091;&#039;id_wk_field&#039;] .\n                    &#039; AND `id_lang` = &#039;.(int)$lang&#091;&#039;id_lang&#039;]\n                );\n                $fieldData&#091;$lang&#091;&#039;id_lang&#039;]] = $langData;\n            }\n            $finalData&#091;]&#091;&#039;fav_country&#039;] = $fieldData;\n        }\n    }\n    return $finalData;\n}<\/pre>\n\n\n\n<p>The output will be like this on API call : <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1048\" height=\"525\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png\" alt=\"screenshot-2022.09.23-21_18_38\" class=\"wp-image-353328\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png 1048w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38-300x150.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38-250x125.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38-768x385.png 768w\" sizes=\"(max-width: 1048px) 100vw, 1048px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>To update data, we need to override <strong>\/classes\/webservice\/WebserviceRequest.php<\/strong> class function <strong>saveEntityFromXml<\/strong>  like the below code<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">if (isset($attributes-&gt;associations)) {\n    foreach ($attributes-&gt;associations-&gt;children() as $association) {\n        if (isset($this-&gt;resourceConfiguration&#091;&#039;associations&#039;]&#091;$association-&gt;getName()])) {\n            $assocItems = $association-&gt;children();\n            $values = &#091;];\n            foreach ($assocItems as $assocItem) {\n                $fields = $assocItem-&gt;children();\n                $entry = &#091;];\n                foreach ($fields as $fieldName =&gt; $fieldValue) {\n                    if ($fieldName == &#039;fav_country&#039;) {\n                        foreach ($fieldValue as $v) {\n                            $entry&#091;$fieldName]&#091;(int) $v&#091;&#039;id&#039;]] = (string)$v&#091;0];\n                        }\n                    } else {\n                        $entry&#091;$fieldName] = (string) $fieldValue;\n                    }\n                }\n                $values&#091;] = $entry;\n            }\n            $setter = $this-&gt;resourceConfiguration&#091;&#039;associations&#039;]&#091;$association-&gt;getName()]&#091;&#039;setter&#039;];\n            if (null !== $setter &amp;&amp; $setter &amp;&amp; method_exists($object, $setter) &amp;&amp; !$object-&gt;$setter($values)) {\n                $this-&gt;setError(500, &#039;Error occurred while setting the &#039; . $association-&gt;getName() . &#039; value&#039;, 85);\n                return false;\n            }\n        } elseif ($association-&gt;getName() != &#039;i18n&#039;) {\n            $this-&gt;setError(400, &#039;The association &quot;&#039; . $association-&gt;getName() . &#039;&quot; does not exists&#039;, 86);\n            return false;\n        }\n    }\n}<\/pre>\n\n\n\n<p>In the above code, we have added the <strong>fav_country<\/strong> country condition to pass the language-wise data array to the setter function<\/p>\n\n\n\n<p>Now, define the setter function in the demomodule\/override\/product.php file like this<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">public function setFavCountryFieldData($postData)\n{\n    \/*\n        Do update activity\n        You will get language wise data array on API call\n        like &#039;fav_country&#039; = array(\n            1 =&gt; &#039;Test EN&#039;\n            2 =&gt; &#039;Test FR&#039;\n            3 =&gt; &#039;Test DE&#039;\n        )\n    *\/\n    return true;\n}<\/pre>\n\n\n\n<p> <strong>Note:<\/strong> After the above process disable and enable the installed module (demomodule).<\/p>\n\n\n\n<p>That\u2019s all about this blog.<\/p>\n\n\n\n<p>If any issue or doubt please feel free to mention it in the comment section.<\/p>\n\n\n\n<p>I would be happy to help.<\/p>\n\n\n\n<p>Also, you can explore our&nbsp;<a href=\"https:\/\/webkul.com\/prestashop-development\/\">PrestaShop Development Services<\/a>&nbsp;&amp; a large range of quality&nbsp;<a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt contact us at&nbsp;<a href=\"mailto:support@webkul.com\">support@webkul.com<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn how to update module multi-lang data or configurations with native PrestaShop Webservices. In the previous blog, we updated the data that was not related to PrestaShop&#8217;s multi-lang concept. The process to enable the web services in Prestashop are same as mentioned in the previous blog. Suppose, we <a href=\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":388,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[292,2065,4126,289,3291,3283,3294,294],"class_list":["post-353326","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-api","tag-prestashop","tag-prestashop-1-7","tag-prestashop-module","tag-prestashop-webservice","tag-prestashop-webservice-api","tag-webservice-api","tag-webservices"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Update module multi-lang data using association with PrestaShop native API - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Update module multi-lang data using association with PrestaShop native API - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we are going to learn how to update module multi-lang data or configurations with native PrestaShop Webservices. In the previous blog, we updated the data that was not related to PrestaShop&#8217;s multi-lang concept. The process to enable the web services in Prestashop are same as mentioned in the previous blog. Suppose, we [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-26T16:07:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-26T16:07:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png\" \/>\n<meta name=\"author\" content=\"Amit Kumar Tiwari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amit Kumar Tiwari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/\"},\"author\":{\"name\":\"Amit Kumar Tiwari\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257\"},\"headline\":\"Update module multi-lang data using association with PrestaShop native API\",\"datePublished\":\"2022-09-26T16:07:12+00:00\",\"dateModified\":\"2022-09-26T16:07:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/\"},\"wordCount\":294,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png\",\"keywords\":[\"api\",\"prestashop\",\"Prestashop 1.7\",\"prestashop module\",\"Prestashop Webservice\",\"Prestashop WebService API\",\"Webservice API\",\"webservices\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/\",\"url\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/\",\"name\":\"Update module multi-lang data using association with PrestaShop native API - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png\",\"datePublished\":\"2022-09-26T16:07:12+00:00\",\"dateModified\":\"2022-09-26T16:07:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png\",\"width\":1048,\"height\":525,\"caption\":\"screenshot-2022.09.23-21_18_38\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update module multi-lang data using association with PrestaShop native API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257\",\"name\":\"Amit Kumar Tiwari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0bfab402e3d85cb3f1ed4fbac60ad1c4532edd47917a00da0f77d94c75b54f7d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0bfab402e3d85cb3f1ed4fbac60ad1c4532edd47917a00da0f77d94c75b54f7d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Amit Kumar Tiwari\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/amitkr-tiwari139\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Update module multi-lang data using association with PrestaShop native API - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/","og_locale":"en_US","og_type":"article","og_title":"Update module multi-lang data using association with PrestaShop native API - Webkul Blog","og_description":"In this blog, we are going to learn how to update module multi-lang data or configurations with native PrestaShop Webservices. In the previous blog, we updated the data that was not related to PrestaShop&#8217;s multi-lang concept. The process to enable the web services in Prestashop are same as mentioned in the previous blog. Suppose, we [...]","og_url":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2022-09-26T16:07:12+00:00","article_modified_time":"2022-09-26T16:07:22+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png","type":"","width":"","height":""}],"author":"Amit Kumar Tiwari","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Amit Kumar Tiwari","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/"},"author":{"name":"Amit Kumar Tiwari","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257"},"headline":"Update module multi-lang data using association with PrestaShop native API","datePublished":"2022-09-26T16:07:12+00:00","dateModified":"2022-09-26T16:07:22+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/"},"wordCount":294,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png","keywords":["api","prestashop","Prestashop 1.7","prestashop module","Prestashop Webservice","Prestashop WebService API","Webservice API","webservices"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/","url":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/","name":"Update module multi-lang data using association with PrestaShop native API - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png","datePublished":"2022-09-26T16:07:12+00:00","dateModified":"2022-09-26T16:07:22+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/09\/screenshot-2022.09.23-21_18_38.png","width":1048,"height":525,"caption":"screenshot-2022.09.23-21_18_38"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/update-module-multi-lang-data-with-prestashop-webservices\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Update module multi-lang data using association with PrestaShop native API"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257","name":"Amit Kumar Tiwari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0bfab402e3d85cb3f1ed4fbac60ad1c4532edd47917a00da0f77d94c75b54f7d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0bfab402e3d85cb3f1ed4fbac60ad1c4532edd47917a00da0f77d94c75b54f7d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Amit Kumar Tiwari"},"url":"https:\/\/webkul.com\/blog\/author\/amitkr-tiwari139\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/353326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/388"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=353326"}],"version-history":[{"count":10,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/353326\/revisions"}],"predecessor-version":[{"id":353441,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/353326\/revisions\/353441"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=353326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=353326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=353326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}