Jump to content

[solved] how to start the productdetail page with the feature tab instead of the more info


Recommended Posts

Hi,

I'm working an a very large shop with 10000 products.
I want to start my productdetail page with the Features tab showed at first.

this because this tab has a lot of very important info.
And if they want more info, they can click the tab or the button : more info.

any idea how I can manage this?

ths

Link to comment
Share on other sites

Switching the tabs around should do the trick. Move the following line 332 of product.tpl in your theme's directory (in PrestaShop v1.3.1) up a line:

{if $features}<a id="more_info_tab_data_sheet" href="#idTab2">{l s='Data sheet'}{/if}



and move the following code on lines 342-349 up four lines above the {if $product->description}:

>
{if $features}
   <!-- product's features -->
</pre>
<ul>
   {foreach from=$features item=feature}
{$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}
   {/foreach}
</ul>
<br>{/if

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...