Jump to content

Hide attributes in product page


thalloderma
 Share

Recommended Posts

You can change the following on line 342 of product.tpl (in the default PrestaShop v1.6.1.7 theme) from:

										<fieldset class="attribute_fieldset">

to:

										<fieldset class="attribute_fieldset"{if $id_attribute_group == 1} style="display: none"{/if}>

Change 1 to the ID of the attribute group you want to hide from the product page.

  • Like 1

Share this post


Link to post
Share on other sites

  • 2 years later...
On 9/12/2016 at 5:46 AM, rocky said:

 

										<fieldset class="attribute_fieldset">

to:

										<fieldset class="attribute_fieldset"{if $id_attribute_group == 1} style="display: none"{/if}>

 

Is it some way how to add more id attribute? I´m trying == "1","2" / ´1´,´2´ / 1,2 / 1;2 / etc. Please help

Edited by Celsi (see edit history)

Share this post


Link to post
Share on other sites

  • 6 months later...
  • 1 year later...
On 7/6/2019 at 12:02 PM, siomosp said:

Hi.

where i have to put the code at PS 1.7.5.2

 

Did you manage to find out to hide the attributes in 1.7.5
I add this code in my /Theme/templates/catalog/_partials/product-variants.tpl
right under {foreach from=$groups key=id_attribute_group item=group}.

{if $group.attributes|@count && $id_attribute_group != 4}

4 is the attributes nr i whant to remove from the product page.
And you need to add one more {/if} to close the if code.

Edited by spc (see edit history)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More