elipso Posted June 6, 2023 Share Posted June 6, 2023 Hi there I need edit product info and detail product to be on full website width, tutorials on older version of prestashop dont work. Theme is classic Link to comment Share on other sites More sharing options...
BonPresta Posted June 14, 2023 Share Posted June 14, 2023 Hello. You need to change product.tpl file \themes\classic\templates\catalog\ Move the "product_tabs" block above the "product_accessories" block. Link to comment Share on other sites More sharing options...
elipso Posted June 21, 2023 Author Share Posted June 21, 2023 On 6/14/2023 at 11:51 AM, BonPresta said: Hello. You need to change product.tpl file \themes\classic\templates\catalog\ Move the "product_tabs" block above the "product_accessories" block. Thanks Done Link to comment Share on other sites More sharing options...
cmoi Posted January 31 Share Posted January 31 hello I'm in 8.1.3, I tried to make the modification Quote change product.tpl file \themes\classic\templates\catalog\ Move the "product_tabs" block above the "product_accessories" block. but it doesn't work for me by thierry Link to comment Share on other sites More sharing options...
cmoi Posted February 9 Share Posted February 9 On 1/31/2024 at 3:57 PM, cmoi said: hello I'm in 8.1.3, I tried to make the modification but it doesn't work for me by thierry I succeeded you have to move this {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> {block name='product_details'} {include file='catalog/_partials/product-details.tpl'} {/block} {block name='product_attachments'} {if $product.attachments} <div class="tab-pane fade in" id="attachments" role="tabpanel"> <section class="product-attachments"> <p class="h5 text-uppercase">{l s='Download' d='Shop.Theme.Actions'}</p> {foreach from=$product.attachments item=attachment} <div class="attachment"> <h4><a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">{$attachment.name}</a></h4> <p>{$attachment.description}</p> <a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}"> {l s='Download' d='Shop.Theme.Actions'} ({$attachment.file_size_formatted}) </a> </div> {/foreach} </section> </div> {/if} {/block} {foreach from=$product.extraContent item=extra key=extraKey} <div class="tab-pane fade in {$extra.attr.class}" id="extra-{$extraKey}" role="tabpanel" {foreach $extra.attr as $key => $val} {$key}="{$val}"{/foreach}> {$extra.content nofilter} </div> {/foreach} </div> </div> {/block} just after {block name='product_accessories'} {if $accessories} <section class="product-accessories clearfix"> <p class="h5 text-uppercase">{l s='You might also like' d='Shop.Theme.Catalog'}</p> <div class="products row"> {foreach from=$accessories item="product_accessory" key="position"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory position=$position productClasses="col-xs-12 col-sm-6 col-lg-4 col-xl-3"} {/block} {/foreach} </div> </section> {/if} {/block} bye thierry Link to comment Share on other sites More sharing options...
Sergio Posted April 14 Share Posted April 14 On 2/9/2024 at 8:31 PM, cmoi said: I succeeded you have to move this {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> {block name='product_details'} {include file='catalog/_partials/product-details.tpl'} {/block} {block name='product_attachments'} {if $product.attachments} <div class="tab-pane fade in" id="attachments" role="tabpanel"> <section class="product-attachments"> <p class="h5 text-uppercase">{l s='Download' d='Shop.Theme.Actions'}</p> {foreach from=$product.attachments item=attachment} <div class="attachment"> <h4><a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}">{$attachment.name}</a></h4> <p>{$attachment.description}</p> <a href="{url entity='attachment' params=['id_attachment' => $attachment.id_attachment]}"> {l s='Download' d='Shop.Theme.Actions'} ({$attachment.file_size_formatted}) </a> </div> {/foreach} </section> </div> {/if} {/block} {foreach from=$product.extraContent item=extra key=extraKey} <div class="tab-pane fade in {$extra.attr.class}" id="extra-{$extraKey}" role="tabpanel" {foreach $extra.attr as $key => $val} {$key}="{$val}"{/foreach}> {$extra.content nofilter} </div> {/foreach} </div> </div> {/block} just after {block name='product_accessories'} {if $accessories} <section class="product-accessories clearfix"> <p class="h5 text-uppercase">{l s='You might also like' d='Shop.Theme.Catalog'}</p> <div class="products row"> {foreach from=$accessories item="product_accessory" key="position"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory position=$position productClasses="col-xs-12 col-sm-6 col-lg-4 col-xl-3"} {/block} {/foreach} </div> </section> {/if} {/block} bye thierry Doesn't work on 8.1.5.... I have tried both, and several ways... I am tired. Link to comment Share on other sites More sharing options...
cmoi Posted April 15 Share Posted April 15 8 hours ago, Sergio said: Doesn't work on 8.1.5.... I have tried both, and several ways... I am tired. Hello, I updated to 8.1.5, it's still good. remember to clear the browser cache, or check the code 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