Jump to content

How to hide on feature in the Data sheet


Recommended Posts

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

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

{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

... 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 by flipe (see edit history)
Link to comment
Share on other sites

  • 10 months later...

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...