Display customer Name and E-mail address

Moderator: crythias

Locked
danchitu86
Znuny newbie
Posts: 37
Joined: 31 Jan 2011, 11:25
Znuny Version: 3.2.3
Real Name: Dan
Company: ANB
Location: Bucharest, RO

Display customer Name and E-mail address

Post by danchitu86 »

Hi!

I need to copy the e-mail address of a customer when I am in Zoom mode on a tichet. I can do that by clicking on CustomerID in the right (Tichet Information) and the from the new window copy the e-mail address. Also I can see the e-mail address if I place the cursor on From value in tichet header; but I can not copy, only view.

I would like that the system will display in the header after the Display Name also the e-mail address OR in the right on Tichet Information frame the customerID with all chars, not first leters and then [...]

I tried something in AgentTicketZoom.dtl but didn't worked.

You can see the files attached for details. I use OTRS 3.2.3.

Thanks a lot for your help!
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Display customer Name and E-mail address

Post by reneeb »

You can change in AgentTicketZoom.dtl:

Code: Select all

$QData{"CustomerID", "18"}
to

Code: Select all

$QData{"CustomerID"}
OR

Code: Select all

<!-- dtl:block:RowRecipient -->
                    <label>$Text{"$Data{"Key"}"}:</label>
                    <p class="Value" title="$QData{"Value"}">$QData{"Realname","200"}</p>
                    <div class="Clear"></div>
<!-- dtl:block:RowRecipient -->
to

Code: Select all

<!-- dtl:block:RowRecipient -->
                    <label>$Text{"$Data{"Key"}"}:</label>
                    <p class="Value" title="$QData{"Value"}">$QData{"Realname","200"} $QData{"Value"}</p>
                    <div class="Clear"></div>
<!-- dtl:block:RowRecipient -->
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
danchitu86
Znuny newbie
Posts: 37
Joined: 31 Jan 2011, 11:25
Znuny Version: 3.2.3
Real Name: Dan
Company: ANB
Location: Bucharest, RO

Re: Display customer Name and E-mail address

Post by danchitu86 »

Thanks a lot, both solution work great!
Locked