General > General Discussion

Sending Unique Values From User Button To Chat Operator

(1/2) > >>

psychotron:
I have a few unique values on an ASP page that I would like to send to the operator when the chat is initiated.  I would start by putting the ASP values into the button code, like this (postal code in this example)...

/webim/client.php?locale=en&post_code=<%=(post_code)%>

So this should get a value post_code to client.php, but how do I get the value of post_code into my email message (offline), or to the chat operator (online).  Our operators need this information from the user, and since it is on the page already, I really hate to ask them to provide it to us again.

Please advise...

psychotron:
Anyone?  This package is great and I would love to implement it on my site, but it would be a lot better if I could pass information from the customer to our support people automatically.  It would make a huge difference.

Eddybaur:
i'd respond sooner, but i'm a little confused. Basically you want to have your ASP code to send to a specific operator? And about the email, i'm lost there...

Inspirer:
First of all, add info parameter into button code in two places:

<!-- webim button --><a href="/webim/client.php?locale=en&info=aaaaaa" target="_blank" onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 && window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('/webim/client.php?locale=en&info=aaaaaa',......

Apply the patch (attached).

Results:

In the chat (second message is visible only for operators):
14:16:48 Thank you for contacting us. An operator will be with you shortly...
14:16:48 Info: rrraaabbb

In mail:
.....
His email: mail@mail.com
Info: rrraaabbb

Evgeny.

psychotron:
Hi Inspirer

Yes this is exactly what I want to do.  I want to send extra values to the chat operator that answers, or the extra values across in an email message should the chat operator not be available.  Our pricing is regional and I want to send the customer's post code, which they already provide before entering our product catalogue.  Thanks for the patch.  I will give it a try and post back to the thread if I need further help.

Cheers!

Navigation

[0] Message Index

[#] Next page

Go to full version