ed0522 Posted October 2, 2015 Share Posted October 2, 2015 (edited) I want to write a module and I want this module can show in specified category or products. For example, I want to add a comment module just in the T-shirt category, not in other products. You know, if we use hook or override in a product page, all the product page will show the module. I don't want this. I want the module can be showed in a specified product. Can someone help me find a way to achieve it? Edited October 2, 2015 by ed0522 (see edit history) Link to comment Share on other sites More sharing options...
jgamio Posted October 3, 2015 Share Posted October 3, 2015 If you use a hook the just check the id before set a tlp if you dont need show something dont set the tpl just do the return on the function Link to comment Share on other sites More sharing options...
ed0522 Posted October 4, 2015 Author Share Posted October 4, 2015 yes, it's a good idea to identify the product by the id. 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