Description
The VTEX Telemarketing app is a store component that enables a call center operator impersonate a costumer in the store, and this app is used by store theme.
:loudspeaker: Disclaimer: Don't fork this project, use, contribute, or open issue with your feature request.
Release schedule
Release | Status | Initial Release | Maintenance LTS Start | End-of-life | Store Compatibility |
---|---|---|---|---|---|
[2.x] | Current Release | 2018-11-08 | 2.x | ||
[1.x] | Maintenance LTS | 2018-08-15 | 2018-11-08 | March 2019 | 1.x |
See our LTS policy for more information.
Table of Contents
Usage
This app uses our store builder with the blocks architecture. To know more about the Store Builder click here.
We add the telemarketing as a block in our Store Header.
To configure or customize this app, you need to import it in your dependencies in manifest.json
.
_10 dependencies: {_10 "vtex.telemarketing": "2.x"_10 }
Then, add telemarketing
block into your app theme as we do in our Store theme app.
:loudspeaker: Disclaimer: This component will only be displayed for the users that have the role of 2 - Televendas (Call center operator)
in their access profile.
To give an user the permission of call center operator you need to follow these steps on VTEX admin management page:
- Access the page: Account Management -> Access Profiles -> Click in New Profile -> Select
2 - Televendas (Call center operator)
- Add the email of the users that are responsable for impersonating customers(call center operators).
Blocks API
When implementing this app as a block, various inner blocks may be available. The following interface lists the available blocks within telemarketing and describes if they are required or optional.
_10{_10 "telemarketing": {_10 "component": "index"_10 }_10}
As you can see, this app has no required or optional block.
Configuration
This app has no configuration yet.
Styles API
This app provides some CSS classes as an API for style customization.
To use this CSS API, you must add the styles
builder and create an app styling CSS file.
- Add the
styles
builder to yourmanifest.json
:
_10 "builders": {_10 "styles": "1.x"_10 }
- Create a file called
vtex.telemarketing.css
inside thestyles/css
folder. Add your custom styles:
_10.container {_10 margin-top: 10px;_10}
Customization
CSS Handles |
---|
container |
popoverArrowUp |
popoverBox |
popoverContentContainer |
popoverContainer |
login |
loginForm |
loginFormMessage |
emailInput |
clientName |
clientNameBar |
logout |
logoutForm |
popoverHeaderIcon |
popoverHeaderEmail |
loginButton |
loginAsText |
popoverHeader |
loginFormContainer |
logoutInfoContainer |
emailContainer |
emailField |
emailValue |
documentContainer |
documentField |
documentValue |
phoneContainer |
phoneField |
phoneValue |
logoutButtonsContainer |
wrapper |
telemarketingBar |
attendantContainer |
attendantEmail |
In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS Handles for store customization
Troubleshooting
You can check if others are passing through similar issues here. Also feel free to open issues or contribute with pull requests.
Contributing
Check it out how to contribute with this project.
Tests
To execute our tests go to react/
folder and run yarn test