Click to Chat for WhatsApp Chat - Version 3.2.6

Version Description

  • Enhancement: AMP Compatibility
  • Fix: Shortcode prefilled, call to action for WooCommerce single product pages
  • Updated: dashicons
Download this release

Release Info

Developer bhvreddy
Plugin Icon 128x128 Click to Chat for WhatsApp Chat
Version 3.2.6
Comparing to
See all releases

Code changes from version 3.2.5 to 3.2.6

click-to-chat.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Click to Chat
4
  Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
5
  Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
6
- Version: 3.2.5
7
  Author: HoliThemes
8
  Author URI: https://holithemes.com/plugins/click-to-chat/
9
  License: GPL2
@@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
17
 
18
  // ctc - Version - update version at readme 'Stable tag'
19
  if ( ! defined( 'HT_CTC_VERSION' ) ) {
20
- define( 'HT_CTC_VERSION', '3.2.5' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
3
  Plugin Name: Click to Chat
4
  Plugin URI: https://wordpress.org/plugins/click-to-chat-for-whatsapp/
5
  Description: Lets make your Web page visitors contact you through WhatsApp with a single click/tap
6
+ Version: 3.2.6
7
  Author: HoliThemes
8
  Author URI: https://holithemes.com/plugins/click-to-chat/
9
  License: GPL2
17
 
18
  // ctc - Version - update version at readme 'Stable tag'
19
  if ( ! defined( 'HT_CTC_VERSION' ) ) {
20
+ define( 'HT_CTC_VERSION', '3.2.6' );
21
  }
22
 
23
  // define HT_CTC_PLUGIN_FILE
new/admin/class-ht-ctc-admin-main-page.php CHANGED
@@ -21,13 +21,19 @@ class HT_CTC_Admin_Main_Page {
21
 
22
  public function menu() {
23
 
 
 
 
 
 
 
24
  add_menu_page(
25
  'Click to Chat - New Interface - Plugin Option Page',
26
  'Click to Chat',
27
  'manage_options',
28
  'click-to-chat',
29
  array( $this, 'settings_page' ),
30
- 'dashicons-whatsapp'
31
  );
32
  }
33
 
@@ -91,11 +97,6 @@ class HT_CTC_Admin_Main_Page {
91
  add_settings_field( 'prefilled', __( 'Pre-Filled Message', 'click-to-chat-for-whatsapp'), array( $this, 'prefilled_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
92
  add_settings_field( 'cta', __( 'Call to Action', 'click-to-chat-for-whatsapp'), array( $this, 'cta_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
93
  add_settings_field( 'ctc_webandapi', __( 'Web WhatsApp', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_webandapi_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
94
-
95
- if ( function_exists( 'amp_is_request' ) ) {
96
- add_settings_field( 'ctc_amp', 'AMP', array( $this, 'ctc_amp_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
97
- }
98
-
99
  add_settings_field( 'ctc_desktop', __( 'Dekstop', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_desktop_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
100
  add_settings_field( 'ctc_mobile', __( 'Mobile', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_mobile_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
101
  add_settings_field( 'ctc_show_hide', __( 'Display Settings', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_show_hide_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
@@ -210,58 +211,6 @@ class HT_CTC_Admin_Main_Page {
210
  <?php
211
  }
212
 
213
- // If checked web / api whatsapp link. If unchecked wa.me links
214
- function ctc_amp_cb() {
215
- $options = get_option('ht_ctc_chat_options');
216
- $dbrow = 'ht_ctc_chat_options';
217
-
218
- if ( function_exists( 'amp_is_request' ) ) {
219
- ?>
220
- <ul class="collapsible" data-collapsible="accordion" id="ht_ctc_amp">
221
- <li class="active">
222
- <div class="collapsible-header"><?php _e( 'AMP Compatibility', 'click-to-chat-for-whatsapp' ); ?> (Beta)</div>
223
- <div class="collapsible-body">
224
-
225
- <?php
226
- // cache issue while selecting styles
227
- if ( isset( $options['amp'] ) ) {
228
- ?>
229
- <p id="styles_issue">
230
- <label>
231
- <input name="<?php echo $dbrow ?>[amp]" type="checkbox" value="1" <?php checked( $options['amp'], 1 ); ?> id="amp" />
232
- <span><?php _e( 'AMP Compatibility', 'click-to-chat-for-whatsapp' ); ?></span>
233
- </label>
234
- </p>
235
- <?php
236
- } else {
237
- ?>
238
- <p id="styles_issue">
239
- <label>
240
- <input name="<?php echo $dbrow ?>[amp]" type="checkbox" value="1" id="amp" />
241
- <span><?php _e( 'AMP Compatibility', 'click-to-chat-for-whatsapp' ); ?></span>
242
- </label>
243
- </p>
244
- <?php
245
- }
246
- ?>
247
- <br>
248
- <p class="description">In Beta Stage </p>
249
- <p class="description">All the features are not fully compatibile. </p>
250
- <br>
251
- <p class="description">Plese contact us for any suggestions, feedback
252
- <br>
253
- Mail: <a href="mailto:ctc@holithemes.com">ctc@holithemes.com</a>
254
- </p>
255
- <br>
256
- <p class="description" style="font-size: 0.8em;">After getting sufficent feedbacks, this option will be removed. And by default plugin is compatible with AMP</p>
257
- </div>
258
- </li>
259
- </ul>
260
- <?php
261
- }
262
-
263
- }
264
-
265
 
266
  // Dekstop
267
  function ctc_desktop_cb() {
21
 
22
  public function menu() {
23
 
24
+ // dashicons-format-chat / dashicons-whatsapp
25
+ $icon = 'dashicons-whatsapp';
26
+ if( version_compare( get_bloginfo('version'), '5.6', '<') ) {
27
+ $icon = 'dashicons-format-chat';
28
+ }
29
+
30
  add_menu_page(
31
  'Click to Chat - New Interface - Plugin Option Page',
32
  'Click to Chat',
33
  'manage_options',
34
  'click-to-chat',
35
  array( $this, 'settings_page' ),
36
+ $icon
37
  );
38
  }
39
 
97
  add_settings_field( 'prefilled', __( 'Pre-Filled Message', 'click-to-chat-for-whatsapp'), array( $this, 'prefilled_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
98
  add_settings_field( 'cta', __( 'Call to Action', 'click-to-chat-for-whatsapp'), array( $this, 'cta_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
99
  add_settings_field( 'ctc_webandapi', __( 'Web WhatsApp', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_webandapi_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
 
 
 
 
 
100
  add_settings_field( 'ctc_desktop', __( 'Dekstop', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_desktop_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
101
  add_settings_field( 'ctc_mobile', __( 'Mobile', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_mobile_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
102
  add_settings_field( 'ctc_show_hide', __( 'Display Settings', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_show_hide_cb' ), 'ht_ctc_main_page_settings_sections_do', 'ht_ctc_chat_page_settings_sections_add' );
211
  <?php
212
  }
213
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
 
215
  // Dekstop
216
  function ctc_desktop_cb() {
new/admin/class-ht-ctc-admin-other-settings.php CHANGED
@@ -382,10 +382,39 @@ class HT_CTC_Admin_Other_Settings {
382
  <li>
383
  <div class="collapsible-header"><?php _e( 'Debug, Troubleshoot, ..', 'click-to-chat-for-whatsapp' ); ?></div>
384
  <div class="collapsible-body">
385
-
386
-
387
  <?php
388
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
389
  // debug mode
390
  if ( isset( $options['debug_mode'] ) ) {
391
  ?>
@@ -409,16 +438,14 @@ class HT_CTC_Admin_Other_Settings {
409
 
410
  ?>
411
 
412
- <br>
413
  <p class="description">
414
  <ul>
415
- Troubleshoot
416
  <ol>Clear Cache</ol>
417
  <ol>Check Display Settings</ol>
418
  </ul>
419
  </p>
420
- <!-- <p class="description">If still an issue: Plesae enable debug mode and Contact us</p> -->
421
- <p class="description">If still an issue: Please Contact us. Mail: <a href="mailto:ctc@holithemes.com">ctc@holithemes.com</a>, <a target="_blank" href="http://api.whatsapp.com/send?phone=919494429789&text=Hi%20HoliThemes,%20I%20have%20a%20question">WhatsApp Us</a></p>
422
  <br>
423
 
424
  <?php
@@ -443,9 +470,10 @@ class HT_CTC_Admin_Other_Settings {
443
  </p>
444
  <?php
445
  }
446
-
447
  ?>
448
 
 
 
449
 
450
 
451
  </div>
382
  <li>
383
  <div class="collapsible-header"><?php _e( 'Debug, Troubleshoot, ..', 'click-to-chat-for-whatsapp' ); ?></div>
384
  <div class="collapsible-body">
 
 
385
  <?php
386
 
387
+ // AMP Compatibility - enabled by default. (if an issue uncheck this..)
388
+ // later version remove this option and make enable by default..
389
+ // if amp related issue, uncheck this option
390
+ if ( function_exists( 'amp_is_request' ) ) {
391
+ if ( isset( $options['amp'] ) ) {
392
+ ?>
393
+ <p id="amp_compatibility">
394
+ <label>
395
+ <input name="<?php echo $dbrow ?>[amp]" type="checkbox" value="1" <?php checked( $options['amp'], 1 ); ?> id="amp" />
396
+ <span><?php _e( 'AMP Compatibility', 'click-to-chat-for-whatsapp' ); ?></span>
397
+ </label>
398
+ </p>
399
+ <?php
400
+ } else {
401
+ ?>
402
+ <p id="amp_compatibility">
403
+ <label>
404
+ <input name="<?php echo $dbrow ?>[amp]" type="checkbox" value="1" id="amp" />
405
+ <span><?php _e( 'AMP Compatibility', 'click-to-chat-for-whatsapp' ); ?></span>
406
+ </label>
407
+ </p>
408
+ <?php
409
+ }
410
+ ?>
411
+ <p class="description">New feature: If any issue, uncheck this option and please contact us</p>
412
+ <!-- todo: finish this after server migration -->
413
+ <!-- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/amp-compatibility/"><?php _e( 'AMP Compatibility', 'click-to-chat-for-whatsapp' ); ?></a></p> -->
414
+ <br>
415
+ <?php
416
+ }
417
+
418
  // debug mode
419
  if ( isset( $options['debug_mode'] ) ) {
420
  ?>
438
 
439
  ?>
440
 
 
441
  <p class="description">
442
  <ul>
443
+ Basic Troubleshoot
444
  <ol>Clear Cache</ol>
445
  <ol>Check Display Settings</ol>
446
  </ul>
447
  </p>
448
+ <!-- <p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/amp-compatibility/">Basic Troubleshooting</a></p> -->
 
449
  <br>
450
 
451
  <?php
470
  </p>
471
  <?php
472
  }
 
473
  ?>
474
 
475
+ <br><br>
476
+ <p class="description"><?php _e( 'If any issue: Please contact us', 'click-to-chat-for-whatsapp' ); ?> <br> <?php _e( 'Mail', 'click-to-chat-for-whatsapp' ); ?>: <a href="mailto:ctc@holithemes.com">ctc@holithemes.com</a> <br> <a target="_blank" href="http://api.whatsapp.com/send?phone=919494429789&text=Hi%20HoliThemes,%20I%20have%20a%20question"><?php _e( 'WhatsApp Us', 'click-to-chat-for-whatsapp' ); ?></a></p>
477
 
478
 
479
  </div>
new/admin/class-ht-ctc-db.php CHANGED
@@ -90,6 +90,7 @@ class HT_CTC_DB {
90
  'an_delay' => '0',
91
  'an_itr' => '1',
92
  'show_effect' => 'no-show-effects',
 
93
  );
94
 
95
  // enable by default for new installs.
@@ -154,12 +155,6 @@ class HT_CTC_DB {
154
  $values = array_merge($values, $mobile_values);
155
  }
156
 
157
- // enable by default for new installs.
158
- // if ( !isset ( $this->os['version'] ) ) {
159
- // $values['amp'] = '1';
160
- // }
161
-
162
-
163
  $db_values = get_option( 'ht_ctc_chat_options', array() );
164
  $update_values = array_merge($values, $db_values);
165
  update_option('ht_ctc_chat_options', $update_values);
90
  'an_delay' => '0',
91
  'an_itr' => '1',
92
  'show_effect' => 'no-show-effects',
93
+ 'amp' => '1',
94
  );
95
 
96
  // enable by default for new installs.
155
  $values = array_merge($values, $mobile_values);
156
  }
157
 
 
 
 
 
 
 
158
  $db_values = get_option( 'ht_ctc_chat_options', array() );
159
  $update_values = array_merge($values, $db_values);
160
  update_option('ht_ctc_chat_options', $update_values);
new/inc/chat/class-ht-ctc-chat-shortcode.php CHANGED
@@ -42,6 +42,36 @@ class HT_CTC_Chat_Shortcode {
42
  $style = $style_mobile;
43
  }
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  // $content = do_shortcode($content);
46
 
47
  // $ccw_options_cs = get_option('ccw_options_cs');
42
  $style = $style_mobile;
43
  }
44
 
45
+ // if woocommerce single product page
46
+ if ( function_exists( 'is_product' ) && function_exists( 'wc_get_product' )) {
47
+ if ( is_product() ) {
48
+
49
+ $product = wc_get_product();
50
+
51
+ $name = $product->get_name();
52
+ // $title = $product->get_title();
53
+ $price = $product->get_price();
54
+ $regular_price = $product->get_regular_price();
55
+ $sku = $product->get_sku();
56
+
57
+ // pre-filled
58
+ if ( isset( $options['woo_pre_filled'] ) && '' !== $options['woo_pre_filled'] ) {
59
+ $pre_filled = esc_attr( $options['woo_pre_filled'] );
60
+ $pre_filled = apply_filters( 'wpml_translate_single_string', $pre_filled, 'Click to Chat for WhatsApp', 'woo_pre_filled' );
61
+ }
62
+ // variables now works in default pre_filled also
63
+ $pre_filled = str_replace( array('{product}', '{price}', '{regular_price}', '{sku}' ), array( $name, $price, $regular_price, $sku ), $pre_filled );
64
+
65
+ // call to action
66
+ if ( isset( $options['woo_call_to_action'] ) && '' !== $options['woo_call_to_action'] ) {
67
+ $call_to_action = esc_attr( $options['woo_call_to_action'] );
68
+ $call_to_action = apply_filters( 'wpml_translate_single_string', $call_to_action, 'Click to Chat for WhatsApp', 'woo_call_to_action' );
69
+ $call_to_action = str_replace( array('{product}', '{price}', '{regular_price}', '{sku}' ), array( $name, $price, $regular_price, $sku ), $call_to_action );
70
+ }
71
+
72
+ }
73
+ }
74
+
75
  // $content = do_shortcode($content);
76
 
77
  // $ccw_options_cs = get_option('ccw_options_cs');
new/inc/chat/class-ht-ctc-chat.php CHANGED
@@ -165,7 +165,7 @@ class HT_CTC_Chat {
165
  $on = "";
166
 
167
  // AMP
168
- if ( isset($options['amp']) ) {
169
  // ampforwp_is_amp_endpoint / is_amp_endpoint / amp_is_request
170
  if ( function_exists( 'amp_is_request' ) && amp_is_request() ) {
171
 
165
  $on = "";
166
 
167
  // AMP
168
+ if ( isset($othersettings['amp']) ) {
169
  // ampforwp_is_amp_endpoint / is_amp_endpoint / amp_is_request
170
  if ( function_exists( 'amp_is_request' ) && amp_is_request() ) {
171
 
new/inc/commons/class-ht-ctc-scripts.php CHANGED
@@ -26,6 +26,7 @@ class HT_CTC_Scripts {
26
  $load_app_js_bottom = apply_filters( 'ht_ctc_fh_load_app_js_bottom', true );
27
 
28
  // js
 
29
  $js = '325.app.js';
30
  $group_js = 'group.js';
31
  $share_js = 'share.js';
26
  $load_app_js_bottom = apply_filters( 'ht_ctc_fh_load_app_js_bottom', true );
27
 
28
  // js
29
+ // $js = 'app.js';
30
  $js = '325.app.js';
31
  $group_js = 'group.js';
32
  $share_js = 'share.js';
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
- Tested up to: 5.6
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
- Stable tag: 3.2.5
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, social chat, whatsapp wordpress, whatsapp floating button, whatsapp icon, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -16,17 +16,15 @@ WhatsApp connectivity for WordPress websites! Engage customers and generate lead
16
 
17
  Let's make your Web page visitors Contact you through "WhatsApp", "WhatsApp Business" with a single Click (WhatsApp Chat, Group, Share)
18
 
19
- [Demo](https://holithemes.com/plugins/click-to-chat/list-of-styles/)
20
-
21
- [Documentation](https://holithemes.com/plugins/click-to-chat/)
22
 
23
  == WhatsApp Chat ==
24
 
25
  Add your 'WhatsApp' or 'WhatsApp Business' Number. And let your website visitors contact you with a single click.
26
 
27
- **Mobile:** Navigates to WhatsApp App.
28
 
29
- **Desktop:** Navigates to Webpage(web.whatsapp.com) / WhatsApp Desktop App.
30
 
31
  = 💎 Styles =
32
 
@@ -53,14 +51,12 @@ Text that appears at the WhatsApp chat window when the user clicks on the Image/
53
 
54
  Users can start the conversation easily.
55
 
56
- Add variables to change values dynamically
57
 
58
- `
59
  {site} -> Website Title
60
  {title} -> Page Title
61
  {url} -> Web page URL
62
  [url] -> Web page full URL including parameters
63
- `
64
 
65
  With these variables, we can understand from which page the user started WhatsApp chat.
66
 
@@ -70,17 +66,18 @@ With these variables, we can understand from which page the user started WhatsAp
70
 
71
  Separate 'pre-filled message', 'call to action' settings for WooCommerce Single product pages.
72
 
73
- Additional, variables to change values dynamically
74
 
75
- `
76
  {product} -> Product Name
77
  {price} -> Product Price (current price)
78
  {regular_price} -> Regular product price (with out any sale)
79
  {sku} ->Stock keeping unit
80
- `
81
  = 📒 Change Settings at page level =
82
 
83
- > Change 'WhatsApp Number', 'Call to Action' at the page level (while editing the post, at the right side bar 'Click to Chat' metabox)
 
 
84
 
85
  [Page level settings](https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/)
86
 
@@ -114,14 +111,19 @@ Creates an Event when the user clicks on the WhatsApp Icon/button.
114
 
115
  Compatible with [WPML](https://wpml.org/), Polylang.
116
 
117
- Easy to setup different values for language
 
118
  * WhatsApp Number
119
  * Call to Action
120
  * Pre-filled message
121
 
122
- = 🔯 Performance =
 
 
123
 
124
- * Rich in features but the frontend of the site content is very light weight. We highly concentrate on performance.
 
 
125
 
126
  = 👓 Show/Hide =
127
 
@@ -162,7 +164,7 @@ Let users share your website with their WhatsApp contacts and get more leads.
162
 
163
  Help by [Translating the plugin](https://translate.wordpress.org/projects/wp-plugins/click-to-chat-for-whatsapp/) to available in more languages
164
 
165
- == Addons ==
166
 
167
  = Reverse position for RTL Pages =
168
 
@@ -337,7 +339,7 @@ E.g.
337
 
338
  = WhatsApp Group Invite/chat =
339
 
340
- [Enable Group Feature](https://holithemes.com/plugins/click-to-chat/enable-group-feature/) Add [WhatsApp group id](https://holithemes.com/whatsapp-chat/find-whatsapp-group-id/) at plugin settings page. and let user join in WhatsApp Group.
341
 
342
  = WhatsApp Share =
343
 
@@ -395,221 +397,14 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
395
 
396
  == Changelog ==
397
 
 
 
 
 
 
398
  = 3.2.5 =
399
  * Showcase - [Add your website to Click-to-Chat portfolio](https://docs.google.com/forms/d/e/1FAIpQLSdPgUgjaZLxfEk-jRQUd8efV-SNh5eOgc2Qe5Xl9uz0ti8tEw/viewform?usp=sf_link)
400
  * Show/Hide settings at page level
401
  * Fix: Shortcode navigation, if loaded dynamically.
402
- * Updated JavaScript File name. (to fix cache issues)
403
-
404
- = 3.2.4 =
405
- * AMP Compatibility - 1st version
406
- * Updated: Positions to place
407
- * Fix: Shortcode hover color effects
408
-
409
- = 3.2.3 =
410
- * Updated Show/Hide settings
411
- * Fix: Style-7 Background-color on hover issue
412
-
413
- = 3.2.2 =
414
- * Font size settings for Call to Action - Style 2, 3, 3 Extend.
415
- * Fix: Facebook Pixel integration for Shortcodes
416
-
417
- = 3.2.1 =
418
- * Updated Share feature variable {url} on loop pages
419
- * Fix: Shortcode click action,
420
-
421
- = 3.2 =
422
- * prefilled message at page level
423
- * Style-1 customize text and background color
424
- * Updated User Interface
425
-
426
- = 3.1 =
427
- * Updated: Full Width Style-1, Style-8 for mobile.
428
- * Add Animation Delay, Animation Iteration
429
- * New Animations - heartBeat, flip
430
- * Shortcode style-5 new attributes - s5_img_url, s5_line_2
431
- * Fix: Group ID Page level settings
432
- * RTL Compatible for Styles.
433
- * Updated Admin User Interface
434
-
435
- = 3.0.4 =
436
- * Style-1, Style-8 Full width option for Mobile, Desktop
437
- * bug fixes
438
-
439
- = 3.0.3 =
440
- * Updated Animations
441
- * Fixed: {url} variable at WooCommerce Pre-filled message.
442
-
443
- = 3.0 =
444
- * Call to Action for Style-2, 3, 7.
445
- * New 'Style-7 Extend'.
446
- * Style-3 is now Style-3, 'Style-3 Extend'.
447
- * Improved Style-7, Style-8.
448
- * Animations
449
- * New Variable for prefilled message. [url] - replaces with full url including parameters.
450
- * Updated User Interface
451
-
452
- = 2.12.1 =
453
- * Fix: Style-4 img position issue.
454
- * Updated: admin page
455
-
456
- = 2.12 =
457
- * Localization - compatibile with WPML, Polylang.
458
- - WhatsApp Number
459
- - Call to Action
460
- - Pre-filled Message
461
-
462
- = 2.11 =
463
- * User Interface: Desktop, Mobile settings
464
- * Updated: Style-3, extended Settings
465
- * Updated: Style-4 Emebed default svg image, Image size, position
466
- * Updated: Style-8
467
-
468
- = 2.10.2 =
469
- * performance improvement
470
- * Fixed minor issues
471
-
472
- = 2.10.1 =
473
- * Updated: Position to Place
474
-
475
- = 2.10 =
476
- * New: position for mobile (now can set different positions for mobile, desktop)
477
- * Improved User Interface, Performance
478
-
479
- * Admin side changes
480
- - Enable/disable Group, Share feature options swifted to "Customize" -> "Other Settings"
481
- - "Customize Styles" menu renamed as "Customize"
482
-
483
- = 2.9.2 =
484
- * Improved User Interface, Performance
485
- * Updated: Change values at page level settings
486
-
487
- = 2.9.1 =
488
- * Option to set delete settings when plugin uninstalls
489
- * Updated: WooCommerce related features
490
- * Updated: if number blank
491
- * Added a fallback call_to_action for some styles
492
-
493
- = 2.9 =
494
-
495
- * Introduction WooCommerce related features
496
- - 'Pre-filled message' for single product pages
497
- with variables {product}, {price}, {regular_price}, {sku}
498
- - 'Call to Action' for single product pages
499
- * Admin notice - if WhatsApp number not added.
500
- * Updated Style-4
501
-
502
- = 2.8.5 =
503
- * Style-2, Style-3 Improved.
504
- * Updated: Show/Hide Settings
505
- * Updated: Hide based on device (Mobile, Desktop)
506
- * Updated: Customize Styles
507
- * Updated: Style-5
508
- * Updated: Style-7
509
- * Fix: '&' symbol at prefilled message
510
- * Fix: Style-1 if no Call to Action
511
-
512
- = 2.8.4 =
513
- * Updated: WhatsApp number at page level settings
514
- * Updated: Display Styles after WhatsApp Number is added.
515
- * Updated: Shortcode number attribute
516
-
517
- = 2.8.3 =
518
- * Fix: Cache issue - Hide based on device - now detects based on screen size
519
-
520
- = 2.8.2 =
521
- * Display Styles after WhatsApp Number is added.
522
- * Default sytles changed.
523
-
524
- = 2.8.1 =
525
- * Fix: Color picker conflict
526
-
527
- = 2.8 =
528
- * Hide based on device - now detects based on screen size
529
- * Facebook Pixel
530
- * Google Analytics values udpated
531
-
532
- = 2.7 =
533
- * Fix: position to place suffix
534
- * Default image for style-99
535
-
536
- = 2.6 =
537
- * Pre-filled message:
538
- - Now can add multiple lines.
539
- - new variable {site}
540
- * Fix: Shortcode Style-5 click, full width issue
541
- * style-8 more customize options
542
-
543
- = 2.5 =
544
- * Share feature: Web version
545
- * Fix: number filed issues
546
-
547
- = 2.4 =
548
- * Detect device based on screen size for link generate
549
- * Fix: + sign issues for ios
550
- * FB analytics using js sdk deprecated
551
-
552
- = 2.3 =
553
- * Analytics for gtm
554
- * Fix: font conflict issue
555
- * improved styles
556
-
557
- = 2.2 =
558
- * Simplified admin pages
559
- * Performance improvement
560
-
561
- = 2.1 =
562
- * New interface - docs
563
-
564
- = 2.0 =
565
- * New interface
566
-
567
- = 1.7.2 =
568
- * Style-8 shortcode issue fixed
569
-
570
- = 1.7.1 =
571
- * Style-8 simplified
572
-
573
- = 1.7 =
574
- * Improved plugin performance
575
- * Style-4 simplified
576
- * Style-1 - default theme button
577
- * Fixed some issues
578
-
579
- = 1.6 =
580
- * Google Analytics
581
- * Facebook Analytics
582
-
583
- = silent release =
584
- * App First option to fix cache issue
585
- * shortcodes new attribute
586
-
587
- = 1.5 =
588
- * Initial message - {{url}} placeholder
589
- * new style - Add own Image
590
- * Hide Style based on Device in shotcodes
591
-
592
- = 1.4 =
593
- * New style-9, Green Square
594
- * Supports Analytics - using google tag manager
595
- * animations - alpha version
596
- * style-3 can choose .svg or .png image versions
597
- * style-4 image size reduced, ~ 2kb
598
- * performance improvement.
599
-
600
- = 1.3 =
601
- * can add pre-filled text
602
- * style-1 - can change button text.
603
- * setting page link added in plugins page
604
- * show / hide is now changed to hide on - based on page types
605
-
606
- = 1.2 =
607
- * improved: code on how to detect mobile device.
608
- * sticky save button in options page - easy to save.
609
- * option page - Documentation links.
610
-
611
- = 1.1 =
612
- * convert plugin to bit of OOP style
613
-
614
- = 1.0 =
615
- * Initial release.
1
  === Click to Chat ===
2
  Requires at least: 4.6
3
+ Tested up to: 5.6.1
4
  Requires PHP: 5.6
5
  Contributors: holithemes
6
+ Stable tag: 3.2.6
7
  Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, social chat, whatsapp wordpress, whatsapp floating button, whatsapp icon, holithemes
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
16
 
17
  Let's make your Web page visitors Contact you through "WhatsApp", "WhatsApp Business" with a single Click (WhatsApp Chat, Group, Share)
18
 
19
+ [Demo](https://holithemes.com/plugins/click-to-chat/list-of-styles/) | [Documentation](https://holithemes.com/plugins/click-to-chat/)
 
 
20
 
21
  == WhatsApp Chat ==
22
 
23
  Add your 'WhatsApp' or 'WhatsApp Business' Number. And let your website visitors contact you with a single click.
24
 
25
+ **📱 Mobile:** Chat from WhatsApp Mobile App.
26
 
27
+ **💻 Desktop:** Chat from WhatsApp Desktop App or from Web WhatsApp page(web.whatsapp.com).
28
 
29
  = 💎 Styles =
30
 
51
 
52
  Users can start the conversation easily.
53
 
54
+ Variables to change values dynamically
55
 
 
56
  {site} -> Website Title
57
  {title} -> Page Title
58
  {url} -> Web page URL
59
  [url] -> Web page full URL including parameters
 
60
 
61
  With these variables, we can understand from which page the user started WhatsApp chat.
62
 
66
 
67
  Separate 'pre-filled message', 'call to action' settings for WooCommerce Single product pages.
68
 
69
+ Additional, variables for WooCommerce to change values dynamically
70
 
 
71
  {product} -> Product Name
72
  {price} -> Product Price (current price)
73
  {regular_price} -> Regular product price (with out any sale)
74
  {sku} ->Stock keeping unit
75
+
76
  = 📒 Change Settings at page level =
77
 
78
+ > Change 'WhatsApp Number', 'Call to Action' at the page level
79
+
80
+ (while editing the post, at the right side bar 'Click to Chat' metabox)
81
 
82
  [Page level settings](https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/)
83
 
111
 
112
  Compatible with [WPML](https://wpml.org/), Polylang.
113
 
114
+ Easy to setup different values for each language
115
+
116
  * WhatsApp Number
117
  * Call to Action
118
  * Pre-filled message
119
 
120
+ Setup for [WPML](https://holithemes.com/plugins/click-to-chat/translate-click-to-chat-settings-using-wpml-plugin/), [Polylang](https://holithemes.com/plugins/click-to-chat/translate-click-to-chat-settings-using-polylang-plugin/)
121
+
122
+ = 🚀 Performance =
123
 
124
+ Rich in features but the frontend of the site content is very light weight.
125
+
126
+ We highly concentrate on performance.
127
 
128
  = 👓 Show/Hide =
129
 
164
 
165
  Help by [Translating the plugin](https://translate.wordpress.org/projects/wp-plugins/click-to-chat-for-whatsapp/) to available in more languages
166
 
167
+ == 🔯 Addons ==
168
 
169
  = Reverse position for RTL Pages =
170
 
339
 
340
  = WhatsApp Group Invite/chat =
341
 
342
+ [Enable Group Feature](https://holithemes.com/plugins/click-to-chat/enable-group-feature/) Add [WhatsApp group id](https://holithemes.com/plugins/click-to-chat/find-whatsapp-group-id/) at plugin settings page. and let user join in WhatsApp Group.
343
 
344
  = WhatsApp Share =
345
 
397
 
398
  == Changelog ==
399
 
400
+ = 3.2.6 =
401
+ * Enhancement: AMP Compatibility
402
+ * Fix: Shortcode prefilled, call to action for WooCommerce single product pages
403
+ * Updated: dashicons
404
+
405
  = 3.2.5 =
406
  * Showcase - [Add your website to Click-to-Chat portfolio](https://docs.google.com/forms/d/e/1FAIpQLSdPgUgjaZLxfEk-jRQUd8efV-SNh5eOgc2Qe5Xl9uz0ti8tEw/viewform?usp=sf_link)
407
  * Show/Hide settings at page level
408
  * Fix: Shortcode navigation, if loaded dynamically.
409
+
410
+ [changelog](https://holithemes.com/plugins/click-to-chat/changelog/)