{"id":302985,"date":"2021-08-27T13:54:01","date_gmt":"2021-08-27T13:54:01","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=302985"},"modified":"2021-09-03T04:57:42","modified_gmt":"2021-09-03T04:57:42","slug":"toggle-status-through-ajax-from-the-list-in-prestashop","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/","title":{"rendered":"Toggle status through AJAX in render list in PrestaShop"},"content":{"rendered":"\n<p>In this blog, we are going to learn how to toggle the status of a particular record in the render list through AJAX (without reloading the list page) in PrestaShop.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png\" alt=\"Toggle status through AJAX in the render list in PrestaShop\" class=\"wp-image-303004\" width=\"820\" height=\"339\" title=\"Toggle status through AJAX from the list in PrestaShop\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png 1079w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax-300x124.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax-250x104.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax-768x318.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" loading=\"lazy\" \/><figcaption>Toggle status through AJAX in the render list in PrestaShop<\/figcaption><\/figure>\n\n\n\n<p>In PrestaShop, when we toggle the status of a particular record from the admin list view, PrestaShop reloads the whole page which is very annoying sometimes.<\/p>\n\n\n\n<p>Suppose you have a table &#8216;ps_test_user&#8217; with 5 columns id_user, name, mobile, active and date_add.<\/p>\n\n\n\n<p>For creating list columns in the back office, we define the &#8216;fields_list&#8217; variable with the name of columns and its type in the admin controller\u2019s class constructor:<\/p>\n\n\n\n<p>ie.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">$this-&gt;fields_list = array(\n    &#039;id_user&#039; =&gt; array(\n        &#039;title&#039; =&gt; $this-&gt;l(&#039;ID&#039;),\n        &#039;align&#039; =&gt; &#039;text-center&#039;,\n        &#039;class&#039; =&gt; &#039;fixed-width-xs&#039;\n    ),\n    &#039;name&#039; =&gt; array(\n        &#039;title&#039; =&gt; $this-&gt;l(&#039;Name&#039;),\n    ),\n    &#039;mobile&#039; =&gt; array(\n        &#039;title&#039; =&gt; $this-&gt;l(&#039;Phone&#039;),\n    ),\n    &#039;active&#039; =&gt; array(\n        &#039;title&#039; =&gt; $this-&gt;l(&#039;Status&#039;),\n        &#039;active&#039; =&gt; &#039;status&#039;,\n        &#039;align&#039; =&gt; &#039;center&#039;,\n        &#039;type&#039; =&gt; &#039;bool&#039;,\n        &#039;orderby&#039; =&gt; false,\n    ),\n    &#039;date_add&#039; =&gt; array(\n        &#039;title&#039; =&gt; $this-&gt;l(&#039;Date&#039;),\n        &#039;align&#039; =&gt; &#039;text-left&#039;,\n        &#039;type&#039; =&gt; &#039;datetime&#039;,\n        &#039;class&#039; =&gt; &#039;fixed-width-lg&#039;,\n    ),\n);<\/pre>\n\n\n\n<p>To prevent the reloading of the list page when changing the status of a record, we have to modify the &#8216;active&#8217; column definition:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Change &#8216;active&#8217; key value from &#8216;status&#8217; to &#8216;toggleActive&#8217; (you can write any valid method name)<\/li><li>Added &#8216;ajax&#8217; key with value &#8216;true&#8217;<\/li><\/ul>\n\n\n\n<p>ie.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&#039;active&#039; =&gt; array(\n    &#039;title&#039; =&gt; $this-&gt;l(&#039;Status&#039;),\n&lt;strong&gt;    &#039;active&#039; =&gt; &#039;toggleActive&#039;,&lt;\/strong&gt;\n    &#039;align&#039; =&gt; &#039;center&#039;,\n    &#039;type&#039; =&gt; &#039;bool&#039;,\n    &#039;orderby&#039; =&gt; false,\n    &lt;strong&gt;&#039;ajax&#039; =&gt; true,&lt;\/strong&gt;\n),<\/pre>\n\n\n\n<p>Now we need to create a public method in the same controller and name it in &#8216;ajaxProcess&lt;ActiveKeyValue&gt;&lt;TableName&gt;&#8217; format:<\/p>\n\n\n\n<p>Where:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>ActiveKeyValue: active value as defined in the active column definition (ie. &#8216;toggleActive&#8217;)<\/li><li>TableName: Name of the table without prefix in Camel Case format (table name is &#8216;test_user&#8217; then it should be &#8216;TestUser&#8217;)<\/li><\/ul>\n\n\n\n<p>So the method name will be &#8216;ajaxProcessToggleActiveTestUser()&#8217;.<\/p>\n\n\n\n<p>Write the code to toggle the status of the user and echo the JSON response in the below format:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">{\n    &quot;success&quot;: true,\n    &quot;text&quot;: &quot;You message&quot;\n}<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">public function ajaxProcessToggleActiveTestUser()\n{\n    $idUser = (int)Tools::getValue(&#039;id_user&#039;);\n    $objUser = new TestUser((int)$idUser);\n    $objUser-&gt;active = !$objUser-&gt;active;\n    if ($objUser-&gt;save()) {\n        die(Tools::jsonEncode(array(\n            &#039;success&#039; =&gt; 1,\n            &#039;text&#039; =&gt; $this-&gt;l(&#039;Status updated successfully!&#039;)\n        )));\n    } else {\n        die(Tools::jsonEncode(array(\n            &#039;success&#039; =&gt; 0,\n            &#039;text&#039; =&gt; $this-&gt;l(&#039;Something went wrong!&#039;)\n        )));\n    }\n}<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Note:<\/h4>\n\n\n\n<p>If the response comes from Symfony controller then data has &#8216;status&#8217; and &#8216;message&#8217; properties otherwise if the response comes from legacy controller then data has &#8216;success&#8217; and &#8216;text&#8217; properties.<\/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 <a href=\"https:\/\/webkul.com\/prestashop-development\/\">PrestaShop Development Services<\/a> &amp; a large range of quality <a href=\"https:\/\/store.webkul.com\/PrestaShop-Extensions.html\">PrestaShop Modules<\/a>.<\/p>\n\n\n\n<p>For any doubt contact us at <a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>.<\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn how to toggle the status of a particular record in the render list through AJAX (without reloading the list page) in PrestaShop. In PrestaShop, when we toggle the status of a particular record from the admin list view, PrestaShop reloads the whole page which is very annoying <a href=\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":384,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[250,289],"class_list":["post-302985","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-ajax","tag-prestashop-module"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Toggle status through AJAX in render list in PrestaShop - Webkul Blog<\/title>\n<meta name=\"description\" content=\"In PrestaShop, when we toggle the status of a particular record from the admin list view, it reloads the page. It can be solved by AJAX.\" \/>\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\/toggle-status-through-ajax-from-the-list-in-prestashop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Toggle status through AJAX in render list in PrestaShop - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In PrestaShop, when we toggle the status of a particular record from the admin list view, it reloads the page. It can be solved by AJAX.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/\" \/>\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=\"2021-08-27T13:54:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-03T04:57:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png\" \/>\n<meta name=\"author\" content=\"Ajeet Chauhan\" \/>\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=\"Ajeet Chauhan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/\"},\"author\":{\"name\":\"Ajeet Chauhan\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/7eee8f48857441660231d6a643103357\"},\"headline\":\"Toggle status through AJAX in render list in PrestaShop\",\"datePublished\":\"2021-08-27T13:54:01+00:00\",\"dateModified\":\"2021-09-03T04:57:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/\"},\"wordCount\":336,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png\",\"keywords\":[\"ajax\",\"prestashop module\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/\",\"url\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/\",\"name\":\"Toggle status through AJAX in render list in PrestaShop - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png\",\"datePublished\":\"2021-08-27T13:54:01+00:00\",\"dateModified\":\"2021-09-03T04:57:42+00:00\",\"description\":\"In PrestaShop, when we toggle the status of a particular record from the admin list view, it reloads the page. It can be solved by AJAX.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png\",\"width\":1079,\"height\":447,\"caption\":\"prestashop_toggle_status_ajax\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Toggle status through AJAX in render list in PrestaShop\"}]},{\"@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\/7eee8f48857441660231d6a643103357\",\"name\":\"Ajeet Chauhan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e97b5fe8122a2283f5fe35ae6fca4725ac46026413ce7959b575f842f6bd6c92?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\/e97b5fe8122a2283f5fe35ae6fca4725ac46026413ce7959b575f842f6bd6c92?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ajeet Chauhan\"},\"description\":\"Ajeet is a talented Software Engineer specializing in the PrestaShop platform. With expertise in PrestaShop Shipping &amp; Payments Integration, Marketplace Development, and Headless services, he delivers innovative solutions that enhance eCommerce functionality, driving seamless operations for businesses and their customers.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/ajeetchauhan-symfony143\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Toggle status through AJAX in render list in PrestaShop - Webkul Blog","description":"In PrestaShop, when we toggle the status of a particular record from the admin list view, it reloads the page. It can be solved by AJAX.","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\/toggle-status-through-ajax-from-the-list-in-prestashop\/","og_locale":"en_US","og_type":"article","og_title":"Toggle status through AJAX in render list in PrestaShop - Webkul Blog","og_description":"In PrestaShop, when we toggle the status of a particular record from the admin list view, it reloads the page. It can be solved by AJAX.","og_url":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-08-27T13:54:01+00:00","article_modified_time":"2021-09-03T04:57:42+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png","type":"","width":"","height":""}],"author":"Ajeet Chauhan","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ajeet Chauhan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/"},"author":{"name":"Ajeet Chauhan","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/7eee8f48857441660231d6a643103357"},"headline":"Toggle status through AJAX in render list in PrestaShop","datePublished":"2021-08-27T13:54:01+00:00","dateModified":"2021-09-03T04:57:42+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/"},"wordCount":336,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png","keywords":["ajax","prestashop module"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/","url":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/","name":"Toggle status through AJAX in render list in PrestaShop - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png","datePublished":"2021-08-27T13:54:01+00:00","dateModified":"2021-09-03T04:57:42+00:00","description":"In PrestaShop, when we toggle the status of a particular record from the admin list view, it reloads the page. It can be solved by AJAX.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/prestashop_toggle_status_ajax.png","width":1079,"height":447,"caption":"prestashop_toggle_status_ajax"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/toggle-status-through-ajax-from-the-list-in-prestashop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Toggle status through AJAX in render list in PrestaShop"}]},{"@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\/7eee8f48857441660231d6a643103357","name":"Ajeet Chauhan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e97b5fe8122a2283f5fe35ae6fca4725ac46026413ce7959b575f842f6bd6c92?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\/e97b5fe8122a2283f5fe35ae6fca4725ac46026413ce7959b575f842f6bd6c92?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ajeet Chauhan"},"description":"Ajeet is a talented Software Engineer specializing in the PrestaShop platform. With expertise in PrestaShop Shipping &amp; Payments Integration, Marketplace Development, and Headless services, he delivers innovative solutions that enhance eCommerce functionality, driving seamless operations for businesses and their customers.","url":"https:\/\/webkul.com\/blog\/author\/ajeetchauhan-symfony143\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/302985","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\/384"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=302985"}],"version-history":[{"count":29,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/302985\/revisions"}],"predecessor-version":[{"id":304280,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/302985\/revisions\/304280"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=302985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=302985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=302985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}