{"id":348876,"date":"2022-08-24T15:43:32","date_gmt":"2022-08-24T15:43:32","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=348876"},"modified":"2022-08-24T15:43:41","modified_gmt":"2022-08-24T15:43:41","slug":"update-module-configurations-with-native-prestashop-webservices","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/","title":{"rendered":"Update module configurations with native PrestaShop webservices"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>In this blog, we are going to learn how to update module data or configurations with native PrestaShop Webservice. As we know that Prestashop has Webservice API for its core PrestaShop tables, If we modify, or get data from native Prestashop API like products, customers, etc then it does not show any third-party module data associated with a particular product or customer. In this blog, we&#8217;ll see step-by-step processes to achieve it.<\/p>\n\n\n\n<p><strong>1- Enable PrestaShop webservices<\/strong><\/p>\n\n\n\n<p>Enable Prestashop Webservice from Advanced Parameters-&gt;Webservice section and Webservice account key for products. It will be shown like this <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"561\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1200x561.png\" alt=\"ps_webservice_img_1\" class=\"wp-image-348877\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1200x561.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-300x140.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-250x117.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-768x359.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1536x719.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1.png 1588w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>2- Override core Prestashop class<\/strong><\/p>\n\n\n\n<p>Suppose, we have a module <strong>demomodule<\/strong> that set  some configuration for the product and we want to update this data with the native products API of Prestashop<\/p>\n\n\n\n<p>For this, override <strong>$webserviceParameters<\/strong> protected variable of core Prestashop file product.php by module and add association for <strong>demomodule<\/strong> in the <strong>demomodule\/override\/product.php<\/strong>   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_hbcss&#039; =&gt; &#091;\n                &#039;resource&#039; =&gt; &#039;wk_hbcs&#039;,\n                &#039;api&#039; =&gt; &#039;wk_hbcss&#039;,\n                &#039;fields&#039; =&gt; &#091;\n                    &#039;id_wk_hbcs&#039; =&gt; &#091;&#039;required&#039; =&gt; true,],\n                    &#039;country&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n                    &#039;id_product&#039; =&gt; &#091;&#039;required&#039; =&gt; true,],\n                    &#039;id_shop&#039; =&gt; &#091;&#039;required&#039; =&gt; true],\n                ],\n                &#039;setter&#039; =&gt; &#039;getWsWkHbcss&#039;,\n                &#039;getter&#039; =&gt; &#039;setWsWkHbcss&#039;,\n                &#039;xlink_resource&#039; =&gt; &#039;wk_hbcs&#039;,\n            ],\n        ],\n    ];<\/pre>\n\n\n\n<p><strong>3- Define setter\/getter<\/strong><\/p>\n\n\n\n<p>Define the setter and getter function to set and get data. These functions are responsible for the set and get data of module data. These are already declared in the association. wk_hbcs is the table to store the module data associated with products.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">    \/**\n     * get data from module\n     *\n     * @return void\n     *\/\n    public function getWsWkHbcss()\n    {\n        return Db::getInstance()-&gt;executeS(&#039;SELECT * FROM  `&#039;._DB_PREFIX_.&#039;wk_hbcs` WHERE `id_product` = &#039;.$this-&gt;id);\n    }\n\n    \/**\n     * Set data for module\n     *\n     * @param int $idCountries\n     * @return void\n     *\/\n    public function setWsWkHbcss($idCountries)\n    {\n        Db::getInstance()-&gt;execute(&#039;DELETE FROM `&#039; . _DB_PREFIX_ . &#039;wk_hbcs` WHERE id_product = &#039; .(int)$this-&gt;id . &#039; AND id_shop=&#039; . (int)$this-&gt;id_shop_default);\n        if (is_array($idCountries) &amp;&amp; !empty($idCountries)) {\n            foreach ($idCountries as $idCountry) {\n                $data = array(\n                &#039;country&#039; =&gt; (int) $idCountry&#091;&#039;country&#039;],\n                &#039;id_product&#039; =&gt; (int) $this-&gt;id,\n                &#039;id_shop&#039; =&gt; (int) $this-&gt;id_shop_default,\n            );\n                Db::getInstance()-&gt;insert(\n                    &#039;wk_hbcs&#039;,\n                    $data,\n                );\n            }\n        }\n        return true;\n    }<\/pre>\n\n\n\n<p>Now, when you fetch product data with API then it will also show module data &#8211; <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"980\" height=\"511\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/screenshot-2022.08.23-22_12_54.png\" alt=\"screenshot-2022.08.23-22_12_54\" class=\"wp-image-349122\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/screenshot-2022.08.23-22_12_54.png 980w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/screenshot-2022.08.23-22_12_54-300x156.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/screenshot-2022.08.23-22_12_54-250x130.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/screenshot-2022.08.23-22_12_54-768x400.png 768w\" sizes=\"(max-width: 980px) 100vw, 980px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>If you want to create a separate API for the module just like native Prestashop tables then follow our other <a href=\"https:\/\/webkul.com\/blog\/creating-prestashop-module-webservice-api\/\" target=\"_blank\" rel=\"noreferrer noopener\">blog<\/a>.<\/p>\n\n\n\n<p>Similarly, this process will also work for other classes of Prestashop like customers.<\/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","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn how to update module data or configurations with native PrestaShop Webservice. As we know that Prestashop has Webservice API for its core PrestaShop tables, If we modify, or get data from native Prestashop API like products, customers, etc then it does not show any third-party module data <a href=\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-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,289,3291,3283,294],"class_list":["post-348876","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-api","tag-prestashop","tag-prestashop-module","tag-prestashop-webservice","tag-prestashop-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 configurations with native PrestaShop webservices - 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-configurations-with-native-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 configurations with native PrestaShop webservices - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we are going to learn how to update module data or configurations with native PrestaShop Webservice. As we know that Prestashop has Webservice API for its core PrestaShop tables, If we modify, or get data from native Prestashop API like products, customers, etc then it does not show any third-party module data [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-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-08-24T15:43:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-24T15:43:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1200x561.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-configurations-with-native-prestashop-webservices\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/\"},\"author\":{\"name\":\"Amit Kumar Tiwari\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257\"},\"headline\":\"Update module configurations with native PrestaShop webservices\",\"datePublished\":\"2022-08-24T15:43:32+00:00\",\"dateModified\":\"2022-08-24T15:43:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/\"},\"wordCount\":318,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1200x561.png\",\"keywords\":[\"api\",\"prestashop\",\"prestashop module\",\"Prestashop Webservice\",\"Prestashop WebService API\",\"webservices\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/\",\"url\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/\",\"name\":\"Update module configurations with native PrestaShop webservices - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1200x561.png\",\"datePublished\":\"2022-08-24T15:43:32+00:00\",\"dateModified\":\"2022-08-24T15:43:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1.png\",\"width\":1588,\"height\":743,\"caption\":\"ps_webservice_img_1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update module configurations with native PrestaShop webservices\"}]},{\"@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 configurations with native PrestaShop webservices - 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-configurations-with-native-prestashop-webservices\/","og_locale":"en_US","og_type":"article","og_title":"Update module configurations with native PrestaShop webservices - Webkul Blog","og_description":"In this blog, we are going to learn how to update module data or configurations with native PrestaShop Webservice. As we know that Prestashop has Webservice API for its core PrestaShop tables, If we modify, or get data from native Prestashop API like products, customers, etc then it does not show any third-party module data [...]","og_url":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2022-08-24T15:43:32+00:00","article_modified_time":"2022-08-24T15:43:41+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1200x561.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-configurations-with-native-prestashop-webservices\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/"},"author":{"name":"Amit Kumar Tiwari","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9ce9e306c32df23a286ed9b5eb81257"},"headline":"Update module configurations with native PrestaShop webservices","datePublished":"2022-08-24T15:43:32+00:00","dateModified":"2022-08-24T15:43:41+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/"},"wordCount":318,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1200x561.png","keywords":["api","prestashop","prestashop module","Prestashop Webservice","Prestashop WebService API","webservices"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/","url":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/","name":"Update module configurations with native PrestaShop webservices - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1-1200x561.png","datePublished":"2022-08-24T15:43:32+00:00","dateModified":"2022-08-24T15:43:41+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2022\/08\/ps_webservice_img_1.png","width":1588,"height":743,"caption":"ps_webservice_img_1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/update-module-configurations-with-native-prestashop-webservices\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Update module configurations with native PrestaShop webservices"}]},{"@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\/348876","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=348876"}],"version-history":[{"count":6,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/348876\/revisions"}],"predecessor-version":[{"id":349391,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/348876\/revisions\/349391"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=348876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=348876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=348876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}