Jump to content

[Solved] Hide a specific feature from being displayed


Recommended Posts

Hi,

 

I'm using 1.5.6.1

 

I know that I can hide the product features/specs from being displayed on a product, but I was wondering how I can hide specific features from being displayed in the product details. As it stands it is either show all or show none.

 

I want most of them to be displayed, but some of the features are specifically for filtering purposes within the layered navigation, and do not need to be seen by the customer.

 

For example, 

 

http://puu.sh/6mQFT.png

 

Lets say that I do not want the 3rd feature to be displayed, is there a way to achieve this?

 

Thank you in advance for any help or advice on this topic!

Edited by RCP90 (see edit history)
Link to comment
Share on other sites

 

I don't see your html code, but you can use something like this in your javascript

$('li:contains("Headphone")').hide();

 

 

Hi,

 

And thanks for the reply! Would this code be in product.tpl in my theme ? and also although hidden will the feature still function in terms of the layered navigation filtering.

 

Thanks again :)

Edited by RCP90 (see edit history)
Link to comment
Share on other sites

Hi,

2. yes, will stiil working, this is just hide some text on client side

1. not  .tpl, you can add it e.g. in /themes/your_theme/js/product.js 

 

Hi,

 

I have 2 files,  product.js   and productstab.js.  I have taken a look at product.js, but am not entirely sure where to add that code.

 

The 2 files https://www.dropbox.com/sh/788wr45ug7xrvag/6iadPThr21

 

If you have a chance maybe you could take a quick look and suggest where it should go?

 

Thanks again for your help, I appreciate it.

Link to comment
Share on other sites

hello

 

in fact if you will hide it with javascript it will be still visible in page contents

you want to hide it permanently, or only from view? if second option, this solution will be enough :)

 

 

I just want to hide it from being viewed by the customer, just a few specific features.

 

Thank you for your time and help Sergey, it is all working now. I appreciate it a lot :)

Edited by RCP90 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...