Page 1 of 1

Customers Info

Posted: Wed May 17, 2017 1:00 am
by ibrunomaciel
Hello, I was wondering if anyone could help me.

Basically, when a customer is logged in, I want it to autopopulate a crisp.im (live chat) using their JS api:

Code: Select all

$crisp.push(["set", "user:email", "client@email.com"]);
$crisp.push(["set", "user:nickname", "Client Name"]);
Any simple idea to do do changes in few files without creating many changes in clients panel + login in checkout + success page ? O0

Re: Customers Info

Posted: Wed May 17, 2017 8:25 am
by IP_CAM
Simple, well, create a <?php if ($logged) { ?> .... <?php } ?> routine, containing your 'Code',
then, pack it into some nice little + matching 'style class' Frame/Box/Section, and place it into those
... theme/template/... files, where you want it to display, without possibly disturbing other
Elements, in their Fuction and/or Visibility, in the different resolution View Sizes.
Simple enough ? :laugh:
You see, some work will be involved, in any case, and depending on the theme used as well...
Good Luck!
Ernie