adg273 Posted May 8, 2021 Share Posted May 8, 2021 Does anyone know how to correctly, or if possible change the icon for a particular service in the clientareaproductdetails.tpl? I'm looking to change it based on the product group ID or name. I know to edit the following: <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-{if $type eq "hostingaccount" || $type == "reselleraccount"}hdd-o{elseif $type eq "server"}database{else}archive{/if} fa-stack-1x fa-inverse"></i> </span> I've tried using $productGroupId and the relevant group ID number, but it always defaults to an archive icon. Is this possible, or am I just editing incorrectly? Thanks for any help anyone can provide. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 8, 2021 Share Posted May 8, 2021 3 hours ago, adg273 said: Is this possible, or am I just editing incorrectly? in clientareaproductdetails, it would be the $groupname rather than an GID value... <i class="fas fa-{if $groupname eq "Shared Hosting"}globe{elseif $type eq "hostingaccount" || $type == "reselleraccount"}hdd{elseif $type eq "server"}database{else}archive{/if} fa-stack-1x fa-inverse"></i> 1 Quote Link to comment Share on other sites More sharing options...
adg273 Posted May 8, 2021 Author Share Posted May 8, 2021 I tried $groupname before and it didn't work, but turned out it's because I put the wrong value's in. I was putting underscores between words. 🤦♂️ It's looking just the way I intended now. Thanks for your help! 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.