Menu
Feedback
Start here
Tutorials


Tutorials
Layout
Customizing the Call center toolbar
2 min read

It is not recommended changing the height of the toolbar element. If your store has a fixed header on top of the screen, it should receive the top css property with the necessary height not to overlap with the callcenter toolbar.

The new callcenter toolbar can be customized with the styles of your store or using JavaScript. To overwrite the original styles of the toolbar, do the customization in a .css or .js file and load it into the page template.

To customize the toolbar styles, use the following classes:


.cc-toolbar //Most external element of the toolbar
.cc-user //Section with user email (operator)
.cc-customer //Section with the personified customer's email
.cc-btn-login //Login button to personify customer
.cc-impersonate //Pop-up with input form for customer email
.cc-btn-change //Login button to change personified customer

To interact with the bar via JavaScript, use the following IDs as hooks to access its different elements in the DOM:


#vtex-callcenter //Most external element of the toolbar
#vtex-callcenter__user-email //Element with the user's email (operator)
#vtex-callcenter__customer-email //Customer's email element
#vtex-callcenter__customer-email-input //Customer email input element
#vtex-callcenter__customer-login-submit //Customer email submit element

You can also interact with the toolbar using its public Javascript methods:


// Impersonate customer login
window.cc.impersonate(customer_email)

(Where customer_email is a string with the client's email address)


// Impersonate customer logout
window.cc.customerLogout()

(Returns true if you logout, returns false if there was no impersonated customer)

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Creating and editing a page template
« Previous
Defining Window Displays
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback