Remitur Posted July 5, 2017 Share Posted July 5, 2017 Hello. I would like modify a cPanel product page, inserting some "if" conditions related to groupid in /templates/mytemplatename/modules/servers/cpanel/overview.tpl That's to say, for a certain groupID services there're some icons active, for anther groupid there're others... but I can't find how create IF conditions. For example, if I insert {if $productGroupId==6} [...] {/if} it doesn't work... So: how can I determine the groupId of a product in the .tpl file ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 5, 2017 Share Posted July 5, 2017 if memory serves, it doesn't use product group IDs, only Product Group Names, so the code would be along the lines of... {if $groupname eq 'whatever'} [...] {/if} 1 Quote Link to comment Share on other sites More sharing options...
Remitur Posted July 5, 2017 Author Share Posted July 5, 2017 It works!!!! Thank you! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.