RamboRich Posted July 20, 2018 Share Posted July 20, 2018 Just trying to figure out how to remove the 'Product Details' tab in the product page. All of our descriptions, details, etc are in the 'Description' tab, no need for an additional 'Product Details' tab in our case. Currently, we have the 'Description' tab, the 'Product Details' tab and then underneath that, the 'Reviews' tab. How can this be removed? I can't see any easy way to do this in the backoffice (although there probably should be?). Maybe i'm not seeing it but its driving me a little nuts. Spending too much time on this issue. Anybody have any ideas? I searched the forums and found 1-2 posts on this issue, but doesn't seem to even address PS 1.7.4 version. Link to comment Share on other sites More sharing options...
ican Posted July 20, 2018 Share Posted July 20, 2018 You can remove it by removing code in product.tpl file of prestashop directory. Link to comment Share on other sites More sharing options...
RamboRich Posted July 20, 2018 Author Share Posted July 20, 2018 Yeah, I looked through product.tpl in the theme/template/catalog directory, but couldn't figure out where to comment it out. Link to comment Share on other sites More sharing options...
ican Posted July 20, 2018 Share Posted July 20, 2018 You have to comment product details li and block in tab. Link to comment Share on other sites More sharing options...
RamboRich Posted July 20, 2018 Author Share Posted July 20, 2018 (edited) I'm not seeing any code that points to product details. Maybe i'm in the wrong file? I'm using the Warehouse theme, could that be why i'm not finding it? Edited July 20, 2018 by RamboRich (see edit history) Link to comment Share on other sites More sharing options...
ican Posted July 21, 2018 Share Posted July 21, 2018 You have to comment this line <li class="nav-item"> <a class="nav-link{if !$product.description} 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> Link to comment Share on other sites More sharing options...
ican Posted July 21, 2018 Share Posted July 21, 2018 You will find correct file in your theme folder /templates/catalog/product.tpl Link to comment Share on other sites More sharing options...
RamboRich Posted July 21, 2018 Author Share Posted July 21, 2018 11 hours ago, ican said: You will find correct file in your theme folder /templates/catalog/product.tpl Maybe my file is different because of the Warehouse theme. This is what I have as product.tpl {** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license a nd are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file=$layout} {block name='head_seo' prepend} <link rel="canonical" href="{$product.canonical_url}"> {/block} {block name='head_og_tags'} <meta property="og:type" content="product"> <meta property="og:url" content="{$urls.current_url}"> <meta property="og:title" content="{$page.meta.title}"> <meta property="og:site_name" content="{$shop.name}"> <meta property="og:description" content="{$page.meta.description}"> <meta property="og:image" content="{$product.cover.large.url}"> {/block} {block name='head' append} <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}"> <meta property="product:pretax_price:currency" content="{$currency.iso_code}"> <meta property="product:price:amount" content="{$product.price_amount}"> <meta property="product:price:currency" content="{$currency.iso_code}"> {if isset($product.weight) && ($product.weight != 0)} <meta property="product:weight:value" content="{$product.weight}"> <meta property="product:weight:units" content="{$product.weight_unit}"> {/if} {if $iqitTheme.bread_bg_category} {assign var="categoryImage" value="img/c/`$product.id_category_default`-category_default.jpg"} {if file_exists($categoryImage)} <style> #wrapper .breadcrumb{ background-image: url('{$link->getCatImageLink($product.category, $product.id_category_default, 'category_default')}'); }</style> {/if} {/if} {/block} {block name='content'} <section id="main" itemscope itemtype="https://schema.org/Product"> <div id="product-preloader"><i class="fa fa-circle-o-notch fa-spin"></i></div> <div id="main-product-wrapper"> <meta itemprop="url" content="{$product.url}"> <div class="row product-info-row"> <div class="col-md-{$iqitTheme.pp_img_width} col-product-image"> {block name='page_content_container'} <section class="page-content" id="content"> {block name='page_content'} {block name='product_cover_thumbnails'} {include file='catalog/_partials/product-cover-thumbnails.tpl'} {/block} {block name='after_cover_thumbnails'} <div class="after-cover-tumbnails text-center">{hook h='displayAfterProductThumbs'}</div> {/block} {/block} </section> {/block} </div> <div class="col-md-{$iqitTheme.pp_content_width} col-product-info"> {block name='page_header_container'} <div class="product_header_container clearfix"> {block name='product_brand_below'} {if $iqitTheme.pp_man_logo == 'next-title'} {if isset($product_manufacturer->id)} {if isset($manufacturer_image_url)} <meta itemprop="brand" content="{$product_manufacturer->name}"> <div class="product-manufacturer product-manufacturer-next float-right"> <a href="{$product_brand_url}"> <img src="{$manufacturer_image_url}" class="img-fluid manufacturer-logo"/> </a> </div> {/if} {/if} {/if} {/block} {block name='page_header'} <h1 class="h1 page-title" itemprop="name"><span>{block name='page_title'}{$product.name}{/block}</span></h1> {/block} {block name='product_brand_below'} {if $iqitTheme.pp_man_logo == 'title'} {if isset($product_manufacturer->id)} <meta itemprop="brand" content="{$product_manufacturer->name}"> {if isset($manufacturer_image_url)} <div class="product-manufacturer mb-3"> <a href="{$product_brand_url}"> <img src="{$manufacturer_image_url}" class="img-fluid manufacturer-logo"/> </a> </div> {else} <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}:</label> <span> <a href="{$product_brand_url}">{$product_manufacturer->name}</a> </span> {/if} {/if} {/if} {if $iqitTheme.pp_man_logo == 'next-title'} {if isset($product_manufacturer->id)} {if !isset($manufacturer_image_url)} <meta itemprop="brand" content="{$product_manufacturer->name}"> <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}:</label> <span> <a href="{$product_brand_url}">{$product_manufacturer->name}</a> </span> {/if} {/if} {/if} {/block} {block name='product_prices'} {include file='catalog/_partials/product-prices.tpl'} {/block} </div> {/block} <div class="product-information"> {block name='product_description_short'} <div id="product-description-short-{$product.id}" itemprop="description" class="rte-content">{$product.description_short nofilter}</div> {/block} {if $product.is_customizable && count($product.customizations.fields)} {block name='product_customization'} {include file="catalog/_partials/product-customization.tpl" customizations=$product.customizations} {/block} {/if} <div class="product-actions"> {block name='product_buy'} <form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id"> <input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id"> {block name='product_variants'} {hook h='displayProductVariants' product=$product} {include file='catalog/_partials/product-variants.tpl'} {/block} {block name='product_pack'} {if $packItems} <section class="product-pack"> <p class="h4">{l s='This pack contains' d='Shop.Theme.Catalog'}</p> {foreach from=$packItems item="product_pack"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/pack-product.tpl' product=$product_pack} {/block} {/foreach} </section> {/if} {/block} {block name='product_add_to_cart'} {include file='catalog/_partials/product-add-to-cart.tpl'} {/block} {block name='product_discounts'} {include file='catalog/_partials/product-discounts.tpl'} {/block} {block name='product_additional_info'} {include file='catalog/_partials/product-additional-info.tpl'} {/block} {block name='product_refresh'} <input class="product-refresh ps-hidden-by-js" name="refresh" type="submit" data-url-update="false" value="{l s='Refresh' d='Shop.Theme.Actions'}"> {/block} </form> {/block} {block name='hook_display_reassurance'} {hook h='displayReassurance'} {/block} </div> </div> </div> {if $iqitTheme.pp_sidebar} <div class="col-md-{$iqitTheme.pp_sidebar} sidebar product-sidebar"> {if $iqitTheme.pp_accesories == 'sidebar'} {block name='product_accessories_sidebar'} {if $accessories} <section class="product-accessories product-accessories-sidebar block"> <p class="block-title"><span>{l s='You might also like' d='Shop.Theme.Catalog'}</span></p> <div id="product-accessories-sidebar" class="block-content products products-grid"> {foreach from=$accessories item="product_accessory"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/product-small.tpl' product=$product_accessory carousel=true elementor=true} {/block} {/foreach} </div> </section> {/if} {/block} {/if} {hook h='displayRightColumnProduct'} </div> {/if} </div> {if $iqitTheme.pp_tabs== 'tabh' || $iqitTheme.pp_tabs== 'tabha'} {include file='catalog/_partials/_product_partials/product-tabs-h.tpl'} {elseif $iqitTheme.pp_tabs== 'section'} {include file='catalog/_partials/_product_partials/product-tabs-sections.tpl'} {/if} {if $iqitTheme.pp_accesories == 'footer'} {block name='product_accessories_footer'} {if $accessories} <section class="product-accessories block block-section"> <p class="section-title">{l s='You might also like' d='Shop.Theme.Catalog'}</p> <div class="block-content"> <div class="products slick-products-carousel products-grid slick-default-carousel"> {foreach from=$accessories item="product_accessory"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory carousel=true} {/block} {/foreach} </div> </div> </section> {/if} {/block} {/if} {block name='product_footer'} {hook h='displayFooterProduct' product=$product category=$category} {/block} {block name='product_images_modal'} {include file='catalog/_partials/product-images-modal.tpl'} {/block} {block name='page_footer_container'} <footer class="page-footer"> {block name='page_footer'} <!-- Footer content --> {/block} </footer> {/block} </div> </section> {/block} Link to comment Share on other sites More sharing options...
ican Posted July 26, 2018 Share Posted July 26, 2018 On 7/21/2018 at 10:03 PM, RamboRich said: Maybe my file is different because of the Warehouse theme. This is what I have as product.tpl {** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license a nd are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file=$layout} {block name='head_seo' prepend} <link rel="canonical" href="{$product.canonical_url}"> {/block} {block name='head_og_tags'} <meta property="og:type" content="product"> <meta property="og:url" content="{$urls.current_url}"> <meta property="og:title" content="{$page.meta.title}"> <meta property="og:site_name" content="{$shop.name}"> <meta property="og:description" content="{$page.meta.description}"> <meta property="og:image" content="{$product.cover.large.url}"> {/block} {block name='head' append} <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}"> <meta property="product:pretax_price:currency" content="{$currency.iso_code}"> <meta property="product:price:amount" content="{$product.price_amount}"> <meta property="product:price:currency" content="{$currency.iso_code}"> {if isset($product.weight) && ($product.weight != 0)} <meta property="product:weight:value" content="{$product.weight}"> <meta property="product:weight:units" content="{$product.weight_unit}"> {/if} {if $iqitTheme.bread_bg_category} {assign var="categoryImage" value="img/c/`$product.id_category_default`-category_default.jpg"} {if file_exists($categoryImage)} <style> #wrapper .breadcrumb{ background-image: url('{$link->getCatImageLink($product.category, $product.id_category_default, 'category_default')}'); }</style> {/if} {/if} {/block} {block name='content'} <section id="main" itemscope itemtype="https://schema.org/Product"> <div id="product-preloader"><i class="fa fa-circle-o-notch fa-spin"></i></div> <div id="main-product-wrapper"> <meta itemprop="url" content="{$product.url}"> <div class="row product-info-row"> <div class="col-md-{$iqitTheme.pp_img_width} col-product-image"> {block name='page_content_container'} <section class="page-content" id="content"> {block name='page_content'} {block name='product_cover_thumbnails'} {include file='catalog/_partials/product-cover-thumbnails.tpl'} {/block} {block name='after_cover_thumbnails'} <div class="after-cover-tumbnails text-center">{hook h='displayAfterProductThumbs'}</div> {/block} {/block} </section> {/block} </div> <div class="col-md-{$iqitTheme.pp_content_width} col-product-info"> {block name='page_header_container'} <div class="product_header_container clearfix"> {block name='product_brand_below'} {if $iqitTheme.pp_man_logo == 'next-title'} {if isset($product_manufacturer->id)} {if isset($manufacturer_image_url)} <meta itemprop="brand" content="{$product_manufacturer->name}"> <div class="product-manufacturer product-manufacturer-next float-right"> <a href="{$product_brand_url}"> <img src="{$manufacturer_image_url}" class="img-fluid manufacturer-logo"/> </a> </div> {/if} {/if} {/if} {/block} {block name='page_header'} <h1 class="h1 page-title" itemprop="name"><span>{block name='page_title'}{$product.name}{/block}</span></h1> {/block} {block name='product_brand_below'} {if $iqitTheme.pp_man_logo == 'title'} {if isset($product_manufacturer->id)} <meta itemprop="brand" content="{$product_manufacturer->name}"> {if isset($manufacturer_image_url)} <div class="product-manufacturer mb-3"> <a href="{$product_brand_url}"> <img src="{$manufacturer_image_url}" class="img-fluid manufacturer-logo"/> </a> </div> {else} <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}:</label> <span> <a href="{$product_brand_url}">{$product_manufacturer->name}</a> </span> {/if} {/if} {/if} {if $iqitTheme.pp_man_logo == 'next-title'} {if isset($product_manufacturer->id)} {if !isset($manufacturer_image_url)} <meta itemprop="brand" content="{$product_manufacturer->name}"> <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}:</label> <span> <a href="{$product_brand_url}">{$product_manufacturer->name}</a> </span> {/if} {/if} {/if} {/block} {block name='product_prices'} {include file='catalog/_partials/product-prices.tpl'} {/block} </div> {/block} <div class="product-information"> {block name='product_description_short'} <div id="product-description-short-{$product.id}" itemprop="description" class="rte-content">{$product.description_short nofilter}</div> {/block} {if $product.is_customizable && count($product.customizations.fields)} {block name='product_customization'} {include file="catalog/_partials/product-customization.tpl" customizations=$product.customizations} {/block} {/if} <div class="product-actions"> {block name='product_buy'} <form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id"> <input type="hidden" name="id_customization" value="{$product.id_customization}" id="product_customization_id"> {block name='product_variants'} {hook h='displayProductVariants' product=$product} {include file='catalog/_partials/product-variants.tpl'} {/block} {block name='product_pack'} {if $packItems} <section class="product-pack"> <p class="h4">{l s='This pack contains' d='Shop.Theme.Catalog'}</p> {foreach from=$packItems item="product_pack"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/pack-product.tpl' product=$product_pack} {/block} {/foreach} </section> {/if} {/block} {block name='product_add_to_cart'} {include file='catalog/_partials/product-add-to-cart.tpl'} {/block} {block name='product_discounts'} {include file='catalog/_partials/product-discounts.tpl'} {/block} {block name='product_additional_info'} {include file='catalog/_partials/product-additional-info.tpl'} {/block} {block name='product_refresh'} <input class="product-refresh ps-hidden-by-js" name="refresh" type="submit" data-url-update="false" value="{l s='Refresh' d='Shop.Theme.Actions'}"> {/block} </form> {/block} {block name='hook_display_reassurance'} {hook h='displayReassurance'} {/block} </div> </div> </div> {if $iqitTheme.pp_sidebar} <div class="col-md-{$iqitTheme.pp_sidebar} sidebar product-sidebar"> {if $iqitTheme.pp_accesories == 'sidebar'} {block name='product_accessories_sidebar'} {if $accessories} <section class="product-accessories product-accessories-sidebar block"> <p class="block-title"><span>{l s='You might also like' d='Shop.Theme.Catalog'}</span></p> <div id="product-accessories-sidebar" class="block-content products products-grid"> {foreach from=$accessories item="product_accessory"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/product-small.tpl' product=$product_accessory carousel=true elementor=true} {/block} {/foreach} </div> </section> {/if} {/block} {/if} {hook h='displayRightColumnProduct'} </div> {/if} </div> {if $iqitTheme.pp_tabs== 'tabh' || $iqitTheme.pp_tabs== 'tabha'} {include file='catalog/_partials/_product_partials/product-tabs-h.tpl'} {elseif $iqitTheme.pp_tabs== 'section'} {include file='catalog/_partials/_product_partials/product-tabs-sections.tpl'} {/if} {if $iqitTheme.pp_accesories == 'footer'} {block name='product_accessories_footer'} {if $accessories} <section class="product-accessories block block-section"> <p class="section-title">{l s='You might also like' d='Shop.Theme.Catalog'}</p> <div class="block-content"> <div class="products slick-products-carousel products-grid slick-default-carousel"> {foreach from=$accessories item="product_accessory"} {block name='product_miniature'} {include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory carousel=true} {/block} {/foreach} </div> </div> </section> {/if} {/block} {/if} {block name='product_footer'} {hook h='displayFooterProduct' product=$product category=$category} {/block} {block name='product_images_modal'} {include file='catalog/_partials/product-images-modal.tpl'} {/block} {block name='page_footer_container'} <footer class="page-footer"> {block name='page_footer'} <!-- Footer content --> {/block} </footer> {/block} </div> </section> {/block} can you please share your url ? so i can find which block you have to comment. Link to comment Share on other sites More sharing options...
RamboRich Posted July 26, 2018 Author Share Posted July 26, 2018 (edited) 3 hours ago, ican said: can you please share your url ? so i can find which block you have to comment. Here's an example of my product page: URL Link We don't really need the 'Product Details' tab as everything is in the 'Description'. May add it at a later date, but don't need it for now. Edited July 26, 2018 by RamboRich add more information (see edit history) Link to comment Share on other sites More sharing options...
ican Posted July 27, 2018 Share Posted July 27, 2018 Find the product-tabs-h.tpl or product-tabs-section.tpl file. 1 Link to comment Share on other sites More sharing options...
RamboRich Posted July 27, 2018 Author Share Posted July 27, 2018 51 minutes ago, ican said: Find the product-tabs-h.tpl or product-tabs-section.tpl file. Thank you so much ican. I commented out the appropriate section in the 'product-tabs-h.tpl file and it worked! Like so: {block name='product_tabs'} <div class="tabs product-tabs"> <ul id="product-infos-tabs" class="nav nav-tabs"> {if $product.description} <li class="nav-item"> <a class="nav-link{if $product.description} active{/if}" data-toggle="tab" href="#description"> {l s='Description' d='Shop.Theme.Catalog'} </a> </li> {/if}{** <li class="nav-item"> <a class="nav-link{if !$product.description} active{/if}" data-toggle="tab" href="#product-details-tab"> {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"> {l s='Attachments' d='Shop.Theme.Catalog'} </a> </li> {/if} {if $iqitTheme.pp_accesories == 'tab'} {if $accessories} <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#accessories-tab"> {l s='Related products' d='Shop.Theme.Catalog'} </a> </li> {/if} {/if} Seems to work ok. Thank you so much for the help! I owe you one! 2 1 Link to comment Share on other sites More sharing options...
ican Posted July 27, 2018 Share Posted July 27, 2018 </li> *} {if $product.attachments} correct it. </li> *} {if $product.attachments} Link to comment Share on other sites More sharing options...
etelefonro Posted October 18, 2018 Share Posted October 18, 2018 (edited) Thank you for this ! worked same theme. Edited October 18, 2018 by etelefonro fonded (see edit history) Link to comment Share on other sites More sharing options...
Gereon Posted July 16, 2019 Share Posted July 16, 2019 (edited) I've benn trying to follow the steps posted above, but unfortunately it does not work. I am using the same theme (Warehouse). I have found product-tabs-h.tpl and commented out the lines mentioned above using dreamweaver then I upploaded to the server, cleaned catche but product details tab is still there. Could you please advise me what should I do? Edited July 16, 2019 by Gereon (see edit history) Link to comment Share on other sites More sharing options...
Gereon Posted July 16, 2019 Share Posted July 16, 2019 I've just realised that I didn't enable recompilation in backoffice/Advanced Parameter/Smarty/Template compilation - force compilation. Clear cache - Clear cache everytime something has been modified. Everything works fine now. 1 Link to comment Share on other sites More sharing options...
almu25581 Posted April 9, 2020 Share Posted April 9, 2020 I've just commented the appropiate line in the 'product-tabs-h.tpl' file and it works, partly: the tab has disappeared but the information that was in it, has not. I would be very grateful if someone could help me! Link to comment Share on other sites More sharing options...
almu25581 Posted April 10, 2020 Share Posted April 10, 2020 I've modified the 'product-details.tpl' file and now it works ok! Thank you very much for all the information in this topic, it was very useful for me! Link to comment Share on other sites More sharing options...
Zohaib-fk Posted December 3, 2020 Share Posted December 3, 2020 I got it working by doing the below change in file themes/classic/templates/catalog/product.tpl The change can be seen on URL => https://www.hrms-systems.com/presta-addons/en/men/1-1-hummingbird-printed-t-shirt.html Attached screenshot. <!-- <li class="nav-item"> <a class="nav-link{if !$product.description} 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> --> Link to comment Share on other sites More sharing options...
kurisuti Posted August 7, 2021 Share Posted August 7, 2021 On 7/21/2018 at 1:41 PM, ican said: You have to comment this line <li class="nav-item"> <a class="nav-link{if !$product.description} 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> This fix worked like a charm for me as well (after I did a force compilation), thank you! 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