Jump to content

How to hide a hook module in certain products


Recommended Posts

Hi.

I am not a devoloper but i can manage code and find lines to change.

I want to hide an atribute grid hook (module to create a grid of color/size atibutes) in some products from my shop. Basically its just a category of product to hide it from.

Does anyone know how to do it?

Thanks in advance.

Link to comment
Share on other sites

2 hours ago, Zohaib-fk said:

Hi,

You can check the condition in PHP or smarty code of the product tpl file, if the condition is satisfied then hide or unhide the code in HTML using <div style="display: none"></div>

More information can be found on link => https://www.w3schools.com/css/css_display_visibility.asp

 

Thank you for the reply.

Yes I know that but what I want is to hide the hook just for one category. I want the module to be applied to all the products except the products from one category. 

Link to comment
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
×
×
  • Create New...