Jump to content

Client ID as a dropdown in ticket


TDub

Recommended Posts

I'm just wondering if it's just something with an old template, or if this is by design.

 

Often, customers will submit an e-mail ticket not from their e-mail on file. When this happens, the ticket doesn't get associated with their account information and it shows up as "Not a Registered Client." That's understandable. But to associate the ticket with a client you have to know their Client ID number. Which means I have to go do a separate search to find out what their client ID is. I would rather the Client ID be a dropdown of all clients so I can quickly find and associate the ticket with the account.

 

Anyone know if it's something wrong with my template? If not, anyone know if this has already been requested as a feature? I couldn't find anything about it doing a cursory search.

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...

Here's the answer I got from support today...tested and working!

The way to do that would be to add the HTML for a dropdown in the viewticket.tpl template folder of /admin/templates/v4/. Just replace:

 

<input type="text" name="userid" size="10" value="{$userid}" />

 

With the following:

 

<select name="userid">

{php}

$result = select_query("tblclients","id,firstname,lastname","","firstname","ASC");

while ($data = mysql_fetch_array($result)) {

$id = $data["id"];

$firstname = $data["firstname"];

$lastname = $data["lastname"];

echo "<option value=\"$id\"";

if ($id==$this->_tpl_vars['userid']) echo " selected";

echo ">$firstname $lastname</option>";

}

{/php}

</select>

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