Jump to content

Changing product fontawesome icons in service details


adg273

Recommended Posts

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.

Link to comment
Share on other sites

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>

asc1fcb.png

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated