REVE Chat – WP Live Chat Support plugin - Version 6.2.1

Version Description

  • added shopping cart feature
  • Show visitor's cart information in chat window
  • Share product card
  • Show orders list
  • Search order by id

=

Download this release

Release Info

Developer revechat
Plugin Icon 128x128 REVE Chat – WP Live Chat Support plugin
Version 6.2.1
Comparing to
See all releases

Code changes from version 6.2.0 to 6.2.1

Files changed (4) hide show
  1. assets/js/scripts.js +1 -1
  2. assets/js/woocommerceCart.js +71 -0
  3. readme.txt +201 -89
  4. revechat.php +239 -6
assets/js/scripts.js CHANGED
@@ -1,7 +1,7 @@
1
  jQuery.noConflict();
2
  (function($) {
3
  $(document).ready(function() {
4
- var baseUrl = 'https://dashboard.revechat.com/';
5
  // var baseUrl = 'https://staging-dev.revechat.com:5443/dashboard/';
6
  var ajaxMessage = $('.ajax_message');
7
 
1
  jQuery.noConflict();
2
  (function($) {
3
  $(document).ready(function() {
4
+ var baseUrl = 'https://app.revechat.com/';
5
  // var baseUrl = 'https://staging-dev.revechat.com:5443/dashboard/';
6
  var ajaxMessage = $('.ajax_message');
7
 
assets/js/woocommerceCart.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ setInterval(function() {
2
+
3
+ if (typeof $_REVECHAT_API == 'undefined')
4
+ {
5
+ return;
6
+ }
7
+
8
+ if (typeof $_REVECHAT_API.Form == 'undefined')
9
+ {
10
+ return;
11
+ }
12
+
13
+
14
+ var rcPlatform = localStorage.getItem("rcPlatform");
15
+ if (rcPlatform != "woocommerce") {
16
+ return;
17
+ }
18
+ resetCartForPreviousChat();
19
+
20
+
21
+ var cartContents = fetch("/wp-json/revechat/v1/cart",
22
+ {
23
+ method: "GET",
24
+ headers: {
25
+ 'X-WP-Nonce': revechatSettings.nonce
26
+ }
27
+ }
28
+ ).then(response=>{
29
+ if (response.ok) {
30
+ return response.json()
31
+ }
32
+ }
33
+ ).then(data=>{
34
+ var newPayload = getCartPayload(data);
35
+ var prevPayload = JSON.parse(localStorage.getItem("rcCartPayload"));
36
+ var cartInformation = {};
37
+ if (prevPayload == null) {
38
+ if (newPayload.items.length > 0 || typeof newPayload.customer.customerId != "undefined") {
39
+ cartInformation.cartResponse = newPayload;
40
+ sendCartInfoToRevechat(cartInformation);
41
+ }
42
+ } else {
43
+ if (JSON.stringify(newPayload.items) != JSON.stringify(prevPayload.items) || JSON.stringify(newPayload.customer) != JSON.stringify(prevPayload.customer)) {
44
+ cartInformation.cartResponse = newPayload;
45
+ sendCartInfoToRevechat(cartInformation);
46
+ }
47
+ }
48
+ }
49
+ ).catch((error)=>{}
50
+ );
51
+ }, 10000);
52
+ function getCartPayload(data) {
53
+ return data;
54
+ }
55
+ function updateCartPayload(payload) {
56
+ localStorage.setItem("rcCartPayload", JSON.stringify(payload));
57
+ }
58
+ function sendCartInfoToRevechat(cartInformation) {
59
+ if ($_REVECHAT_API.Form && $_REVECHAT_API.Form.Online && $_REVECHAT_API.isVisitorChatting()) {
60
+ var cms_name = "woocommerce";
61
+ $_REVECHAT_API.Form.Online.pushCartInformation(cms_name, JSON.stringify(cartInformation), $_REVECHAT_API.getShoppingCartEventType());
62
+ updateCartPayload(cartInformation.cartResponse);
63
+ }
64
+ }
65
+ function resetCartForPreviousChat() {
66
+ if ($_REVECHAT_API.Form && $_REVECHAT_API.Form.Online) {
67
+ $_REVECHAT_API.attach_chat_close_callback(function() {
68
+ localStorage.removeItem("rcCartPayload");
69
+ });
70
+ }
71
+ }
readme.txt CHANGED
@@ -1,103 +1,188 @@
1
- === REVE Chat - WP Live Chat Support plugin ===
2
  Contributors: revechat
3
  Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc,revechat
4
  Requires at least: 2.7
5
- Tested up to: 5.3.2
6
- Stable tag: 6.2.0
7
 
8
  Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
9
 
 
 
 
 
10
 
11
- ==Description ==
12
- REVE Chat is a multi-channel cloud based live chat software plugin that provides real time assistance to your website visitors for better customer support, service and boost sales conversions. Businesses can instantly engage with their customers across various channels such as Website live chat, Voice/ Video Chat, Facebook Messenger, Viber, Mobile apps (Android, iOS) using a single platform.
13
 
14
- REVE Chat WP live chat plugin for WordPress also has advanced features such as Screen sharing and co-browsing, Department Management, Auto Triggers, and Visitor Analytics, Queuing, fully customizable chat banner and more to personalize every customer interaction across multiple channels.
15
 
16
-
17
- https://youtu.be/t1dykZ9Tg8U
18
-
19
-
20
- **Live Chat Key Features-**
21
- **Voice/ Video Chat:** With live chat for WordPress, Business can Talk to your customers using voice/ video chat plubin right inside your web or mobile apps with click to call solution.
22
-
23
- **Co-browsing:** Using live chat and WordPress together, Provide real time assistance and remote support to your website visitors and customers screen in real time.
24
-
25
- **Facebook Messenger:** Using live chat and facebook together,Chat with your Facebook customers using REVE Chat from single dashboard.
26
-
27
- **Viber Messaging:** Using live chat and viber together,Chat with your customers on Viber messaging using your public account from single dashboard.
28
-
29
- **Screen sharing:** With the REVE Chat chat plugin for WordPress, Support your website visitors in real time and help them to navigate the website with screen sharing.
30
-
31
- **Real-time Visitor Analytics:** With the REVE Chat chat plugin for WordPress, Get real time insights about your customers (location, history, IP address, Referral source) and personalize every interaction to improve user experience
32
-
33
- **Department Management:** With the REVE Chat chat plugin for WordPress, Improve customer response time by routing your customer queries to the right department.
34
-
35
- **Queuing:** With the REVE Chat chat plugin for WordPress, Manage your customer expectations effectively by providing them right information about waiting time when your agents are busy with other customers
36
-
37
- **Auto Triggers:** With the REVE Chat chat plugin for WordPress, Send automatic invitations to your website visitors based on certain time, ULR or location.
38
-
39
- **Chat Monitoring:** With the REVE Chat chat plugin for WordPress, Monitor your agent performance and responses in real time to provide more appropriate answers to your customer queries.
40
-
41
- **Mobile live chat applications:** - mobile apps for iOS and Android will help you chat with customers wherever you are.
42
-
43
-
44
- **Live Chat Benefits-**
45
-
46
-
47
- Out of all the customer support channels available whether offline or online — live chat is by far the most fast and convenient method to handle customer queries.
48
-
49
- Get complete overview and insights about your customer interactions across multiple channels
50
-
51
- Offer your visitors instant assistance and increase your sales conversions
52
-
53
- Reduce cost of service by managing multiple customers simultaneously.
54
-
55
- Receive valuable customer feedback after every chat session to gain insights and improve the quality of your service.
56
 
57
- Proactively engage to assist website visitors in real-time before they leave your website being frustrated.
58
-
59
-
60
- == What is live chat for WordPress? ==
61
-
62
- If you have a website, and you are serious about your business then using live chat will be best. Live chat plugin for WordPress adds a live chat widget to the bottom of your website that allows visitors to chat to you in real time.
63
 
64
- == Usage ==
65
 
66
- With REVE chat plugin for WordPress, you can add live chat to every page of your website. To answer chats, chat agents have to be logged into our dashboard from web dashboard or mobile apps. There are also applications for mobile devices – iPhone and Android.
67
 
 
68
 
69
- **What makes Reve Chat the best choice for live chat?**
70
 
71
- * A simple and highly customizable Live chat solution
72
- * User friendly interface and Dashboard
73
- * Intuitive Chat Window
74
- * Innovative and unique features
75
- * 24x7 hour live chat support from our trained experts on any weekday (visit revechat.com)
76
 
77
-
78
- **Supported Language**
79
-
80
- * Arabic | Bangla | Chinese | Dutch | English | French| German | Hindi | Italian | Japanese | Korean | Malay | Polish | Portuguese | Romanian | Russian | Spanish | Swedish | Tagalog | Turkish | Vietnamese
81
 
82
 
83
- **Some Geeky Facts**
 
 
 
 
 
 
 
 
84
 
85
- * Work across major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
86
- * Average uptime is 99.8%.
87
- * Mobile Optimized Dashboard
88
- * Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
- = Support =
 
 
 
92
 
93
 
94
- REVE Chat offers 24x7-365 live support, visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.
95
 
 
96
 
97
  Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
98
 
99
 
100
-
101
  == Changelog ==
102
 
103
 
@@ -124,30 +209,59 @@ Don't have a reve chat account ? [Create one from here!](https://www.revechat.co
124
  = 6.2.0 =
125
  * new UI design
126
  * updating singup and login procedure
 
 
 
 
 
 
 
 
127
 
128
  == Screenshots ==
129
 
130
- 1. Chat window on your website - active chat
131
- 2. Account Configuration - Link Up
132
- 3. Account Configuration - Linked Up with Launch Dashboard
133
- 4. Dashboard View - Open new browser tab
134
- 5. Widget Customization from Dashboard
 
 
 
 
 
135
 
136
 
137
  == Installation ==
138
 
139
- Adding reve chat live chat widget to your Wordpress site is very easy, follow following steps :
140
 
141
- * Install the live chat plugin from WordPress directory and activate it.
142
- * Click on REVE Chat in the left menu bar.
143
- * Enter your login details or create a new live chat account from here!
144
- * Customize the chat widget from within the [reve chat dashboard](https://dashboard.revechat.com) to your preference.
145
- * Start chatting with your visitors! :)
146
 
147
- Note: You will need a reve chat account : [Create one from here!](https://revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
148
 
149
- == Frequently Asked Questions ==
 
 
 
 
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
 
152
  = Do I have to install any software on my server to get working the chat plugin? =
153
  No, REVE Chat is a cloud-based live chat software and does not require any other application to be installed on server. You just need to install and activate the live chat plugin.
@@ -240,8 +354,6 @@ You can find out more at our site at http://www.revechat.com or at support@revec
240
  Yes, this live chat plugin can be added on more than one website at the same time for Advanced & Enterprise package.
241
 
242
 
243
- = Contributors & Developers =
244
-
245
- “REVE Chat – WP Live Chat Support plugin” is open source software. The following people have contributed to this plugin.
246
-
247
 
 
1
+ === Chatbot & Live Chat for WordPress - REVE Chat ===
2
  Contributors: revechat
3
  Tags: live chat,live support,chat software,chat plugin,wordpress live chat, wordpress chat,chat,chat for web,web chat,chat online,chat software,IM Chat,live web chat,web support,live chat software,online chat,online support,chat widget,video chat,voice chat,snapengage,wordpress chat,wordpress live chat,webrtc,screen sharing,co-browsing,co browsing,facebook chat plugin,facebook chat,web analytics, analytics, analytics dashboard,facebook, facebook messenger, messenger, facebook live chat, crisp, pure chat, purechat, zendesk, zendesk chat, liveagent, olark, happyfox, reve chat, chatra, provide support, comm100, kayako, zoho, zoho salesiq, userlike, userengage, drift, livehelpnow, live help now, intercom, freshdesk, zendesk, clickdesk, liveperson, live person, bold360, velaro, hubspot, salesforce, zapier, zopim, mailchimp, analytics, google analytics, im chat, slack,casengo, tagove, mylivechat, my live chat, livezilla, chatrify,live chat tool, live chat widget, live support button, live chat solution, customer service software, chat, customer service chat, live chat button,wp livechat support, tidio, jivochat, formilla, tawk, tawkto,tawk.to livechat inc, livechatinc, live chat inc,revechat
4
  Requires at least: 2.7
5
+ Tested up to: 5.8.1
6
+ Stable tag: 6.2.1
7
 
8
  Live chat and help desk software plugin for WordPress website. An application for live chat, help desk, online customer service and support.
9
 
10
+ == Description ==
11
+ Searching for an easy-to-use **chatbot & live chat plugin** for your WordPress website?
12
+
13
+ Well, your search ends here with our Chatbot & Live Chat plugin for WP sites! No need to look further. Because it has all that you need to transform the face of your business.
14
 
15
+ Yes, it does!.
 
16
 
17
+ == Want the proof to believe our tall claims? ==
18
 
19
+ == Here they are - ==
20
+ * This REVE Chat product will help you easily convert website visitors into loyal customers.
21
+ * It will make communication with customers incredibly easy while they’re on your WordPress website.
22
+ * You can redefine your customer support in a big way with this quick-to-install plugin.
23
+ * As an omnichannel customer engagement platform, it can help you actively generate more leads and sales.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
+ In a way, this customer service plugin from REVE Chat offers everything your team needs - from WordPress <a href="https://www.revechat.com/live-chat-software-solution/">live chat</a>, <a href="https://www.revechat.com/chatbots/">chatbot</a>, <a href="https://www.revechat.com/facebook-messaging/">Messenger integration</a>, <a href="https://www.revechat.com/whatsapp-business/">WhatsApp</a>, and plenty more.
 
 
 
 
 
26
 
27
+ You not only enjoy the many integrations but can also easily manage all the channels in one place.
28
 
29
+ Chatbot & Live Chat Plugin for WP sites have advanced features such as Screen sharing and Co-browsing, Department Management, Auto Triggers, Visitor Analytics, Queuing, a fully customizable chat banner, and more to personalize every customer interaction across multiple channels.
30
 
31
+ So, what are you waiting for? Don’t delay adding great value to your everyday customer conversations!
32
 
33
+ Install this powerful customer support plugin for the WordPress website NOW!
34
 
35
+ [Don’t have a REVE Chat account? Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
 
 
 
 
36
 
37
+ https://youtu.be/t1dykZ9Tg8U
 
 
 
38
 
39
 
40
+ == By Installing Chatbot & Live Chat Plugin, You Can - ==
41
+ * Engage your website visitors and boost the chances of conversion
42
+ * Convert your website traffic into customers
43
+ * Interact with visitors on the browser, desktop, or mobile
44
+ * Manage all your conversations from one panel
45
+ * Chat with visitors 24/7, even while your team is away or on sleep
46
+ * Generate & qualify your leads on autopilot with Live Chat for WordPress Website
47
+ * Guide, educate, and delight your customers with interactive FAQ
48
+ * Automate a major part of your customer support
49
 
50
+ So, get this WP plugin to take your customer engagement to a new high.
51
+ [Sign up here to get a top-class WP chat plugin for your business.](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
 
 
52
 
53
+ == Why Choose Chatbot & Live Chat Plugin for WordPress Websites?==
54
+ Want to elevate your customer engagement to an altogether different level? Try our WP live chat plugin and create the much-needed difference in the way you engage with customers. When you choose our plugin, you find a tool that has everything that it takes to bolster your customer support.
55
+
56
+ == Choosing our plugin gives you - ==
57
+ **All-in-One Customer Engagement Tool.** Engage your customers with advanced customer engagement tools to provide better contextual and conversational support in real-time.
58
+ **Easy Integrations with 30+ Tools -** Easily connect the plugin with your e-commerce, CRMs, and CMS platforms and benefit from 30+ ready integrations and robust API access.
59
+ **Multi-channel Engagement Across Customers’ Preferred Channels.** Be where your customers are, and deliver a unified service experience by engaging across channels like Facebook Messenger, WhatsApp for Business, Websites, App, etc.
60
+ **24/7 availability with AI Chatbot** Provide round-the-clock assistance to customers even when your sales/support team is away. Engage them with real-time answers to FAQs.
61
+
62
+ Choose Our plugin to get all the benefits your business needs!
63
+ [Start a free trial of our WP Chatbot Plugin and strengthen your customer engagement.](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
64
+
65
+ == Our Smart WP Chatbot ==
66
+ Automated customer support is now a reality with our built-in smart chatbot. Use it to put customer support on auto-pilot and scale your sales. With our smart and AI-powered chatbot, you’re gonna answer everyday questions easily. So, get it ASAP to give your business the cutting edge it deserves!
67
+
68
+ == Key Chatbot Features and Benefits ==
69
+ * Scale your sales and support with an AI-powered WordPress chatbot
70
+ * Deliver automated customer support and drive sales conversions with a chatbot
71
+ * Reduce your customer service costs can by deploying a conversational AI chatbot
72
+ * Answer queries more effectively and quickly with a smart chatbot
73
+ * Let a chatbot for the WordPress website handle conversations completely and allow your reps to focus on more important tasks
74
+ * Cut wait time for customers and boost their experience with your brand by offering instant responses to service-related inquiries
75
+ * Build an intelligent chatbot with zero coding effort and start engaging your website visitors
76
+ * Combine the WP chatbot with a human touch so that bots can manage routine FAQs while support agents handle complex chats
77
+ * Automate your customer support 24×7 and reduce issues managed by live agents
78
+ * Deploy an AI-powered chatbot to answer customers’ questions automatically with replies based on user behavior and demographic.
79
+ * Convert your website visitors into qualified leads automatically and transfer them to your sales team.
80
+ * Train your bots with the support FAQs and make chat conversations quick and effective.
81
+ * Make use of the **“Fallback Options”** for scenarios where the bot fails to identify the user’s inputs yet ensures a seamless conversation
82
+ * Let your team benefit from the **“Visual Flow Builder”** and build bots for any business tasks and that too, without any coding knowledge
83
+ * Ensure higher satisfaction to customers by understanding their emotions and responding accurately by using the “Sentiment Analysis” feature
84
+ * Leverage **“Bot Analytics”** to first analyze all the bot conversations and then measure the accuracy of the responses
85
+ * Put your customer conversations on autopilot and allow the chatbot to manage your customer conversations 24×7
86
+
87
+ Install our AI-powered WP chatbot and transform your business.
88
+ [To activate the plugin, sign up here.](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
89
+
90
+ == Our Omnichannel Live Chat ==
91
+ Live chat software from REVE chat is best when it comes to knowing your customers inside out. Engage in best-in-class customer communication with our omnichannel live chat software and convert website traffic into loyal customers. Get all the details of website visitors and serve them better with our WP Live Chat.
92
+
93
+ == Benefits Of Our Live Chat ==
94
+ * Enrich your business with the fastest and most convenient method to handle customer queries
95
+ * Get a complete overview and insights about your customer interactions across multiple channels
96
+ * Provide instant assistance to customers and boost your sales conversions
97
+ * Manage multiple customers simultaneously and reduce the cost of service
98
+ * Gain customer insights and improve the quality of your service with valuable feedback after every chat session
99
+ * Proactively engage to assist website visitors in real-time and stop them from leaving your site mid-day
100
+
101
+
102
+ == Live Chat Key Features ==
103
+
104
+ **Voice/ Video Chat:** Your business can engage customers using a voice/ video chat plugin right inside the web or mobile apps with click to call solution and provide real-time support.
105
+
106
+ **Co-browsing:** You can leverage collaborative browsing for better CX where you can browse together online with customers, share browsers, and offer real-time help.
107
+
108
+ **Facebook Messenger:** Convert Facebook visitors into customers, interact with them easily from a single dashboard and add value to your social media support strategy.
109
+
110
+ **Viber Messaging:** Allow your customers to reach you through Viber, give them the freedom to send messages to your support team through the Viber public account, and reply to their messages from the REVE Chat dashboard itself.
111
+
112
+ **Screen Sharing:** Solve complex issues in quick time with the screen sharing feature and help them navigate the website with screen sharing.
113
+
114
+ **Real-time Visitor Analytics:** Personalize every interaction with real-time insights about your customers (location, history, IP address, Referral source) and improve user experience.
115
+
116
+ **Department Management:** Route customer queries to the right department and increases response time.
117
+
118
+ **Queuing:** Queue customers and minimize their frustration by providing the right information about waiting time when your agents are busy.
119
+
120
+ **Auto Triggers:** Send automatic invitations to your website visitors based on a certain time, ULR, or location.
121
+
122
+ **Chat Monitoring:** Monitor your agent performance and responses to ensure more appropriate answers to your customer queries.
123
+
124
+
125
+ Integrate Live Chat for WordPress Website and convert traffic into loyal customers.
126
+ [Start a free trial here and make the integration of live chat for WP effortless.](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
127
+
128
+ == Get All-inOne With REVE Chat Plugin for WP Website ==
129
+ * A lightweight and customizable widget
130
+ * 100% mobile-friendly
131
+ * Free mobile app (iOS & Android)
132
+ * Incoming visitor notifications
133
+ * Live typing preview
134
+ * Drag and drop chatbot builder
135
+ * Zero coding
136
+ * 20+ chatbot templates
137
+ * Tons of bot scripts to support conversation strands
138
+ * Plug 'n play arrangement to make the bot live
139
+ * Schedule appointments with the customer in chat
140
+ * Integrate with Google Calendar
141
+ * Send user from chatbot to WhatsApp or Facebook Messenger
142
+ * Ready to use a built-in chatbot
143
+ * Support for 50+ integrations
144
+ * Natural Language Processing (NLP)
145
+
146
+ == Supported Language ==
147
+
148
+ * Arabic
149
+ * Bangla
150
+ * Chinese
151
+ * Dutch
152
+ * English
153
+ * French
154
+ * German
155
+ * Hindi
156
+ * Italian
157
+ * Japanese
158
+ * Korean
159
+ * Malay
160
+ * Polish
161
+ * Portuguese
162
+ * Romanian
163
+ * Russian
164
+ * Spanish
165
+ * Swedish
166
+ * Tagalog
167
+ * Turkish
168
+ * Vietnamese
169
+
170
+
171
+ == Some Facts ==
172
 
173
+ * Compatibility with major browsers (Internet Explorer 7+, Firefox, Google Chrome, Opera, Safari).
174
+ * The average uptime is 99.8%.
175
+ * Mobile Optimized Dashboard
176
+ * 24×7-365 live support ( visit https://www.revechat.com and initiate a chat or send us an email at support@revechat.com.)
177
 
178
 
179
+ == Support ==
180
 
181
+ Should you need any assistance, feel free to chat with our customer advocates on www.revechat.com or email us at support@revechat.com
182
 
183
  Don't have a reve chat account ? [Create one from here!](https://www.revechat.com/signup/?utm_source=wpdirectory&utm_medium=link&utm_campaign=signup)
184
 
185
 
 
186
  == Changelog ==
187
 
188
 
209
  = 6.2.0 =
210
  * new UI design
211
  * updating singup and login procedure
212
+ * added shopping cart feature
213
+
214
+ = 6.2.1 =
215
+ * added shopping cart feature
216
+ * Show visitor's cart information in chat window
217
+ * Share product card
218
+ * Show orders list
219
+ * Search order by id
220
 
221
  == Screenshots ==
222
 
223
+ 1. Basic conversation - Client side
224
+ 2. Basic conversation - Agent side
225
+ 3. Download the REVE Chat plugin
226
+ 4. Login to Dashboard
227
+ 5. Upload REVE Chat Plugin
228
+ 6. Install REVE Chat Plugin
229
+ 7. Activate REVE Chat Plugin
230
+ 8. Settings REVE Chat Plugin
231
+ 9. Login/SignUp REVE Chat Plugin
232
+ 10. Save the changes
233
 
234
 
235
  == Installation ==
236
 
237
+ = How to Install REVE Chat Widget to Your WordPress Website =
238
 
239
+ Installing REVE Chat Widget to your WordPress website is quite easy. It takes seconds, literally. All you need to do is follow some simple steps and voila, it’s done! Quite easy!
 
 
 
 
240
 
241
+ So, let’s get started….
242
 
243
+ **For REVE Chat widget integration, follow the steps given below:**
244
+
245
+ 1. Download the REVE Chat plugin from [WordPress Marketplace](https://wordpress.org/plugins/revechat/)
246
+
247
+ 2. Login to your website admin panel
248
 
249
+ 3. Select **‘Plugins’** from the left side panel and then **‘Add new’**. On the right side, you will see the **‘Add Plugins’** option. Next click on **‘Upload Plugin’**.
250
+
251
+ 4. To upload the file, click on the **‘Choose File’**. Select the downloaded file, and click on **‘Install Now’**.
252
+
253
+ 5. When the installation process is finished, click on the **‘Activate Plugin’** option to activate the REVE Chat plugin.
254
+
255
+ 6. Now you will find the **“REVE Chat”** plugin in the **“Installed Plugins”** list. To go to the REVE Chat settings page, click on the **‘Settings‘** option.
256
+
257
+ 7. If you already have a REVE Chat account, please choose **“Yes, I already have a REVE Chat account”** and provide your email address. Otherwise, you can also choose **“No, I want to create one”** to create a new account.
258
+
259
+ 8. Now click on the **‘Save Changes’** button.
260
+
261
+ That’s it! WordPress live chat installation is done.
262
+
263
+
264
+ == Frequently Asked Questions ==
265
 
266
  = Do I have to install any software on my server to get working the chat plugin? =
267
  No, REVE Chat is a cloud-based live chat software and does not require any other application to be installed on server. You just need to install and activate the live chat plugin.
354
  Yes, this live chat plugin can be added on more than one website at the same time for Advanced & Enterprise package.
355
 
356
 
357
+ == Contributors & Developers ==
 
 
 
358
 
359
+ REVE Chat is an omnichannel platform envisioned to help businesses scale sales and support with a range of advanced live engagement tools. We have an AI-powered chatbot, live chat software, video chat, and co-browsing solutions to enable enterprises value across marketing, sales, and support.
revechat.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: REVE Chat - WP Live Chat Support plugin
4
  Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
5
- Version: 6.2.0
6
  Author: REVE Chat
7
  Author URI: www.revechat.com
8
  License: GPL2
@@ -31,6 +31,8 @@ class WP_Plugin_Revechat
31
  $this->plugin->name = 'revechat'; // Plugin Folder
32
  $this->plugin->displayName = 'REVE Chat'; // Plugin Name
33
 
 
 
34
  // Hooks
35
  add_action('admin_init', array(&$this, 'registerSettings'));
36
 
@@ -42,9 +44,118 @@ class WP_Plugin_Revechat
42
 
43
  //enqueue scripts
44
  add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
 
 
 
 
 
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  } // END public function __construct
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  /**
49
  * REVE Chat widget script.
50
  *
@@ -58,6 +169,7 @@ class WP_Plugin_Revechat
58
  public static function frontendHeader()
59
  {
60
  $accountId = get_option('revechat_aid' , '');
 
61
  if( (isset($accountId) && !empty($accountId)) ) {
62
 
63
  $script = "<script type='text/javascript'>";
@@ -68,6 +180,14 @@ class WP_Plugin_Revechat
68
  })(document, window);';
69
 
70
  $script .='</script>';
 
 
 
 
 
 
 
 
71
 
72
  echo $script ;
73
 
@@ -93,13 +213,82 @@ class WP_Plugin_Revechat
93
  }
94
  // variables for the field and option names
95
  $accountId = 'revechat_aid';
96
-
97
-
98
-
99
-
100
  // Read in existing option value from database
101
  $val_accountId = get_option( $accountId );
102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  if( isset($_POST[ $accountId ])){
104
 
105
  // Read in existing option value from POST
@@ -123,17 +312,47 @@ class WP_Plugin_Revechat
123
  <div class="revechat_wrap">
124
 
125
  <?php if(isset($val_accountId) && $val_accountId != 0){ ?>
 
 
 
 
126
  <form id="revechat_remove_form" name="revechat_remove_form" method="post" action="" class="revechat_success_message">
127
 
128
  <h4>REVE Chat has been installed.</h4>
 
 
 
129
  <p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
130
- <p><a href="https://dashboard.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
 
 
131
 
132
  <div id="edit-actions" class="form-actions form-wrapper">
133
  <input type="hidden" name="revechat_aid" value="0">
134
  <p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
135
  </div>
136
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  <?php } else { ?>
138
  <div id="revechat_chooser">
139
  <h3>Do you already have a REVE Chat account?</h3>
@@ -251,6 +470,20 @@ class WP_Plugin_Revechat
251
 
252
  }
253
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  /**
255
  * Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
256
  *
2
  /*
3
  Plugin Name: REVE Chat - WP Live Chat Support plugin
4
  Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
5
+ Version: 6.2.1
6
  Author: REVE Chat
7
  Author URI: www.revechat.com
8
  License: GPL2
31
  $this->plugin->name = 'revechat'; // Plugin Folder
32
  $this->plugin->displayName = 'REVE Chat'; // Plugin Name
33
 
34
+ $this->plugin->revechatApiBaseUrl = "https://app.revechat.com";
35
+
36
  // Hooks
37
  add_action('admin_init', array(&$this, 'registerSettings'));
38
 
44
 
45
  //enqueue scripts
46
  add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
47
+
48
+ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
49
+ add_action('wp_enqueue_scripts', [$this, 'loadCartScript']);
50
+ }
51
+
52
 
53
+ // shopping cart api
54
+ add_action( 'rest_api_init', function () {
55
+
56
+ register_rest_route( 'revechat/v1', '/cart', array(
57
+ 'methods' => 'GET',
58
+ 'callback' => array($this,'getCartInfo'),
59
+ ) );
60
+
61
+
62
+ });
63
+
64
+
65
+
66
+
67
  } // END public function __construct
68
 
69
+ /**
70
+ * REVE Chat getCartInfo.
71
+ * custom implementation of revechat cart api
72
+ *
73
+ */
74
+ public function getCartInfo()
75
+ {
76
+ WC()->frontend_includes();
77
+
78
+ WC()->session = new WC_Session_Handler();
79
+ WC()->session->init();
80
+
81
+ $customerId = get_current_user_id();
82
+
83
+ WC()->customer = new WC_Customer( $customerId, true );
84
+ WC()->cart = new WC_Cart();
85
+
86
+ $response = new WP_REST_Response($this->getCartPayload($customerId), 200);
87
+
88
+ // Set headers.
89
+ $response->set_headers(['Cache-Control' => 'must-revalidate, no-cache, no-store, private']);
90
+ return $response;
91
+
92
+ }
93
+
94
+
95
+
96
+ /**
97
+ * REVE Chat getCartPayload.
98
+ * this is used to format generic cart payload
99
+ *
100
+ */
101
+ public function getCartPayload($customerId)
102
+ {
103
+ $products = array();
104
+
105
+ foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
106
+ $item = array();
107
+ $item["productId"] = (int) $cart_item['product_id'];
108
+ $item["title"]=$cart_item['data']->get_title();
109
+ $item["quantity"] = (int) $cart_item['quantity'];
110
+ $item["price"] = (double)$cart_item['data']->get_price();
111
+
112
+ $image_id = $cart_item['data']->get_image_id();
113
+ $item["image"] = wp_get_attachment_image_url( $image_id, 'thumbnail' );
114
+ $item["productUrl"] = $cart_item['data']->get_permalink();
115
+ $item["variants"] = [];
116
+ array_push($products, $item);
117
+ }
118
+
119
+
120
+ $customer = new stdClass();
121
+
122
+
123
+ if (is_numeric($customerId))
124
+ {
125
+ $customer->customerId = $customerId;
126
+ }
127
+
128
+
129
+ $cartPayload = array(
130
+ "cartId" => "",
131
+ "shop" => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]",
132
+ "customer" => $customer,
133
+ "platform" => $this->getPlatform(),
134
+ "currency" => get_option('woocommerce_currency'),
135
+ "items" => $products
136
+ );
137
+
138
+
139
+ return $cartPayload;
140
+ }
141
+
142
+ /**
143
+ * REVE Chat get platform method.
144
+ * this is used to detect if wordpress or woocommerce is running.
145
+ *
146
+ */
147
+
148
+ public function getPlatform()
149
+ {
150
+ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
151
+ return "woocommerce";
152
+ }
153
+
154
+ return "wordpress";
155
+ }
156
+
157
+
158
+
159
  /**
160
  * REVE Chat widget script.
161
  *
169
  public static function frontendHeader()
170
  {
171
  $accountId = get_option('revechat_aid' , '');
172
+
173
  if( (isset($accountId) && !empty($accountId)) ) {
174
 
175
  $script = "<script type='text/javascript'>";
180
  })(document, window);';
181
 
182
  $script .='</script>';
183
+
184
+
185
+ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
186
+ $script .= "<script type='text/javascript'>";
187
+ $script .='localStorage.setItem("rcPlatform", "woocommerce");';
188
+ $script .='</script>';
189
+
190
+ }
191
 
192
  echo $script ;
193
 
213
  }
214
  // variables for the field and option names
215
  $accountId = 'revechat_aid';
 
 
 
 
216
  // Read in existing option value from database
217
  $val_accountId = get_option( $accountId );
218
 
219
+ if (isset($_POST["revechat_wc_consumerKey"]) && isset($_POST["revechat_wc_consumerSecret"]) && isset($val_accountId))
220
+ {
221
+ $status = "installed";
222
+
223
+ if (empty($_POST["revechat_wc_consumerKey"]) || empty($_POST["revechat_wc_consumerSecret"]))
224
+ {
225
+ $status = "inactive";
226
+ }
227
+
228
+ // set post fields
229
+ $payload = array(
230
+ "accountId" => get_option( $accountId ),
231
+ "platform" => "WOOCOMMERCE",
232
+ "woocommerce" => array(
233
+ "status" => $status,
234
+ "settings" => array(
235
+ 'consumerKey' => $_POST["revechat_wc_consumerKey"],
236
+ 'consumerSecret' => $_POST["revechat_wc_consumerSecret"],
237
+ 'shopUrl' => "$_SERVER[HTTP_HOST]",
238
+ 'adminUrl' => admin_url()
239
+ )
240
+ ),
241
+
242
+
243
+ );
244
+
245
+ $payload = json_encode($payload);
246
+
247
+ $url = $this->plugin->revechatApiBaseUrl.'/rest/v1/cms/saveToken';
248
+ $ch = curl_init();
249
+ $headers = array(
250
+ 'Method: POST',
251
+ 'Connection: keep-alive',
252
+ 'User-Agent: PHP-SOAP-CURL',
253
+ 'Content-Type: application/json;',
254
+ 'Accept: application/json'
255
+ );
256
+
257
+
258
+ curl_setopt($ch, CURLOPT_URL, $url);
259
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
260
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
261
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
262
+ curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
263
+
264
+
265
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
266
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
267
+
268
+ $response = curl_exec($ch);
269
+ $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
270
+
271
+ curl_close($ch);
272
+
273
+ if ($httpcode == 200)
274
+ {
275
+
276
+ $response = json_decode($response, true);
277
+ if ($response["status"] == "success")
278
+ {
279
+ update_option( "revechat_wc_consumerKey" , $_POST["revechat_wc_consumerKey"] );
280
+ update_option( "revechat_wc_consumerSecret" , $_POST["revechat_wc_consumerSecret"] );
281
+ update_option('revechat_wc_aid', get_option( $accountId ));
282
+ }
283
+
284
+ }
285
+
286
+
287
+
288
+
289
+
290
+ }
291
+
292
  if( isset($_POST[ $accountId ])){
293
 
294
  // Read in existing option value from POST
312
  <div class="revechat_wrap">
313
 
314
  <?php if(isset($val_accountId) && $val_accountId != 0){ ?>
315
+
316
+
317
+
318
+
319
  <form id="revechat_remove_form" name="revechat_remove_form" method="post" action="" class="revechat_success_message">
320
 
321
  <h4>REVE Chat has been installed.</h4>
322
+
323
+
324
+
325
  <p>Sign in to REVE Chat Dashboard and start chatting with your customers.</p>
326
+ <p><a href="https://app.revechat.com" class="form-submit button-primary" target="_blank">Go to Dashboard</a></p>
327
+
328
+
329
 
330
  <div id="edit-actions" class="form-actions form-wrapper">
331
  <input type="hidden" name="revechat_aid" value="0">
332
  <p><small>Something went wrong? <input type="submit" style="background: transparent; border: 0; text-decoration: underline;text-transform: lowercase; font-size: 10px; cursor: pointer;" value="Disconnect" name="revechat_remove" id="edit-submit"></small></p>
333
  </div>
334
  </form>
335
+
336
+
337
+ <?php if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { ?>
338
+
339
+
340
+
341
+ <form id="revechat_remove_form" name="revechat_wc_form" method="post" action="" class="revechat_success_message">
342
+
343
+ <h4>Other Settings (Woocommerce Access)</h4>
344
+
345
+ <p>
346
+ Woocommerce Consumer Key : <input type="text" name="revechat_wc_consumerKey" value="<?php if ($val_accountId == get_option('revechat_wc_aid')) {echo get_option('revechat_wc_consumerKey');}?>"> <br><br>
347
+ Woocommerce Consumer Secret : <input type="text" name="revechat_wc_consumerSecret" value="<?php if ($val_accountId == get_option('revechat_wc_aid')) {echo get_option('revechat_wc_consumerSecret');}?>"><br><br>
348
+ <input type="submit" name="revechat_wc_key" id="revechat_wc_token_submit" value="Save" class="button-primary">
349
+ </p>
350
+
351
+ </form>
352
+
353
+ <?php } ?>
354
+
355
+
356
  <?php } else { ?>
357
  <div id="revechat_chooser">
358
  <h3>Do you already have a REVE Chat account?</h3>
470
 
471
  }
472
 
473
+ /**
474
+ * Load shopping cart script
475
+ * in storefront.
476
+ */
477
+ public function loadCartScript()
478
+ {
479
+ // Add JS.
480
+ wp_enqueue_script('revechat', plugin_dir_url(__FILE__) . 'assets/js/woocommerceCart.js?ver=111', ['jquery'], NULL, TRUE);
481
+ // Pass nonce to JS.
482
+ wp_localize_script('revechat', 'revechatSettings', [
483
+ 'nonce' => wp_create_nonce('wp_rest'),
484
+ ]);
485
+ }
486
+
487
  /**
488
  * Applied to the list of links to display on the plugins page (beside the activate/deactivate links).
489
  *