(SOLVED) Add 'Customer ID search' box to the toolbar?

Moderator: crythias

Locked
morecw
Znuny expert
Posts: 215
Joined: 18 Jun 2012, 09:24
Znuny Version: 3.1.6
Real Name: Craig Wellman
Company: STÜBER SYSTEMS

(SOLVED) Add 'Customer ID search' box to the toolbar?

Post by morecw »

Hi all,

is it possible for me to add a 'Customer ID search' box to the toolbar i.e a customer calls up and the agent wishes to be as efficient as possible at bringing up the customer's history. They can already use the normal search of course but this would be really handy.

(indicated in red would be ideal!)
sshot-1.png
Many thanks,
You do not have the required permissions to view the files attached to this post.
Last edited by morecw on 14 Aug 2012, 22:35, edited 1 time in total.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Add 'Customer ID search' box to the toolbar?

Post by crythias »

sure. Just inspect element/view source when showing your search engine. Make sure CustomerID is a field.

You need a form element, hidden Action, Subaction,
input type="text" name="CustomerID"
and maybe some submit button.
close form.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
morecw
Znuny expert
Posts: 215
Joined: 18 Jun 2012, 09:24
Znuny Version: 3.1.6
Real Name: Craig Wellman
Company: STÜBER SYSTEMS

(SOLVED) Add 'Customer ID search' box to the toolbar?

Post by morecw »

That worked!!
sshot-1.png
\Kernel\Output\HTML\Standard\Header.dtl
LINE: 230 – added these 2 lines:

<input type="text" name="CustomerID" title="CustomerID" size="$QData{"Size"}" style="margin-left:10px;border-radius:3px;border-color:rgb(153,153,153);box-shadow:0px 1px 2px rgb(232,232,232) inset;height:15px;font:12px/15px 'Helvetica Neue',Helvetica,Arial,sans-serif;padding:4px 5px;" />
<input type="submit" value="Senden" style="margin-left:8px;margin-top:3px;" />

The submit button was necessary to add for some reason otherwise it wouldn't send (neither Fulltext or Customer_ID). However with the submit button there it sends even by simply pressing enter on the field.
You do not have the required permissions to view the files attached to this post.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Locked