{"id":74520,"date":"2016-08-08T09:42:11","date_gmt":"2016-08-08T13:42:11","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=74520"},"modified":"2016-09-21T04:35:39","modified_gmt":"2016-09-21T08:35:39","slug":"prestashop-1-6-x-how-to-change-product-page-tabs-order","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-1-6-x-how-to-change-product-page-tabs-order.html","title":{"rendered":"PrestaShop 1.6.x. How to change product page tabs order"},"content":{"rendered":"<p>This tutorial will show you how to change product&#8217;s page tabs order in <strong><a href=\"https:\/\/www.templatemonster.com\/properties\/prestashop-compatibility\/1-6-x\/\" title=\"PrestaShop 1.6.x.\">PrestaShop 1.6.x.<\/a><\/strong> templates.<\/p>\r\n\r\n <div class=\"video-container\">\r\n\t<iframe src=\"https:\/\/www.youtube.com\/embed\/uQlbyRFSTnU\"><\/iframe>\r\n<\/div>\r\n<ol>\r\n\t<li>\r\n\t\t<p> Find the <strong>product.tpl<\/strong> file under themes>your_theme folder and locate there the following code: <strong>&lt;ul class=&quot;product-info-tabs nav nav-stacked&quot;&gt;<\/strong>. To change the order of tabs you need to change the order of <strong>if<\/strong> blocks. For example, if you want to move a description tab to the end, you need to cut and paste before the closing &lt;\/ul&gt; tag the following code: <\/p>\r\n<pre>{if isset($product) &amp;&amp; $product->description}\r\n\t&lt;li class=\"product-description-tab\"&gt;&lt;a data-toggle=\"tab\" href=\"#product-description-tab-content\"&gt;{l s='More info'}&lt;\/a>&lt;\/li&gt;\r\n{\/if}<\/pre>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-1-300x169.jpg\" alt=\"PrestaShop 1.6.x. How to change product page tabs order-1\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-74521\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-1-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-1-768x432.jpg 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\t\r\n\t<\/li>\r\n\t<li>\r\n\t\t<p> Now you need to change the order of tabs content as well. Locate the following code: <strong>&lt;div class=&quot;tab-content&quot;&gt;<\/strong>. Cut and paste the following piece of code to the end of this container, before the closing &lt;\/div&gt; tag:<\/p>\r\n\t\t<pre>\r\n{if isset($product) &amp;&amp; $product-&gt;description}\r\n\t&lt;span class=\"accordion active\"&gt;&lt;a href=\"#product-description-tab-content\"&gt;{l s='More info'}&lt;\/a&gt;&lt;\/span&gt;\r\n\t&lt;div id=\"product-description-tab-content\" class=\"product-description-tab-content tab-pane\"&gt;\r\n\t&lt;div class=\"rte\"&gt;{$product-&gt;description}&lt;\/div&gt;\r\n\t&lt;\/div&gt;\r\n{\/if}\r\n\t\t<\/pre>\r\n\t\t\r\n\t<p>You also need to remove <strong>active<\/strong> class from this tab and add it to some other tab which you want to be active.<\/p><\/li>\r\n\t\r\n\t<li><p><strong>Description<\/strong> tab is displayed the last one and Features tab is the first now.<\/p>\r\n\t\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-2-300x169.jpg\" alt=\"PrestaShop 1.6.x. How to change product page tabs order-2\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-74522\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-2-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-2-768x432.jpg 768w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/08\/PrestaShop-1.6.x.-How-to-change-product-page-tabs-order-2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\t\r\n\t<\/li>\r\n<\/ol>\r\n<p>Now you know how to change product page tabs order in <strong>PrestaShop 1.6.x.<\/strong>.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=uQlbyRFSTnU?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to change product page tabs order<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to change product&#8217;s page tabs order in <strong>PrestaShop 1.6.x.<\/strong> templates.<\/p>\n","protected":false},"author":93,"featured_media":74523,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[857,542,977],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/74520"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/93"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=74520"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/74520\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/74523"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=74520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=74520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=74520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}