bernierf1 Posted September 1, 2024 Share Posted September 1, 2024 Hello, I tried to modify the product.tpl file to display only the detail tab without having to click (with full display) but I did not succeed. Could someone help me please? Link to comment Share on other sites More sharing options...
ps8modules Posted September 2, 2024 Share Posted September 2, 2024 (edited) Hi. Can you upload the contents of your modified product.tpl here? Also need to edit ./themes/classic/templates/catalog/_partials/product-details.tpl Edited September 2, 2024 by ps8modules.com (see edit history) Link to comment Share on other sites More sharing options...
bernierf1 Posted September 3, 2024 Author Share Posted September 3, 2024 Hello, Here is the snippet of the original code that I tried to modify... Citation {block name='product_tabs'} <div class="tabs"> <ul class="nav nav-tabs" role="tablist"> {if $product.description} <li class="nav-item"> <a class="nav-link{if $product.description} active js-product-nav-active{/if}" data-toggle="tab" href="#description" role="tab" aria-controls="description" {if $product.description} aria-selected="true"{/if}>{l s='Description' d='Shop.Theme.Catalog'}</a> </li> {/if} <li class="nav-item"> <a class="nav-link{if !$product.description} active js-product-nav-active{/if}" data-toggle="tab" href="#product-details" role="tab" aria-controls="product-details" {if !$product.description} aria-selected="true"{/if}>{l s='Product Details' d='Shop.Theme.Catalog'}</a> </li> {if $product.attachments} <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#attachments" role="tab" aria-controls="attachments">{l s='Attachments' d='Shop.Theme.Catalog'}</a> </li> {/if} {foreach from=$product.extraContent item=extra key=extraKey} <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#extra-{$extraKey}" role="tab" aria-controls="extra-{$extraKey}">{$extra.title}</a> </li> {/foreach} </ul> <div class="tab-content" id="tab-content"> <div class="tab-pane fade in{if $product.description} active js-product-tab-active{/if}" id="description" role="tabpanel"> {block name='product_description'} <div class="product-description">{$product.description nofilter}</div> {/block} </div> I tried to modify several things but it doesn't work. Link to comment Share on other sites More sharing options...
ps8modules Posted September 3, 2024 Share Posted September 3, 2024 (edited) Hi. This is only product.tpl. As I wrote, product-details.tpl also needs to be modified. Can you please tell me which version of Prestashop you are using and if you are using the classic theme? I am also sending edited files from PS 8.1.3. product.tpl product-details.tpl product.tpl (on the left is the original, on the right modified): product-details.tpl (on the left is the original, on the right modified): result: Edited September 3, 2024 by ps8modules.com (see edit history) Link to comment Share on other sites More sharing options...
bernierf1 Posted September 3, 2024 Author Share Posted September 3, 2024 Good morning! It works wonderfully. I'm using version 8.1.7 of the Classic theme A huge thank you! 1 Link to comment Share on other sites More sharing options...
ps8modules Posted September 3, 2024 Share Posted September 3, 2024 I was happy to help Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now