8530Cloud
New Member
Hi ClientExec Team,
I’m integrating Help Scout Beacon into our ClientExec customer portal.
The Beacon itself loads correctly, but I’m looking for the recommended way to automatically identify the currently logged-in customer.
For example:
While working on our theme, I found that the customer object is available in usermenu.phtml:
However, I couldn’t find the correct method to retrieve:
Any guidance would be greatly appreciated.
PS: I also tried retrieving the customer’s email from the profile form, but I’d prefer not to rely on HTML fields or DOM parsing. I’m looking for the official ClientExec object or method that exposes the logged-in customer’s email and ID directly inside PHTML templates.
Thank you!
I’m integrating Help Scout Beacon into our ClientExec customer portal.
The Beacon itself loads correctly, but I’m looking for the recommended way to automatically identify the currently logged-in customer.
For example:
JavaScript:
Beacon('identify', {
name: 'Customer Name',
email: '[email protected]',
customer_id: '12345'
});
While working on our theme, I found that the customer object is available in usermenu.phtml:
PHP:
$this->customer->getFirstName()
$this->customer->getLastName()
However, I couldn’t find the correct method to retrieve:
- Customer email
- Customer ID
- Other customer attributes
- Is there an official method such as getEmail() or another recommended method?
- Is there documentation for the $this->customer object and its available methods?
- What is the recommended way to expose the logged-in customer’s information inside client area PHTML templates?
Any guidance would be greatly appreciated.
PS: I also tried retrieving the customer’s email from the profile form, but I’d prefer not to rely on HTML fields or DOM parsing. I’m looking for the official ClientExec object or method that exposes the logged-in customer’s email and ID directly inside PHTML templates.
Thank you!