{"id":15066,"date":"2018-05-30T14:01:20","date_gmt":"2018-05-30T12:01:20","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=15066"},"modified":"2021-02-18T09:14:22","modified_gmt":"2021-02-18T07:14:22","slug":"prestashop-1-6-vs-1-7-comparison","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html","title":{"rendered":"Prestashop 1.6 vs 1.7 Comparison"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">When it comes to Prestashop 1.7, it should be mentioned that the developers have implemented the additional features to deal with Smarty.<\/span><!--more--><\/p>\n<h2><span style=\"color: #000000;\"><b>{url} <\/b><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">{url} function is meant for working with URL addresses. It works via the standard class PrestaShop &laquo;<\/span><span style=\"font-weight: 400;\">Link<\/span><span style=\"font-weight: 400;\">&raquo;.&nbsp;<\/span><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<pre class=\"lang:default decode:true \">&lt;div class=\"test-url\"&gt;\r\n\t{url entity=address id=$id_address}\r\n\t{url entity=address params=['id_address' =&gt; $id_address]}\r\n\t{url entity=address id=$id_address params=['delete' =&gt; 1]}\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">The result,<\/span><br>\nexample.com\/en\/address<br>\nexample.com\/en\/address<br>\nexample.com\/en\/address?delete=1<\/p>\n<p><span style=\"font-weight: 400;\">In Prestashop 1.6, there&rsquo;s no such function for Smarty, that&rsquo;s why you have to collect URL into an array and do it for your needs.&nbsp;<\/span>For example,<\/p>\n<pre class=\"lang:php decode:true \">$link-&gt; getCMSLink('pagenamehere')<\/pre>\n<p><span style=\"font-weight: 400;\">&ndash; template code.<\/span><\/p>\n<pre class=\"lang:php decode:true \">$this-&gt;context-&gt;link-&gt;getCMSLink('namehere')<\/pre>\n<p><span style=\"font-weight: 400;\"> &ndash; &nbsp;php file code.<\/span><\/p>\n<p><em><span style=\"font-weight: 400;\">*Be careful while dealing with &ldquo;Link&rdquo;. If you have to make a friendly URL, there can be some problems, if something is done incorrectly.<\/span><\/em><\/p>\n<h2><span style=\"color: #000000;\"><b>{widget}<\/b><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">{widget} allows considering the module connection in a different way. Instead of using standard hook, you can use {widget}.&nbsp;<\/span><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<pre class=\"lang:php decode:true \">&lt;div id=\"sedibar\" class=\"left-sidebar\" &gt; \r\n  { widget  name=\"ps_contactinfo\" } \r\n&lt;\/div&gt;\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">If your standard module template is replaced, you can put the link to the necessary hook into {widget}.&nbsp;<\/span><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<pre class=\"lang:default decode:true\">&lt; div id=\"main\" class=\"main\"&gt;  \r\n    &lt;div class=\"main__contact-block\"&gt;\r\n        { widget  name=\"ps_contactinfo\"  hook=\"displayMainContact\" } \r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">Pay attention to the fact that all {widget} work only with modules for Prestashop 1.7 the names of which start from &laquo;<\/span><span style=\"font-weight: 400;\">ps_<\/span><span style=\"font-weight: 400;\">&raquo;.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In Prestashop 1.6 you need to go to the folder that contains the module <\/span><strong>\\modules\\blockcontactinfos <\/strong><span style=\"font-weight: 400;\">and add your custom hook in the file <\/span><span style=\"font-weight: 400;\"><strong>blockcontactinfos.php<\/strong>.&nbsp;<\/span><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<pre class=\"lang:php decode:true \">public function hookMyCustomHook($params){\r\n\t return $this-&gt;display(__FILE__, 'mymodule.tpl');\r\n}\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">Then you can call it anywhere.&nbsp;<\/span><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<pre class=\"lang:default decode:true \">&lt;div id=\"main\" class=\"main\"&gt;\r\n    &lt;div class=\"main__contact-block\"&gt;\r\n        {hook h='myCustomHook'}\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">Actually, in Prestashop 1.6 there&rsquo;s one more method. You can go to the module directly. But this method is better to use if you are master of complex structures (e. x. hook in hook and one more hook is implied).&nbsp;<\/span>For example,<\/p>\n<pre class=\"lang:php decode:true \">{Module::getInstanceByName('blockcontactinfos')-&gt;hookFooter([])}<\/pre>\n<p><span style=\"font-weight: 400;\">The result is that the store data is displayed in the created block.<\/span><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15070\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_1.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_1\" width=\"410\" height=\"123\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<h2><span style=\"color: #000000;\"><strong>{widget_block}<\/strong><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Using {widget_block}, you can rewrite the template. &nbsp;The module will use your written code as well as the template file code. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">As an example, let&rsquo;s consider the module <\/span><span style=\"font-weight: 400;\"><strong>ps_imageslider \\modules\\ps_imageslider\\views\\templates\\hook\\list.tpl<\/strong>.<\/span><\/p>\n<pre class=\"lang:default decode:true \">{widget_block name=\"ps_imageslider\"}\r\n   &lt;div class=\"panel\"&gt;\r\n  \t&lt;h3&gt;&lt;iclass=\"icon-list-ul\"&gt;&lt;\/i&gt; \r\n\t\t{l s='Slides list' d='Modules.Imageslider.Admin'}\r\n\t\t&lt;span class=\"panel-heading-action\"&gt;****&lt;\/span&gt;\r\n\t&lt;\/h3&gt;\r\n\t&lt;div id=\"wrapper-sliders\"&gt;\r\n\t\t&lt;div id=\"slides\"&gt;\r\n\t\t\t{foreach from=$slides item=slide}\r\n\t\t\t\t&lt;div id=\"slides_{$slide.id_slide}\" class=\"panel\"&gt;\r\n\t\t\t\t\t&lt;div class=\"row\"&gt;\r\n\t\t\t\t\t\t&lt;div class=\"col-md-12\"&gt;\r\n\t\t\t\t\t\t\t&lt;img src=\"{$image_baseurl {$slide.image}\" alt=\"{$slide.title}\" class=\"img-thumbnail\" \/&gt;\r\n\t\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t\t&lt;\/div&gt;\r\n\t\t\t\t&lt;\/div&gt;\r\n\t\t\t{\/foreach}\r\n\t\t&lt;\/div&gt;\r\n\t&lt;\/div&gt;\r\n{\/widget_block}\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">In Prestashop 1.6 in your theme template (pic 1) of the modules folder you need to create a folder (pic 2) with the name of module structure you want to change (pic 3) and there create *.tpl (pic 4) and make its own structure.<\/span><\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy size-full wp-image-15071 aligncenter\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_2.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_2\" width=\"662\" height=\"183\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<p style=\"text-align: center;\">Picture 1<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_3.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy size-full wp-image-15072 aligncenter\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_3.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_3\" width=\"842\" height=\"416\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<p style=\"text-align: center;\">Picture 2<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_4.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15073\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_4.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_4\" width=\"667\" height=\"404\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<p style=\"text-align: center;\">Picture 3<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_5.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15074\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_5.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_5\" width=\"699\" height=\"193\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<p style=\"text-align: center;\">Picture 4<\/p>\n<h2 style=\"text-align: left;\"><span style=\"color: #000000;\"><b>{render}<\/b><\/span><\/h2>\n<p style=\"text-align: left;\"><span style=\"font-weight: 400;\">The function allows selecting a variable from the template.&nbsp;<\/span><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<pre class=\"lang:php decode:true\">{render file='customer\/_partials\/login-form.tpl' ui=$login_form}<\/pre>\n<p><span style=\"font-weight: 400;\">In the template <strong>&nbsp;<\/strong><\/span><span style=\"font-weight: 400;\"><strong>login-form.tpl<\/strong>, <\/span><span style=\"font-weight: 400;\">the variable &laquo;UI&raquo; is described and can be used with the help of <\/span><span style=\"font-weight: 400;\">{render}. <\/span><span style=\"font-weight: 400;\">&nbsp;<\/span><span style=\"font-weight: 400;\">{render}<\/span><span style=\"font-weight: 400;\"> is the PrestaShop function which has been added in Smarty.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In Prestashop 1.6 &ldquo;<\/span><strong>include<\/strong><span style=\"font-weight: 400;\">&rdquo; is used. So you can put the part of the code, function or variable somewhere according to the user&rsquo;s needs. But you need to specify the pathname of the code file being used. <\/span><\/p>\n<p><em><span style=\"font-weight: 400;\">NOTE! It can lead to negative consequences. Your website may be hacked, as the hacker is provided with significant files data.<\/span><\/em><\/p>\n<p><span style=\"font-weight: 400;\">For example,<\/span><br>\n<span style=\"font-weight: 400;\">&mdash; mymodule.php<\/span><br>\n<span style=\"font-weight: 400;\">&mdash; views<\/span><br>\n<span style=\"font-weight: 400;\">&mdash;- templates<\/span><br>\n<span style=\"font-weight: 400;\">&mdash;&mdash; hook<\/span><br>\n<span style=\"font-weight: 400;\">&mdash;&mdash; displayFooBarTemplate.tpl<\/span><br>\n<span style=\"font-weight: 400;\">&mdash;&mdash;&ndash; inc<\/span><br>\n<span style=\"font-weight: 400;\">&mdash;&mdash;&mdash;- foo.tpl<\/span><br>\n<span style=\"font-weight: 400;\">&mdash;&mdash;&mdash;- bar.tpl<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The absolute pathname: <\/span><\/p>\n<pre class=\"lang:default decode:true\">protected function displayFooBarTemplate()\r\n{\r\n    global $smarty\r\n    ...\r\n     $smarty-&gt;assign('module_templates', dirname(__FILE__).'\/views\/templates\/');\r\n     return $this-&gt;display(__FILE__, 'displayFooBarTemplate.tpl');\r\n}\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">Then in your file <\/span><b>tpl (displayFooBarTemplate.tpl):<\/b><\/p>\n<pre class=\"lang:default decode:true\">{include file=\"{$module_templates}hook\/inc\/modal\/foo.tpl\"}\r\n{include file=\"{$module_templates}hook\/inc\/modal\/bar.tpl\"}<\/pre>\n<p><span style=\"font-weight: 400;\">The relative pathname:<\/span><\/p>\n<pre class=\"lang:default decode:true\">{include '.\/inc\/foo.tpl'}\r\n{include '.\/inc\/modal\/bar.tpl'}\r\n<\/pre>\n<h2><span style=\"color: #000000;\"><b>{form_field}<\/b><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The function allows form elements to have the common design. Before there was misunderstanding between frontend and backend developers when they had to use form fields differently. Now the developer can apply almost the same parameters for form fields.&nbsp;<\/span>For example,<\/p>\n<pre class=\"lang:php decode:true \">_partials\/form-fields.tpl. \r\n\t{form_field field=$field}\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">$field &ndash;&nbsp;array where parameters are specified.<\/span><\/p>\n<pre class=\"lang:default decode:true \">$ field = [ \r\n\t'name' =&gt; 'user_email', \r\n\t'type' =&gt; 'email', \r\n\t'required' =&gt; 1,\r\n\t'label' =&gt; 'Email', \r\n\t'value' =&gt; null,\r\n\t'availableValues' =&gt; [], 'errors' =&gt; [],\r\n]\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">In Prestashop 1.6 you have to do it manually.&nbsp;<\/span><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<pre class=\"lang:php decode:true \">  &lt;label class=\"radio-inline\"&gt;\r\n              &lt;span class=\"custom-radio\"&gt;\r\n                &lt;input\r\n                  name=\"{$field.name}\"\r\n                  type=\"radio\"\r\n                  value=\"{$value}\"\r\n                  {if $field.required}required{\/if}\r\n                  {if $value eq $field.value} checked {\/if}\r\n                &gt;\r\n                &lt;span&gt;&lt;\/span&gt;\r\n              &lt;\/span&gt;\r\n              {$label}\r\n            &lt;\/label&gt;\r\n<\/pre>\n<p><em><span style=\"font-weight: 400;\">NOTE: if it&rsquo;s necessary to add a custom attribute to the form, it can&rsquo;t be performed via {form_field} and you&rsquo;ll have to do it manually also.<\/span><\/em><\/p>\n<h2><span style=\"color: #000000;\"><b>Classname<\/b><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">It&rsquo;s a modifier that helps to avoid making mistakes when creating class or line. It allows the following:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1. to make your class or line lowercase.<\/span><br>\n<span style=\"font-weight: 400;\">2. to replace all characters different to ASCII.<\/span><br>\n<span style=\"font-weight: 400;\">3. to replace <\/span><span style=\"font-weight: 400;\">all<\/span><span style=\"font-weight: 400;\"> characters (!@#$%^&amp;*()) to dash (&ndash;).<\/span><br>\n<span style=\"font-weight: 400;\">4. to replace all spaces as well as low lines (_) and make class (line) the same.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<pre class=\"lang:default decode:true \">&lt;div class=\"test-classname\"&gt;\r\n    \t\t{assign var=attr value='WiDzaClassname'}\r\n    \t\t{$attr|classname}\r\n\t&lt;\/div&gt;\r\n<\/pre>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_6.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15075\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_6.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_6\" width=\"540\" height=\"120\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<pre class=\"lang:php decode:true \">&lt;div class=\"test-classname\"&gt;\r\n    \t\t{assign var=attr value='WiD&#378;aCl&agrave;ssn&aring;me'}\r\n    \t\t{$attr|classname}\r\n\t&lt;\/div&gt;\r\n<\/pre>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_7.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15076\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_7.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_7\" width=\"525\" height=\"137\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<pre class=\"lang:php decode:true \">&lt;div class=\"test-classname\"&gt;\r\n  \t\t{assign var=attr \r\nvalue='WiD&#378;aCl&agrave;ssn&aring;mederrddddss--!&amp;&amp;?$@&circ;*(&amp;-----'}\r\n  \t\t{$attr|classname}\r\n\t&lt;\/div&gt;\r\n<\/pre>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_8.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15077\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_8.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_8\" width=\"512\" height=\"114\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<pre class=\"lang:php decode:true \">&lt;div class=\"test--classname\"&gt;\r\n  \t\t{assign var=attr value='wid&#378;_a-Cl&agrave;ssn&aring;me \r\nderrr__ddddss--!&amp;&amp;?$@&circ;*(&amp;-----'}\r\n  \t\t{$attr|classname}\r\n\t&lt;\/div&gt;\r\n<\/pre>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_9.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15078\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_9.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_9\" width=\"517\" height=\"117\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<p><span style=\"font-weight: 400;\">If you want to use BEM methodology in your project, so there&rsquo;s no need to use this modifier.&nbsp;<\/span>In Prestashop 1.6 you have to put class names as well as correctness checking.<\/p>\n<h2><b>Classnames<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">The modifier takes array where the key is class name and parameters take on boolean value (true\/false) in order to define the necessity to get it displayed.&nbsp;<\/span><span style=\"font-weight: 400;\">For example,<\/span><\/p>\n<p><strong>\\controllers\\front\\listing\\CategoryController.php<\/strong><\/p>\n<pre class=\"lang:php decode:true \">$page['main_classess']['category-id-'.$this-&gt;category-&gt;id] = true;\r\n$page['main_classes']['category-'.$this-&gt;category-&gt;name] = true;\r\n$page['main_classes']['category-id-parent-'.$this-&gt;category-&gt;id_parent] = true;\r\n$page['main_classes']['category-depth-level-'.$this-&gt;category-&gt;level_depth] = true;\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">Go the template where we need to display the necessary class:<\/span><\/p>\n<p><strong>\\themes\\classic\\templates\\catalog\\listing\\product-list.tpl<\/strong><\/p>\n<pre class=\"lang:default decode:true \">&lt;section id=\"main\" class = \"{$page.main_classes|classnames}\"&gt;<\/pre>\n<p><span style=\"font-weight: 400;\">The result,<\/span><\/p>\n<pre class=\"lang:php decode:true \">&lt;section id=\"main\" class = \"category-women category-id-parent-2 category-depth-level-2\"&gt;\r\n<\/pre>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_10.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy alignnone size-full wp-image-15079\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1.6-vs.-1.7.-Comparison_10.jpg\" alt=\"Prestashop 1.6 vs. 1.7. Comparison_10\" width=\"737\" height=\"107\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<p><em><span style=\"font-weight: 400;\">NOTE: Every classname is passed via classname modifier.&nbsp;<\/span><\/em><span style=\"font-weight: 400;\">In &nbsp;Prestashop 1.6 there is no such function.<\/span><\/p>\n<p>Now let us take a look at the differences of module development between the two versions of Prestashop.<\/p>\n<h2><strong><span style=\"color: #000000;\">Module development in Prestashop 1.6 vs 1.7<\/span><\/strong><\/h2>\n<p>As you may know, the folder structure has been changed in PrestaShop 1.7. This means that the modules written on Prestashop 1.6 may not work on its 1.7 version.<\/p>\n<h2><strong><span style=\"color: #000000;\">Why this happens<\/span><\/strong><\/h2>\n<p><span style=\"color: #000000;\">This happens because Prestashop 1.7 can lack at least some hooks, which you could have used while writing your own module (addProduct, displayCartTotalPriceLabel, deleteProduct, etc. Check out the full list <a href=\"https:\/\/docs.google.com\/document\/d\/1J6f8erYDdDn9R_6otudysEGs-452nC7FEtvtP43-CMw\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener\">here<\/a><\/span><span style=\"color: #000000;\">).<\/span><\/p>\n<p><span style=\"color: #000000;\">Be careful, these are just a few examples of <\/span>hooks<span style=\"color: #000000;\"> that are no longer supported in 1.7 version, check your modules before migrating to Prestashop 1.7.<\/span><\/p>\n<p><span style=\"color: #000000;\">Of course, there are new hooks for creating new modules such as displayCheckoutSummaryTop, actionCartUpdateQuantityBefore, etc (<a href=\"https:\/\/docs.google.com\/document\/d\/1gdRxbGuHeVXnb6m4pmCqbKjlg_XpMWJd0AyvB3rl69Q\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener\">full list<\/a> of the new hooks). These hooks are only used in the 1.7 version.<\/span><\/p>\n<h2><strong><span style=\"color: #000000;\">How to update the modules from Prestashop 1.6 to 1.7<\/span><\/strong><\/h2>\n<ol>\n<li>Adapt product page modules (js and css files);<\/li>\n<li>Adapt modules of module pages (js and css files).<\/li>\n<\/ol>\n<p>Prestashop developers have made the following changes.<\/p>\n<ol>\n<li>All the variables that are transferred to Smarty have been changed. We recommend that you check whether they are still used in your module.<\/li>\n<li>Massives are transmitted in Smarty instead of objects.<\/li>\n<li>The Smarty lines are automatically escaped:\n<ul>\n<li>Delete <strong>|escape:<\/strong>&lsquo;<strong>html<\/strong><strong>&lsquo;:&rsquo;UTF-8&rsquo;<\/strong> &nbsp;, but only in front office templates.<\/li>\n<li>Use nofilter to output HTML.<\/li>\n<\/ul>\n<\/li>\n<li>It is recommended to use the {URL} function instead of <em>$link<\/em>, since developers&nbsp;will remove&nbsp;<em>$link<\/em>&nbsp;in future updates.<\/li>\n<li>Use the new template call <strong>fetch(module:modulename\/views\/template.tpl)<\/strong>.<\/li>\n<\/ol>\n<p>Payment API update changes the parameters sent to the hooks: <strong>hookPaymentReturn and hookDisplayOrderConfirmation<\/strong><\/p>\n<p><strong>Before:<\/strong><\/p>\n<table style=\"height: 297px;\" width=\"1016\">\n<tbody>\n<tr>\n<td><b>Key<\/b><\/td>\n<td><b>Value<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">total_to_pay<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The result of <\/span><span style=\"font-weight: 400;\">$order-&gt;getOrdersTotalPaid()<\/span><span style=\"font-weight: 400;\">.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">currency<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The currency sign (string).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">currencyObj<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The loaded currency (Currency class).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">objOrder<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The current order object (Order class).<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>After:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<table style=\"height: 159px;\" width=\"1012\">\n<tbody>\n<tr>\n<td><b>Key<\/b><\/td>\n<td><b>Value<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">order<\/span><\/td>\n<td><span style=\"font-weight: 400;\">The current <\/span><span style=\"font-weight: 400;\">order<\/span><span style=\"font-weight: 400;\"> object (Order class).<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Here is a codesample that will help you find all the orders.<\/p>\n<pre class=\"lang:php decode:true \">$currency = new Currency($params['order']-&gt;id_currency);\r\n$total_to_pay = $params['order']-&gt;getOrdersTotalPaid()<\/pre>\n<h2><strong><span style=\"color: #000000;\">Changes made to the product page modules in Prestashop 1.7<\/span><\/strong><\/h2>\n<p>The product page has been completely rewritten for version 1.7 to simplify the creation of a product. If you compare version 1.6 with version 1.7, you will notice that in 1.7 there are 8 tabs instead of 12 in 1.6. Here is what the Prestashop 1.6 Admin page looks like:<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/image4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-15891\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/image4.png\" alt=\"image4\" width=\"1150\" height=\"750\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<p style=\"text-align: left;\">Now take a look at the new Prestashop 1.7 Admin page:<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/image3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-15892\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/image3.png\" alt=\"image3\" width=\"1404\" height=\"625\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><\/a><\/p>\n<p>Meanwhile, the amount of information has increased (combination of generator\/manager; new shortcuts; an in-page catalog browser and other niceties). Below you can find the basic information that you will need to create a module for the product page.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/module-presta.com\/modules\/prestashop-1-7-compatible.html\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2017\/04\/modules-prestashop-belvg.png\" width=\"481\" height=\"480\" alt=\"modules prestashop belvg\" class=\"module_image\" title=\"Prestashop 1.6 vs 1.7 Comparison\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop 1.7 Modules<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG modules<\/p><a href=\"https:\/\/module-presta.com\/modules\/prestashop-1-7-compatible.html\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the store<\/span><\/a><\/div><\/div><\/div>\n<h2><strong><span style=\"color: #000000;\">Tabs processing<\/span><\/strong><\/h2>\n<p>In Prestashop 1.6 you could make a separate tab for each module on the product page. In version 1.7, developers removed it but added a special tab where all modules are placed using the <strong>hookDisplayAdminProductsExtra<\/strong> hook.<\/p>\n<h2><strong><span style=\"color: #000000;\">Back office hook parameters<\/span><\/strong><\/h2>\n<p>The parameters no longer come from the query, an array of methods is passed to <strong>hookDisplayAdminProductsExtra.<\/strong><\/p>\n<pre class=\"lang:php decode:true\">public function hookDisplayAdminProductsExtra($params)\r\n$params [\r\n&nbsp;\"_ps_version\",\r\n&nbsp;\"id_product\",\r\n&nbsp;\"cookie\",\r\n&nbsp;\"cart\",\r\n&nbsp;\"altern\"\r\n]\r\n<\/pre>\n<h2><strong><span style=\"color: #000000;\">Assets<\/span><\/strong><\/h2>\n<p>URLs for CSS, JS, images, etc. should start with <strong>http:\/\/<\/strong> or <strong>https:\/\/<\/strong>. You can use the method <strong>Tools::getCurrentUrlProtocolPrefix ()<\/strong> for this purpose.<\/p>\n<h2><strong><span style=\"color: #000000;\">Form fields<\/span><\/strong><\/h2>\n<p>Field names must be created in the array of the hook in <em>[MODULE_NAME][INPUT_NAME]<\/em> format.<\/p>\n<h2><strong><span style=\"color: #000000;\">Folder structure in the module<\/span><\/strong><\/h2>\n<p>Let&rsquo;s take a look at the module and its structure. Here is the basic structure:<br>\n&#9500;&#9472;&#9472; css<br>\n&#9474; &nbsp;&nbsp;&#9500;&#9472;&#9472; external-lib.css<br>\n&#9474; &nbsp;&nbsp;&#9492;&#9472;&#9472; style.css<br>\n&#9500;&#9472;&#9472; js<br>\n&#9474; &nbsp;&nbsp;&#9492;&#9472;&#9472; app.js<br>\n&#9500;&#9472;&#9472; moduledemo.php<br>\n&#9492;&#9472;&#9472; views<br>\n&#9492;&#9472;&#9472; templates<br>\n&#9492;&#9472;&#9472; front<br>\n&#9500;&#9472;&#9472; included-template.tpl<br>\n&#9492;&#9472;&#9472; moduledemo.tpl<\/p>\n<p>Redefinition of the module with its assets files in version 1.7 looks like this:<\/p>\n<p>&#9492;&#9472;&#9472; modules<br>\n&#9500;&#9472;&#9472; css<br>\n&#9474; &#9500;&#9472;&#9472; external-lib.css<br>\n&#9474; &#9492;&#9472;&#9472; style.css<br>\n&#9500;&#9472;&#9472; js<br>\n&#9474; &#9492;&#9472;&#9472; app.js<br>\n&#9492;&#9472;&#9472; views<br>\n&#9492;&#9472;&#9472; templates<br>\n&#9492;&#9472;&#9472; front<br>\n&#9500;&#9472;&#9472; included-template.tpl<br>\n&#9492;&#9472;&#9472; moduledemo.tpl<\/p>\n<p>Everything looks much simpler in version 1.7 compared with 1.6, where we had to create module folders in CSS and JS root folders. Here is the folder structure in Prestashop 1.6:<\/p>\n<p>&#9500;&#9472;&#9472; css<br>\n&#9474; &nbsp;&nbsp;&#9492;&#9472;&#9472; modules<br>\n&#9474; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#9492;&#9472;&#9472; css<br>\n&#9474; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#9500;&#9472;&#9472; external-lib.css<br>\n&#9474; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#9492;&#9472;&#9472; style.css<br>\n&#9500;&#9472;&#9472; js<br>\n&#9474; &nbsp;&nbsp;&#9492;&#9472;&#9472; modules<br>\n&#9474; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#9492;&#9472;&#9472; js<br>\n&#9474; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#9492;&#9472;&#9472; app.js<br>\n&#9492;&#9472;&#9472; modules<br>\n&#9492;&#9472;&#9472; views<br>\n&#9492;&#9472;&#9472; templates<br>\n&#9492;&#9472;&#9472; front<br>\n&#9500;&#9472;&#9472; included-template.tpl<br>\n&#9492;&#9472;&#9472; moduledemo.tpl<\/p>\n<p>That is the end of the in-depth review of the differences between Prestashop 1.6 and 1.7. Leave your questions below if you have any, I&rsquo;ll be glad to answer them.<\/p>\n<p>Looking for a quality PrestaShop solution? Find a suitable one at <a href=\"https:\/\/module-presta.com\/\" target=\"_blank\" rel=\"noopener\">BelVG store<\/a>.<\/p>\n\n","protected":false},"excerpt":{"rendered":"Explore the difference between Prestashop 1.6 and Prestashop 1.7","protected":false},"author":60,"featured_media":15081,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,520],"tags":[],"class_list":["post-15066","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-custom-development","post_format-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=\"In this article, you will learn about Prestashop 1.7 new features to deal with Smarty and the key differences between 1.6 vs 1.7 PS versions and their modules.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Alexey Homiakov\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.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\\\/prestashop-1-6-vs-1-7-comparison.html#article\",\"name\":\"Prestashop 1.6 vs. 1.7. Comparison | BelVG Blog\",\"headline\":\"Prestashop 1.6 vs 1.7 Comparison\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alexey-homiakov#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/Prestashop-1_6-vs-1_7-Comparison_0.jpg\",\"width\":770,\"height\":433,\"caption\":\"Prestashop 1_6 vs 1_7 Comparison_0\"},\"datePublished\":\"2018-05-30T14:01:20+02:00\",\"dateModified\":\"2021-02-18T09:14:22+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":3,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html#webpage\"},\"articleSection\":\"Prestashop, PrestaShop Custom Development, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.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\\\/prestashop-1-6-vs-1-7-comparison.html#listItem\",\"name\":\"Prestashop 1.6 vs 1.7 Comparison\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html#listItem\",\"position\":3,\"name\":\"Prestashop 1.6 vs 1.7 Comparison\",\"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\\\/alexey-homiakov#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alexey-homiakov\",\"name\":\"Alexey Homiakov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5ba504d9e7289ffde40eab791bf6a50ab2c43985e0313dd5d9ed1adcbe824e95?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Alexey Homiakov\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html\",\"name\":\"Prestashop 1.6 vs. 1.7. Comparison | BelVG Blog\",\"description\":\"In this article, you will learn about Prestashop 1.7 new features to deal with Smarty and the key differences between 1.6 vs 1.7 PS versions and their modules.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alexey-homiakov#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alexey-homiakov#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/Prestashop-1_6-vs-1_7-Comparison_0.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html\\\/#mainImage\",\"width\":770,\"height\":433,\"caption\":\"Prestashop 1_6 vs 1_7 Comparison_0\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/prestashop-1-6-vs-1-7-comparison.html#mainImage\"},\"datePublished\":\"2018-05-30T14:01:20+02:00\",\"dateModified\":\"2021-02-18T09:14:22+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":"Prestashop 1.6 vs. 1.7. Comparison | BelVG Blog","description":"In this article, you will learn about Prestashop 1.7 new features to deal with Smarty and the key differences between 1.6 vs 1.7 PS versions and their modules.","canonical_url":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html#article","name":"Prestashop 1.6 vs. 1.7. Comparison | BelVG Blog","headline":"Prestashop 1.6 vs 1.7 Comparison","author":{"@id":"https:\/\/belvg.com\/blog\/author\/alexey-homiakov#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1_6-vs-1_7-Comparison_0.jpg","width":770,"height":433,"caption":"Prestashop 1_6 vs 1_7 Comparison_0"},"datePublished":"2018-05-30T14:01:20+02:00","dateModified":"2021-02-18T09:14:22+02:00","inLanguage":"en-US","commentCount":3,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html#webpage"},"articleSection":"Prestashop, PrestaShop Custom Development, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.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\/prestashop-1-6-vs-1-7-comparison.html#listItem","name":"Prestashop 1.6 vs 1.7 Comparison"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html#listItem","position":3,"name":"Prestashop 1.6 vs 1.7 Comparison","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\/alexey-homiakov#author","url":"https:\/\/belvg.com\/blog\/author\/alexey-homiakov","name":"Alexey Homiakov","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5ba504d9e7289ffde40eab791bf6a50ab2c43985e0313dd5d9ed1adcbe824e95?s=96&d=mm&r=g","width":96,"height":96,"caption":"Alexey Homiakov"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html#webpage","url":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html","name":"Prestashop 1.6 vs. 1.7. Comparison | BelVG Blog","description":"In this article, you will learn about Prestashop 1.7 new features to deal with Smarty and the key differences between 1.6 vs 1.7 PS versions and their modules.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/alexey-homiakov#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/alexey-homiakov#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/02\/Prestashop-1_6-vs-1_7-Comparison_0.jpg","@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html\/#mainImage","width":770,"height":433,"caption":"Prestashop 1_6 vs 1_7 Comparison_0"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html#mainImage"},"datePublished":"2018-05-30T14:01:20+02:00","dateModified":"2021-02-18T09:14:22+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":"15066","title":"Prestashop 1.6 vs. 1.7. Comparison | #site_title","description":"In this article, you will learn about Prestashop 1.7 new features to deal with Smarty and the key differences between 1.6 vs 1.7 PS versions and their modules.","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:12","updated":"2026-11-03 18:37:12"},"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\tPrestashop 1.6 vs 1.7 Comparison\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":"Prestashop 1.6 vs 1.7 Comparison","link":"https:\/\/belvg.com\/blog\/prestashop-1-6-vs-1-7-comparison.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15066","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\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=15066"}],"version-history":[{"count":9,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15066\/revisions"}],"predecessor-version":[{"id":25939,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/15066\/revisions\/25939"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/15081"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=15066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=15066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=15066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}