{"id":415938,"date":"2023-12-27T14:21:12","date_gmt":"2023-12-27T14:21:12","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=415938"},"modified":"2024-01-04T07:48:11","modified_gmt":"2024-01-04T07:48:11","slug":"how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/","title":{"rendered":"How to save and display a custom form field value using the PrestaShop hook"},"content":{"rendered":"\n<p>In this blog, we will learn how to save the custom form field and display the updated value on the Product Page using the PrestaShop hook. So, we will define PrestaShop&#8217;s given hook.<br>I hope you already know how to add a custom form field on the PrestaShop product page using hook. If are new to this please read our previous blog. Please <a href=\"https:\/\/webkul.com\/blog\/how-to-add-a-custom-form-field-on-the-prestashop-product-page-using-hook\/\">click here<\/a>.<\/p>\n\n\n\n<p>Let&#8217;s continue to our topic,<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Register the PrestaShop&#8217;s given hook for product save i.e. <strong>&#8220;actionProductSave&#8221;<\/strong> in the install function as follows<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\"> public function install()\n    {\n        return parent::install() &amp;&amp; $this-&gt;registerHook(&#091;&#039;actionProductFormBuilderModifier&#039;]) &amp;&amp; $this-&gt;registerHook(&#091;&#039;actionProductSave&#039;]);\n    }<\/pre>\n\n\n\n<p><strong>Step 2:<\/strong> Define hook and perform save operations for particular products.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">    \n\n    \/**\n     * Modify product form builder\n     *\n     * @param array $params\n     *\/\n    public function hookActionProductFormBuilderModifier(array $params): void\n    {\n        \/** @var ProductFormModifier $productFormModifier *\/\n        $productFormModifier = $this-&gt;get(ProductFormModifier::class);\n        $productId = isset($params&#091;&#039;id&#039;]) ? new ProductId((int) $params&#091;&#039;id&#039;]) : null;\n        $productFormModifier-&gt;modify($productId, $params&#091;&#039;form_builder&#039;]);\n    }\n\n    \/**\n     * Modify product form builder\n     *\n     * @param array $params\n     *\/\n    public function hookActionProductSave(array $params): void\n    {\n        \/\/ Please write your logic and operation and save the data as per your need\n        \/\/ We are using configuration table to save the data\n        $productData = Tools::getValue(&#039;product&#039;);\n        $demoPrice = $productData&#091;&#039;pricing&#039;]&#091;&#039;demo_module_pricing_field&#039;];\n        $demoSEOText = $productData&#091;&#039;seo&#039;]&#091;&#039;demo_module_custom_field&#039;];\n        $idWkProduct = $params&#091;&#039;id_product&#039;];\n        Configuration::updateValue(&#039;wk_price_data_&#039; . $idWkProduct, $demoPrice);\n        Configuration::updateValue(&#039;wk_seo_data_&#039; . $idWkProduct, $demoSEOText);\n    }<\/pre>\n\n\n\n<p>To save the data of Products you can use your own defined table or you can act using input data like send the email or anything else. We have saved the data in the configuration table for example only.<\/p>\n\n\n\n<p><strong>Step 3: <\/strong>You can display those saved values by setting the values in the\u00a0modify()\u00a0function of\u00a0the <strong>ProductFormModifier<\/strong>\u00a0class.<\/p>\n\n\n\n<p>&lt;<span style=\"font-weight: 600;, serif;font-size: 21px\">module-name&gt;\/src\/Form\/Modifier\/ProductFormModifier.php<\/span><br><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">    \/**\n     * @param ProductId|null $productId\n     * @param FormBuilderInterface $productFormBuilder\n     *\/\n    public function modify(\n        ?ProductId $productId,\n        FormBuilderInterface $productFormBuilder\n    ): void {\n        $idWkProduct = $productId-&gt;getValue();\n        $data&#091;&#039;seo&#039;] = Configuration::get(&#039;wk_seo_data_&#039; . $idWkProduct);\n        $data&#091;&#039;price&#039;] = Configuration::get(&#039;wk_price_data_&#039; . $idWkProduct);\n        $this-&gt;modifyDescriptionTab($data, $productFormBuilder);\n    }<\/pre>\n\n\n\n<p>You will get the result as follows after save the custom form field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1087\" height=\"388\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png\" alt=\"save custom form field of Pricing tab\" class=\"wp-image-415952\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png 1087w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1-300x107.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1-250x89.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1-768x274.png 768w\" sizes=\"(max-width: 1087px) 100vw, 1087px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"971\" height=\"582\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot2.png\" alt=\"save custom form field of SEO tab\" class=\"wp-image-415953\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot2.png 971w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot2-300x180.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot2-250x150.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot2-768x460.png 768w\" sizes=\"(max-width: 971px) 100vw, 971px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>That\u2019s all.<\/p>\n\n\n\n<p>If you are facing any issues or doubts in the above process, please feel free to contact us 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 <a href=\"https:\/\/webkul.com\/prestashop-development\/\">PrestaShop Development Services<\/a> and a large range of quality <a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Modules<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we will learn how to save the custom form field and display the updated value on the Product Page using the PrestaShop hook. So, we will define PrestaShop&#8217;s given hook.I hope you already know how to add a custom form field on the PrestaShop product page using hook. If are new to <a href=\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":434,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[14001,2065,15219,15220,15223,15221],"class_list":["post-415938","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-hook","tag-prestashop","tag-save-custom-field","tag-save-product-data","tag-v1-7","tag-v8-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to save and display a custom form field value using the PrestaShop hook - Webkul Blog<\/title>\n<meta name=\"description\" content=\"In this blog, we will learn how to save the custom form field and display the updated value on the Product Page using the PrestaShop hook. So, we will define PrestaShop&#039;s given hook.\" \/>\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\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to save and display a custom form field value using the PrestaShop hook - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we will learn how to save the custom form field and display the updated value on the Product Page using the PrestaShop hook. So, we will define PrestaShop&#039;s given hook.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/\" \/>\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=\"2023-12-27T14:21:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-04T07:48:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png\" \/>\n<meta name=\"author\" content=\"Ravindra Gautam\" \/>\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=\"Ravindra Gautam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/\"},\"author\":{\"name\":\"Ravindra Gautam\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/1a45b107e54bb2991c05f20fbb1dae12\"},\"headline\":\"How to save and display a custom form field value using the PrestaShop hook\",\"datePublished\":\"2023-12-27T14:21:12+00:00\",\"dateModified\":\"2024-01-04T07:48:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/\"},\"wordCount\":238,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png\",\"keywords\":[\"hook\",\"prestashop\",\"Save Custom Field\",\"Save product data\",\"V1.7\",\"V8.1\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/\",\"name\":\"How to save and display a custom form field value using the PrestaShop hook - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png\",\"datePublished\":\"2023-12-27T14:21:12+00:00\",\"dateModified\":\"2024-01-04T07:48:11+00:00\",\"description\":\"In this blog, we will learn how to save the custom form field and display the updated value on the Product Page using the PrestaShop hook. So, we will define PrestaShop's given hook.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png\",\"width\":1087,\"height\":388,\"caption\":\"Pricing tab demo field\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to save and display a custom form field value using the PrestaShop hook\"}]},{\"@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\/1a45b107e54bb2991c05f20fbb1dae12\",\"name\":\"Ravindra Gautam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b8439e2774cf21a264df535ff994154071e538a17da7dc76beb9f7ffa28fa19?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\/1b8439e2774cf21a264df535ff994154071e538a17da7dc76beb9f7ffa28fa19?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ravindra Gautam\"},\"description\":\"Ravindra is a Software Engineer in PrestaShop platform with expertise in Marketplace Development services. He excels in creating and managing online stores using PrestaShop, leveraging his skills in JavaScript, jQuery, and Web Services to deliver dynamic, user-friendly e-commerce solutions that drive business success.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/ravindra-gautam192\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to save and display a custom form field value using the PrestaShop hook - Webkul Blog","description":"In this blog, we will learn how to save the custom form field and display the updated value on the Product Page using the PrestaShop hook. So, we will define PrestaShop's given hook.","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\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/","og_locale":"en_US","og_type":"article","og_title":"How to save and display a custom form field value using the PrestaShop hook - Webkul Blog","og_description":"In this blog, we will learn how to save the custom form field and display the updated value on the Product Page using the PrestaShop hook. So, we will define PrestaShop's given hook.","og_url":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-12-27T14:21:12+00:00","article_modified_time":"2024-01-04T07:48:11+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png","type":"","width":"","height":""}],"author":"Ravindra Gautam","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ravindra Gautam","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/"},"author":{"name":"Ravindra Gautam","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/1a45b107e54bb2991c05f20fbb1dae12"},"headline":"How to save and display a custom form field value using the PrestaShop hook","datePublished":"2023-12-27T14:21:12+00:00","dateModified":"2024-01-04T07:48:11+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/"},"wordCount":238,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png","keywords":["hook","prestashop","Save Custom Field","Save product data","V1.7","V8.1"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/","url":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/","name":"How to save and display a custom form field value using the PrestaShop hook - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png","datePublished":"2023-12-27T14:21:12+00:00","dateModified":"2024-01-04T07:48:11+00:00","description":"In this blog, we will learn how to save the custom form field and display the updated value on the Product Page using the PrestaShop hook. So, we will define PrestaShop's given hook.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/12\/Screenshot1.png","width":1087,"height":388,"caption":"Pricing tab demo field"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-save-and-display-a-custom-form-field-value-using-the-prestashop-hook\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to save and display a custom form field value using the PrestaShop hook"}]},{"@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\/1a45b107e54bb2991c05f20fbb1dae12","name":"Ravindra Gautam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b8439e2774cf21a264df535ff994154071e538a17da7dc76beb9f7ffa28fa19?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\/1b8439e2774cf21a264df535ff994154071e538a17da7dc76beb9f7ffa28fa19?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ravindra Gautam"},"description":"Ravindra is a Software Engineer in PrestaShop platform with expertise in Marketplace Development services. He excels in creating and managing online stores using PrestaShop, leveraging his skills in JavaScript, jQuery, and Web Services to deliver dynamic, user-friendly e-commerce solutions that drive business success.","url":"https:\/\/webkul.com\/blog\/author\/ravindra-gautam192\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/415938","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\/434"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=415938"}],"version-history":[{"count":5,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/415938\/revisions"}],"predecessor-version":[{"id":415958,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/415938\/revisions\/415958"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=415938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=415938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=415938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}