Jump to content

Our Emotional State Implementation - Support Tickets


BryanB

Recommended Posts

We recently added an extra field to our whmcs contact form called "emotional state" so clients could tell us how they are feeling when they email us so we can better understand how to help them. We were surprised at how many people actually fill out the field.

 

But having the extra fields behind a tab in the support tickets made us often over look these inputs. So I set up some conditional logic within the view_ticket.tpl file to display a illustration of the emotion that the client has selected. It looks a little something like this:

 

esticket.jpg

 

The view_ticket.tpl code:

 

{foreach from=$customfields item=customfield}
{if $customfield.name == 'Emotional State' && $customfield.value == "Happy"}
<div id="emotion"><img src="templates/v4/images/Emotional%20State/happy.png" title="client said their emotional state was 'happy'" /></div>
{/if}
{if $customfield.name == 'Emotional State' && $customfield.value == "Worried"}
<div id="emotion"><img src="templates/v4/images/Emotional%20State/worried.png" title="client said their emotional state was 'worried'" /></div>
{/if}
{if $customfield.name == 'Emotional State' && $customfield.value == "Upset"}
<div id="emotion"><img src="templates/v4/images/Emotional%20State/upset.png" title="client said their emotional state was 'upset'" /></div>
{/if}
{if $customfield.name == 'Emotional State' && $customfield.value == "Confused"}
<div id="emotion"><img src="templates/v4/images/Emotional%20State/confused.png" title="client said their emotional state was 'confused'" /></div>
{/if}
{if $customfield.name == 'Emotional State' && $customfield.value == "Angry"}
<div id="emotion"><img src="templates/v4/images/Emotional%20State/angry.png" title="client said their emotional state was 'angry'" /></div>
{/if}
{if $customfield.name == 'Emotional State' && $customfield.value == "Excited"}
<div id="emotion"><img src="templates/v4/images/Emotional%20State/excited.png" title="client said their emotional state was 'excited'" /></div>
{/if}
{/foreach}

 

More info and screenshots on our blog post here:

http://virtualstagingsolutions.com/2226/some-friday-fun-with-your-emotions/

 

Enjoy!

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