ColorOnYou Posted September 27, 2023 Share Posted September 27, 2023 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 More sharing options...
Zohaib-fk Posted September 28, 2023 Share Posted September 28, 2023 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 Link to comment Share on other sites More sharing options...
ColorOnYou Posted September 28, 2023 Author Share Posted September 28, 2023 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 More sharing options...
musicmaster Posted October 1, 2023 Share Posted October 1, 2023 Prestashop has no facilities for that. So you will need to adapt the module software. You can add some code at its beginning that if the product id has certain values nothing should be done. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now