DelaneySecure Posted October 16, 2013 Share Posted October 16, 2013 Any help appreciated, please We have successfully configured features for our products. However, in order to facilitate a Google Products feed, we added Age and Sex features to all our products. But these features don't really make sense for electrical goods and software, so I'd like to hide these individual features in the Datasheet tab, but leave others showing as standard. How do I do that? Link to comment Share on other sites More sharing options...
vekia Posted October 17, 2013 Share Posted October 17, 2013 you can hide it totally, or just hide it in browser? you can use if condition, in.tpl file add for css styles (it will hide it in browser) {if id_feature==5}display:none;{/if} or {if id_feature!=5}CODE OF FEATURES{/if} Link to comment Share on other sites More sharing options...
flipe Posted October 24, 2013 Share Posted October 24, 2013 Where I put that code to hide the tab data sheet to all my products? Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 you need to do it in themes/YOUR_THEME/product.tpl file Link to comment Share on other sites More sharing options...
flipe Posted October 24, 2013 Share Posted October 24, 2013 I don't understood what to do in the product.tpl, that's my code in the file: <!-- description and features --> {if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments) || isset($product) && $product->customizable} <div id="more_info_block" class="clear"> <ul id="more_info_tabs" class="idTabs idTabsShort clearfix"> {if $product->description}<li><a id="more_info_tab_more_info" href="#idTab1">{l s='More info'}</a></li>{/if} {if $features}<li><a id="more_info_tab_data_sheet" href="#idTab2">{l s='Data sheet'}</a></li>{/if} {if $attachments}<li><a id="more_info_tab_attachments" href="#idTab9">{l s='Download'}</a></li>{/if} {if isset($accessories) AND $accessories}<li><a href="#idTab4">{l s='Accessories'}</a></li>{/if} {if isset($product) && $product->customizable}<li><a href="#idTab10">{l s='Product customization'}</a></li>{/if} {$HOOK_PRODUCT_TAB} </ul> <div id="more_info_sheets" class="sheets align_justify"> {if isset($product) && $product->description} <!-- full description --> <div id="idTab1" class="rte">{$product->description}</div> {/if} {if isset($features) && $features} <!-- product's features --> <ul id="idTab2" class="bullet"> {foreach from=$features item=feature} {if isset($feature.value)} <li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span> {$feature.value|escape:'htmlall':'UTF-8'}</li> {/if} {/foreach} </ul> {/if} What to change? Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 {if $features}<li><a id="more_info_tab_data_sheet" href="#idTab2">{l s='Data sheet'}</a></li>{/if} and {if isset($features) && $features} <!-- product's features --> <ul id="idTab2" class="bullet"> {foreach from=$features item=feature} {if isset($feature.value)} <li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span> {$feature.value|escape:'htmlall':'UTF-8'}</li> {/if} {/foreach} </ul> {/if} if you don't want this, just remove this code Link to comment Share on other sites More sharing options...
flipe Posted October 24, 2013 Share Posted October 24, 2013 (edited) ... if you don't want this, just remove this code That don't work to me or I can't did it correctly, I have two tabs on my product page, "more informations" and "data sheet", I trying make the tab "data sheet" disappear and stay only more informations, "data sheet" could not appear even I insert features informations in back office. I tried do that: {if id_feature!=5}<li><a id="more_info_tab_data_sheet" href="#idTab2">{l s='Data sheet'}</a></li>{/if} I tried remove the other part of code, but don't worked. I did that and the "data sheet" tab no more appear: {if $product->description}<li><a id="more_info_tab_more_info" href="#idTab1">{l s='More info'}</a></li>{/if} {if $features}{/if} {if $attachments}<li><a id="more_info_tab_attachments" href="#idTab9">{l s='Download'}</a></li>{/if} Can this create any problem? Edited October 24, 2013 by flipe (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 hello what you exactly expect? to remove this tab for all products? or just for certain of them? Link to comment Share on other sites More sharing options...
flipe Posted October 24, 2013 Share Posted October 24, 2013 for all products, but like I said, remove the code and let just "{if $features}{/if}" worked, can this create a problem? Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 no this shouldn't affect your website Link to comment Share on other sites More sharing options...
Salus Posted September 9, 2014 Share Posted September 9, 2014 Hi, I know this is an old topic, but I`ll ask here nevertheless, since it is not closed yet. So, I have similar problem, I made some features wich serve only to make some difference between products in a particular subcategory, but I do not want them to show up on the more info data tabs. BUT I do NOT want to remove all feature displays, only those few that serve as filters for me. Example for better understanding: I have a subcategory called "adult incontinency", which cannot be further divided in more subcategories, but it contains different products, like "diapers for incontinence" and "pads for incontinence". Hence I made two features to be able to filter them separately, but stay in the same category. All good now, but I just dont want for these features to show up on the More info tabs Data sheet, its just a useless info on the screen. But I have other features that I have to show on other products. So how do I filter which feature to show on screen and which not? Link to comment Share on other sites More sharing options...
Recommended Posts