Zendesk Chat Integration with Chat Suppression

BPerry_Prolitec
New Member
1 0 0

Hi Smart Peeps!

We've got a specific product where we suppress the standard Zendesk chat integration only on this page (according to the document here: https://develop.zendesk.com/hc/en-us/articles/360040336093-Quickstart-Suppressing-Web-Widget-channel...). On all other pages, we use the standard Zendesk chat widget. This works fine, UNLESS someone has a Chat session that was started on another page - in that instance, they both try to show on this page. Any suggestions, or has anyone had any success suppressing site wide with custom Chat everywhere?

 

Here's our suppression code: 

window.zESettings = {
webWidget: {
chat: {
suppress: true
},
contactForm: {
suppress: true
},
helpCenter: {
suppress: true
},
talk: {
suppress: true
},
answerBot: {
suppress: true
}
}
};

 

And our custom chat: 

function openFragranceHelp() {
$('#FragranceHelpButton').remove();
console.log('fragrance help button clicked');
zE('webWidget', 'updateSettings', {
webWidget: {
launcher: {
chatLabel: {
'*': 'Fragrance Help'
},
mobile: {
labelVisible: true
}
},
chat: {
title: {
'*': 'Fragrance Help',
},
prechatForm: {
greeting: {
'*': 'Let us know what you\x27re looking for: fresh, floral, woodsy... If you don\x27t know, that\x27s ok. Just say \x22I don\x27t know!\x22',
},
},
suppress: false,
}
}
})
}

zE('webWidget', 'open');

0 Likes