{"id":16269,"date":"2018-07-12T15:18:37","date_gmt":"2018-07-12T13:18:37","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=16269"},"modified":"2025-02-11T10:28:08","modified_gmt":"2025-02-11T08:28:08","slug":"comparing-javascript-in-prestashop-1-7-and-1-6","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html","title":{"rendered":"Comparing JavaScript in PrestaShop 1.7 and 1.6"},"content":{"rendered":"\n<p>Let&rsquo;s take a closer look at the differences between JavaScript in PrestaShop 1.7 and its 1.6 edition. We will also&nbsp;show how to run an event, how to trigger delegated events and describe some of the PrestaShop events.<\/p>\n<p><!--more--><\/p>\n<h2><strong><span style=\"color: #000000;\">JavaScript code in PrestaShop 1.6 and 1.7<\/span><\/strong><\/h2>\n<p>In PrestaShop 1.6, the JavaScript code is presented as files:<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image41.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16270\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image41.png\" alt=\"image4\" width=\"455\" height=\"601\" title=\"Comparing JavaScript in PrestaShop 1.7 and 1.6\"><\/a><\/p>\n<p>Starting with PrestaShop 1.7, all JavaScript code has been almost completely redesigned. Now there are no separate JavaScript files in a theme, apart from JavaScript files in the root of PrestaShop:<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-16271\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/image3.png\" alt=\"image3\" width=\"378\" height=\"680\" title=\"Comparing JavaScript in PrestaShop 1.7 and 1.6\"><\/a><\/p>\n<p>Instead of individual JS files in the theme, there are two main files:<\/p>\n<ul>\n<li>core.js(\/themes\/core.js) &mdash; defines core methods, loads jQuery2, makes ajax calls;<\/li>\n<li>theme.js(\/assets\/js\/theme.js) &mdash; bundles all theme specific code and libraries.<\/li>\n<\/ul>\n<h2><strong><span style=\"color: #000000;\">Events<\/span><\/strong><\/h2>\n<p>In order to run an event, you need to use the PrestaShop object:<\/p>\n<pre>prestashop.emit(\r\n&nbsp;'updateCart',\r\n&nbsp;{\r\n&nbsp;&nbsp;&nbsp;\/\/ your code\r\n&nbsp;}\r\n);<\/pre>\n<h2><strong><span style=\"color: #000000;\">Triggering delegated events<\/span><\/strong><\/h2>\n<p>To make sure the event will be attached to the DOM, you should use delegated events after, for example, an ajax request:<\/p>\n<pre class=\"lang:js decode:true\">var eventContainer = $('body'); \/\/ events are attached to the body\r\nvar event = jQuery.Event('click');\r\nevent.target = eventContainer.find('.some-class');\r\neventContainer.trigger(event);<\/pre>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/prestashop-support\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/support_prestashop.png\" width=\"100\" height=\"100\" alt=\"support_prestashop\" class=\"module_image\" title=\"Comparing JavaScript in PrestaShop 1.7 and 1.6\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Support &amp; Maintenance<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG PrestaShop Support &amp; Maintenance<\/p><a href=\"https:\/\/belvg.com\/prestashop-support\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<h2><strong><span style=\"color: #000000;\">Descriptions of some events (all events can be found in \/themes\/core.js)<\/span><\/strong><\/h2>\n<ul>\n<li>clickQuickView &mdash; If your theme handles it, this event will be triggered when clicking on the quick view link.<\/li>\n<li>updateAddressForm &mdash; In the address form, some input will trigger ajax calls to modify the form (like country change), after the form is updated, this event is triggered.<\/li>\n<li>updateProduct &mdash; On the product page, selecting a new combination will reload the DOM via ajax calls. After the update, this event is fired.<\/li>\n<li>handleError &mdash; This event is fired after a fail of POST request. Have the eventType as the first parameter.<\/li>\n<li>updateFaces &mdash; On every product list page (category, search results, pricedrop and so on), the list is updated via ajax calls if you change filters or sorting options. Each time the facets is reloaded, this event is triggered.<\/li>\n<li>responsiveUpdate &mdash; While the browser is resized, this event is fired with a mobile parameter.<\/li>\n<li>updateCart &mdash; On the cart page, every time something happens (change quantity, remove a&nbsp;product and so on) the cart is reloaded by an ajax call. After the cart is updated, this event is triggered.<\/li>\n<li>updateDeliveryForm &mdash; During checkout, if the delivery address is modified, this event will be triggered.<\/li>\n<li>changeCheckoutStep &mdash; Each checkout step submission will fire this event.<\/li>\n<li>updateProductList &mdash; On every product list page (category, search results, pricedrop and so on), the list is updated via ajax calls if you change filters or sorting options. Each time the DOM is reloaded with new product list, this event is triggered.<\/li>\n<\/ul>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/prestashop-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/development_prestashop.png\" width=\"100\" height=\"100\" alt=\"development_prestashop\" class=\"module_image\" title=\"Comparing JavaScript in PrestaShop 1.7 and 1.6\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Development<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG PrestaShop Development <\/p><a href=\"https:\/\/belvg.com\/prestashop-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<p>&nbsp;<\/p>\n\n","protected":false},"excerpt":{"rendered":"The difference between working with JavaScript code in Prestashop 1.6 and 1.7.","protected":false},"author":8,"featured_media":16273,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,470,520,522],"tags":[],"class_list":["post-16269","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-tutorial","category-prestashop-custom-development","category-prestashop-speed-optimization","post_format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"The difference between JavaScript code in PrestaShop 1.6 and 1.7. Creating events and triggering delegated events. Describing some of the PrestaShop 1.7 events.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Denis Guriyanov\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#article\",\"name\":\"Comparing JavaScript code in PrestaShop 1.6 and 1.7 | BelVG Blog\",\"headline\":\"Comparing JavaScript in PrestaShop 1.7 and 1.6\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/Comparing-JavaScript-in-PrestaShop-1-7-and-1-6.jpg\",\"width\":770,\"height\":433},\"datePublished\":\"2018-07-12T15:18:37+02:00\",\"dateModified\":\"2025-02-11T10:28:08+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#webpage\"},\"articleSection\":\"Prestashop, Prestashop 1.7 Tutorials, PrestaShop Custom Development, PrestaShop Speed Optimization, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#listItem\",\"name\":\"Comparing JavaScript in PrestaShop 1.7 and 1.6\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#listItem\",\"position\":3,\"name\":\"Comparing JavaScript in PrestaShop 1.7 and 1.6\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov\",\"name\":\"Denis Guriyanov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cc371af19f9c419cb0c2033bd26757f6b08fce63e66c556d882502284fb0b8a1?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Denis Guriyanov\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html\",\"name\":\"Comparing JavaScript code in PrestaShop 1.6 and 1.7 | BelVG Blog\",\"description\":\"The difference between JavaScript code in PrestaShop 1.6 and 1.7. Creating events and triggering delegated events. Describing some of the PrestaShop 1.7 events.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/Comparing-JavaScript-in-PrestaShop-1-7-and-1-6.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html\\\/#mainImage\",\"width\":770,\"height\":433},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/comparing-javascript-in-prestashop-1-7-and-1-6.html#mainImage\"},\"datePublished\":\"2018-07-12T15:18:37+02:00\",\"dateModified\":\"2025-02-11T10:28:08+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Comparing JavaScript code in PrestaShop 1.6 and 1.7 | BelVG Blog","description":"The difference between JavaScript code in PrestaShop 1.6 and 1.7. Creating events and triggering delegated events. Describing some of the PrestaShop 1.7 events.","canonical_url":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#article","name":"Comparing JavaScript code in PrestaShop 1.6 and 1.7 | BelVG Blog","headline":"Comparing JavaScript in PrestaShop 1.7 and 1.6","author":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/Comparing-JavaScript-in-PrestaShop-1-7-and-1-6.jpg","width":770,"height":433},"datePublished":"2018-07-12T15:18:37+02:00","dateModified":"2025-02-11T10:28:08+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#webpage"},"articleSection":"Prestashop, Prestashop 1.7 Tutorials, PrestaShop Custom Development, PrestaShop Speed Optimization, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#listItem","name":"Comparing JavaScript in PrestaShop 1.7 and 1.6"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#listItem","position":3,"name":"Comparing JavaScript in PrestaShop 1.7 and 1.6","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author","url":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov","name":"Denis Guriyanov","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/cc371af19f9c419cb0c2033bd26757f6b08fce63e66c556d882502284fb0b8a1?s=96&d=mm&r=g","width":96,"height":96,"caption":"Denis Guriyanov"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#webpage","url":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html","name":"Comparing JavaScript code in PrestaShop 1.6 and 1.7 | BelVG Blog","description":"The difference between JavaScript code in PrestaShop 1.6 and 1.7. Creating events and triggering delegated events. Describing some of the PrestaShop 1.7 events.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/07\/Comparing-JavaScript-in-PrestaShop-1-7-and-1-6.jpg","@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html\/#mainImage","width":770,"height":433},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html#mainImage"},"datePublished":"2018-07-12T15:18:37+02:00","dateModified":"2025-02-11T10:28:08+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"16269","title":"Comparing JavaScript code in PrestaShop 1.6 and 1.7 | #site_title","description":"The difference between JavaScript code in PrestaShop 1.6 and 1.7. Creating events and triggering delegated events. Describing some of the PrestaShop 1.7 events.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:06","updated":"2026-11-03 18:37:06"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tComparing JavaScript in PrestaShop 1.7 and 1.6\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"Comparing JavaScript in PrestaShop 1.7 and 1.6","link":"https:\/\/belvg.com\/blog\/comparing-javascript-in-prestashop-1-7-and-1-6.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=16269"}],"version-history":[{"count":-3,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/16269\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/16273"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=16269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=16269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=16269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}