Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Tutorials
Tutorials
Explore in-depth tutorials for operating your VTEX store.
Tutorials
Storefront
Layout
Customizing the Call center toolbar
Customizing the Call center toolbar

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
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback