Custom title chat
The object chat allows you to customize the following:
Title of the support tab in the chat of the client.
Title of the picking tab in the chat of the client.
Title of the driver tab in the chat of the client.
Parameter lib | Parameter web | Description |
---|---|---|
chat.supportTab.title | chatSupportTabTitle | Allows you to customize the title of the support tab in the customer chat. |
chat.supportTab.helpHtml | chatSupportTabHelpHtml | Allows you to customize the help text of the support tab in the chat. |
chat.supportTab.helpStartTime | chatSupportTabHelpStartTime | Allows you to customize the start time from when the help text message will be displayed in the support chat. |
chat.supportTab.helpEndTime | chatSupportTabHelpEndTime | Allows you to customize the end time up to when the help text message will be displayed in the support chat. |
chat.pickingTab.title | chatPickingTabTitle | Allows you to customize the title of the picking tab in the customer chat. |
chat.driverTab.title | chatDriverTabTitle | Allows you to customize the title of the driver tab in the customer chat. |
Code example
<!DOCTYPE html>
<head>
<title>LSW v3 Embed</title>
</head>
<body>
<div id="instaleap-lsw-v3"></div>
</body>
<script src="https://xandar-lsw-v3.instaleap.io/lib/status.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
chat:{
supportTab: {
title: "title custom support"
}
}
}
window.instaleap.status.render(params)
</script>
</html>
<!DOCTYPE html>
<head>
<title>LSW v3 Embed</title>
</head>
<body>
<div id="instaleap-lsw-v3"></div>
</body>
<script src="https://xandar-lsw-v3.instaleap.io/lib/status.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
chat:{
supportTab: {
helpHtml: "<div><imgsrc='https://instaleap.io/wp-content/uploads/2022/10/Logos-Instaleap-04.png'alt='icon'></div><div><p>Hola, en este momento la tienda está cerrada. Nuestros horarios de atención son: <br>De lunes a viernes desde las <b>9:00 AM hasta las 7:00</b> <br>PM Sábados y domingos desde las <b>9:00 AM hasta las 7:00 PM</b> </p></div>",
helpStartTime: "16:00",
helpEndTime: "08:00",
}
}
}
window.instaleap.status.render(params)
</script>
</html>
<!DOCTYPE html>
<head>
<title>LSW v3 Embed</title>
</head>
<body>
<div id="instaleap-lsw-v3"></div>
</body>
<script src="https://xandar-lsw-v3.instaleap.io/lib/status.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
chat:{
pickingTab: {
title: "title custom picking"
}
}
}
window.instaleap.status.render(params)
</script>
</html>
<!DOCTYPE html>
<head>
<title>LSW v3 Embed</title>
</head>
<body>
<div id="instaleap-lsw-v3"></div>
</body>
<script src="https://xandar-lsw-v3.instaleap.io/lib/status.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
chat:{
driverTab: {
title: "title custom driver"
}
}
}
window.instaleap.status.render(params)
</script>
</html>
https://xandar-lsw-v3.instaleap.io/status?job=myJob&token=myToken&chatPickingTabTitle=text&chatSupportTabTitle=text&chatDriverTabTitle=text&chatSupportTabHelpHtml=texthtml&chatSupportTabHelpStartTime=10:00&chatSupportTabHelpEndTime=10:00
Tab Support
Tab Picking
Tab Driver
Note: Not change the example.
Updated 3 days ago