View Single Post
  #17  
Old 12-04-2014, 11:25 PM
 
SignTorch SignTorch is offline
 

Advanced Member
  
Join Date: Jun 2010
Posts: 30
 

Default Re: Remove attributes with multiple values from Specification Tab?

you could remove all product attributes

-------

or to hide all tabs and tab content, put this in custom.css (then description uses full container width)

.product-details-tabs .tabs {display:none;}

--------

or an easy way to selectively remove the specifications tab, run this SQL

UPDATE xc_products SET attrSepTab = 0;

then copy

skins/default/en/product/details/parts/common.product-main-attributes.tpl

to custom_skin and comment out the {*<ul> ... </ul>*} tags

that hides the attributes and any group titles on any products where attrSepTab is 0

that way you could show the specifications tab on some products by setting attrSepTabs to not 0 on certain products

---------

to just globally hide the specs tab you could decorate getTabs() in

classes/XLite/View/Product/Details/Customer/Page/APage.php

with something like this (untested)

Code:
if($id!="specification") $list[$k] = array( 'index' => $i, 'id' => 'product-details-tab-' . $id, 'name' => is_array($data) && !empty($data['name']) ? $data['name'] : $k, 'weight' => isset($data['weight']) ? $data['weight'] : $i, );
__________________
SignTorch Vector Graphics
dropping xc4.6.x, tested xc5 (FAIL)
Reply With Quote