Skip to content

Commit 2d27bfb

Browse files
authored
Update chatwoot.php
1 parent 938e6d3 commit 2d27bfb

File tree

1 file changed

+32
-10
lines changed

1 file changed

+32
-10
lines changed

chatwoot/chatwoot.php

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/***************************************************************************
44
// * *
5-
// * Chatwoot WHMCS Addon (v2.0.3). *
5+
// * Chatwoot WHMCS Addon (v2.0.4). *
66
// * This addon module enables you to integrate Chatwoot with your WHMCS *
77
// and leverage its powerful features. *
88
// * Tested on WHMCS Version: v8.12. *
@@ -51,7 +51,7 @@ function chatwoot_config()
5151
return [
5252
"name" => "Chatwoot",
5353
"description" => "Chatwoot is a customer support tool for instant messaging channels that can help businesses provide exceptional customer support. WHMCS module contributed by: <a href='https://wevrlabs.net/?utm_source=addon_link' target='_blank'>WevrLabs Hosting</a>",
54-
"version" => "2.0.3",
54+
"version" => "2.0.4",
5555
"author" => "<a href='https://github.com/WevrLabs-Group/Chatwoot-WHMCS' target='_blank'><img src='https://dash.wevrlabs.net/logo.svg' alt='Contributed by WevrLabs Hosting' width='135px' /></a>",
5656
"fields" => [
5757
'chatwoot_enable' => [
@@ -61,20 +61,28 @@ function chatwoot_config()
6161
'Default' => 'yes',
6262
'Description' => 'Check to activate the chat box.',
6363
],
64-
'chatwoot_jscode' => [
65-
'FriendlyName' => 'Website JS Code',
66-
'Type' => 'textarea',
67-
'Rows' => '15',
68-
'Cols' => '100',
64+
'chatwoot_url' => [
65+
'FriendlyName' => 'Chatwoot URL',
66+
'Type' => 'text',
67+
'Rows' => '',
68+
'Cols' => '',
69+
'Default' => '',
70+
'Description' => 'Enter Chatwoot URL. Example: https://www.chatwoot.com',
71+
],
72+
'chatwoot_token' => [
73+
'FriendlyName' => 'Website Widget Token',
74+
'Type' => 'text',
75+
'Rows' => '',
76+
'Cols' => '',
6977
'Default' => '',
70-
'Description' => 'Paste your website widget JS code in this field. You can obtain it from your Chatwoot Dashboard > Inboxes > Website > Settings.<br /> For help, visit <a href="https://www.chatwoot.com/docs/product/channels/live-chat/create-website-channel" target="_blank">Chatwoot Docs</a>',
78+
'Description' => 'Enter your website widget Token in this field. You can obtain it from your Chatwoot Dashboard > Inboxes > Website > Settings.<br /> For help, visit <a href="https://www.chatwoot.com/hc/user-guide/articles/1677669989-how-to-install-live-chat-on-a-word_press-website" target="_blank">Chatwoot Docs</a>',
7179
],
7280
'chatwoot_verhash' => [
7381
'FriendlyName' => 'Secret Key (Required)',
7482
'Type' => 'text',
7583
'Size' => '',
7684
'Default' => '',
77-
'Description' => 'To make sure the conversations between the customers and the support agents are private and to disallow impersonation, you can setup identity validation in Chatwoot. <br />The key used to generate HMAC hash is unique for each webwidget and you can copy it from Inboxes -> Widget Settings -> Configuration -> Identity Validation -> Copy the token shown there<br />To learn more about this, visit <a href="https://www.chatwoot.com/docs/product/channels/live-chat/sdk/identity-validation" target="_blank">Chatwoot Docs</a>',
85+
'Description' => 'To make sure the conversations between the customers and the support agents are private and to disallow impersonation, you can setup identity validation in Chatwoot. <br />The key used to generate HMAC hash is unique for each webwidget and you can copy it from Inboxes -> Widget Settings -> Configuration -> Identity Validation -> Copy the token shown there<br />To learn more about this, visit <a href="https://www.chatwoot.com/hc/user-guide/articles/1677587479-how-to-enable-identity-validation-in-chatwoot" target="_blank">Chatwoot Docs</a>',
7886
],
7987
'chatwoot_position' => [
8088
'FriendlyName' => 'Chat Box Position',
@@ -88,7 +96,21 @@ function chatwoot_config()
8896
'Type' => 'radio',
8997
'Options' => 'Standard,Expanded Bubble',
9098
'Default' => 'Standard',
91-
'Description' => 'Set the chat box bubble design. Read more at <a href="https://www.chatwoot.com/docs/product/channels/live-chat/sdk/setup#widget-designs" target="_blank">Chatwoot Docs</a>.',
99+
'Description' => 'Set the chat box bubble design. Read more at <a href="https://www.chatwoot.com/hc/user-guide/articles/1677587234-how-to-send-additional-user-information-to-chatwoot-using-sdk" target="_blank">Chatwoot Docs</a>.',
100+
],
101+
'chatwoot_launcherTitle' => [
102+
'FriendlyName' => 'Bubble Launcher Title',
103+
'Type' => 'text',
104+
'Size' => '',
105+
'Default' => '',
106+
'Description' => 'Set the chat box bubble design. Read more at <a href="https://www.chatwoot.com/hc/user-guide/articles/1677587234-how-to-send-additional-user-information-to-chatwoot-using-sdk" target="_blank">Chatwoot Docs</a>.',
107+
],
108+
'chatwoot_dark' => [
109+
'FriendlyName' => 'Enable Dark Mode on Widget',
110+
'Type' => 'yesno',
111+
'Size' => '55',
112+
'Default' => 'no',
113+
'Description' => 'Check to activate dark mode on the chat box.',
92114
],
93115
'chatwoot_lang' => [
94116
'FriendlyName' => 'Dynamic Language',

0 commit comments

Comments
 (0)