Version Description
- New: Display settings for WooCommerce Thank you page
- Fix: Display based on Category settings not found issue
Download this release
Release Info
Developer | bhvreddy |
Plugin | Click to Chat for WhatsApp Chat |
Version | 3.5.3 |
Comparing to | |
See all releases |
Code changes from version 3.5.2 to 3.5.3
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.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.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.5.3
|
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.5.3' );
|
21 |
}
|
22 |
|
23 |
// define HT_CTC_PLUGIN_FILE
|
new/admin/admin_commons/admin-show-hide.php
CHANGED
@@ -42,14 +42,14 @@ if ( class_exists( 'WooCommerce' ) ) {
|
|
42 |
$show_hide_settings['woo_shop'] = 'Shop (Product Archive page)';
|
43 |
$show_hide_settings['woo_cart'] = 'Cart page';
|
44 |
$show_hide_settings['woo_checkout'] = 'Checkout page';
|
|
|
45 |
$show_hide_settings['woo_account'] = 'Account page';
|
46 |
}
|
47 |
|
48 |
// custom post types
|
49 |
$custom_post_types = get_post_types( array('public' => true, '_builtin' => false) );
|
50 |
|
51 |
-
// woocommerce product working in different way..
|
52 |
-
// unset may not be the perfect in all times.
|
53 |
unset($custom_post_types['product']);
|
54 |
|
55 |
// not empty array - custom post types
|
@@ -161,6 +161,13 @@ foreach ($show_hide_settings as $key => $value) {
|
|
161 |
<?php
|
162 |
} else {
|
163 |
$is_checked_show_hide = (isset($display_settings[$key])) ? esc_html($display_settings[$key]) : 'g';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
?>
|
165 |
<div class="row show_hide_types">
|
166 |
<p class="col s3">
|
42 |
$show_hide_settings['woo_shop'] = 'Shop (Product Archive page)';
|
43 |
$show_hide_settings['woo_cart'] = 'Cart page';
|
44 |
$show_hide_settings['woo_checkout'] = 'Checkout page';
|
45 |
+
$show_hide_settings['woo_order_received'] = 'Thank you / Order Received page';
|
46 |
$show_hide_settings['woo_account'] = 'Account page';
|
47 |
}
|
48 |
|
49 |
// custom post types
|
50 |
$custom_post_types = get_post_types( array('public' => true, '_builtin' => false) );
|
51 |
|
52 |
+
// woocommerce product working in different way.. woo_product
|
|
|
53 |
unset($custom_post_types['product']);
|
54 |
|
55 |
// not empty array - custom post types
|
161 |
<?php
|
162 |
} else {
|
163 |
$is_checked_show_hide = (isset($display_settings[$key])) ? esc_html($display_settings[$key]) : 'g';
|
164 |
+
if ('woo_order_received' == $key) {
|
165 |
+
// order_received / thank you page - is added later version after checkout feature is added. . should not distrub the exsiting users - default/initial checkout value itself..
|
166 |
+
$is_checked_show_hide = (isset($display_settings[$key])) ? esc_html($display_settings[$key]) : '';
|
167 |
+
if ('' == $is_checked_show_hide) {
|
168 |
+
$is_checked_show_hide = (isset($display_settings['woo_checkout'])) ? esc_html($display_settings['woo_checkout']) : 'g';
|
169 |
+
}
|
170 |
+
}
|
171 |
?>
|
172 |
<div class="row show_hide_types">
|
173 |
<p class="col s3">
|
new/admin/class-ht-ctc-admin-other-settings.php
CHANGED
@@ -435,7 +435,7 @@ class HT_CTC_Admin_Other_Settings {
|
|
435 |
$li_active_gr_sh = ( isset( $options['enable_group'] ) || isset( $options['enable_share'] ) ) ? "class='active'" : '';
|
436 |
?>
|
437 |
|
438 |
-
<p class="description"><?php _e( 'All this below settings are not important to everyone', 'click-to-chat-for-whatsapp' ); ?></p>
|
439 |
|
440 |
<ul class="collapsible ht_ctc_other_settings" data-collapsible="accordion" id="ht_ctc_othersettings">
|
441 |
<li class="">
|
435 |
$li_active_gr_sh = ( isset( $options['enable_group'] ) || isset( $options['enable_share'] ) ) ? "class='active'" : '';
|
436 |
?>
|
437 |
|
438 |
+
<p class="description" style="color: red;"><?php _e( 'All this below settings are not important to everyone', 'click-to-chat-for-whatsapp' ); ?></p>
|
439 |
|
440 |
<ul class="collapsible ht_ctc_other_settings" data-collapsible="accordion" id="ht_ctc_othersettings">
|
441 |
<li class="">
|
new/inc/commons/show-hide.php
CHANGED
@@ -99,13 +99,28 @@ if ( 'hide' == $show_or_hide ) {
|
|
99 |
}
|
100 |
}
|
101 |
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
104 |
$display = 'yes';
|
105 |
return;
|
106 |
}
|
107 |
}
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
if ( function_exists( 'is_account_page' ) && is_account_page() ) {
|
110 |
if ( isset( $display_settings['woo_account'] ) && 'show' == $display_settings['woo_account'] ) {
|
111 |
$display = 'yes';
|
@@ -127,10 +142,10 @@ if ( 'hide' == $show_or_hide ) {
|
|
127 |
}
|
128 |
|
129 |
// based on catergorys - list
|
130 |
-
$list_showon_cat = esc_html( $display_settings['list_showon_cat'] );
|
131 |
|
132 |
// avoid calling foreach, explode when hide on categorys list is empty
|
133 |
-
if( $list_showon_cat ) {
|
134 |
|
135 |
// Get current post Categorys list and create an array for that..
|
136 |
$current_categorys_array = array();
|
@@ -259,13 +274,24 @@ if ( 'hide' == $show_or_hide ) {
|
|
259 |
}
|
260 |
}
|
261 |
|
262 |
-
|
263 |
-
|
|
|
264 |
$display = 'no';
|
265 |
return;
|
266 |
}
|
267 |
}
|
268 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
if ( function_exists( 'is_account_page' ) && is_account_page() ) {
|
270 |
if ( isset( $display_settings['woo_account'] ) && 'hide' == $display_settings['woo_account'] ) {
|
271 |
$display = 'no';
|
@@ -291,10 +317,10 @@ if ( 'hide' == $show_or_hide ) {
|
|
291 |
}
|
292 |
|
293 |
// Hide styles on this catergorys - list
|
294 |
-
$list_hideon_cat = esc_html( $display_settings['list_hideon_cat'] );
|
295 |
|
296 |
// avoid calling foreach, explode when hide on categorys list is empty
|
297 |
-
if( $list_hideon_cat ) {
|
298 |
|
299 |
// Get current post Categorys list and create an array for that..
|
300 |
$current_categorys_array = array();
|
99 |
}
|
100 |
}
|
101 |
|
102 |
+
/**
|
103 |
+
* @since 3.5.3
|
104 |
+
* this have to be before checkout - if this value is not set, no problem - checkout will handle this
|
105 |
+
*/
|
106 |
+
if ( function_exists( 'is_order_received_page' ) && is_order_received_page() ) {
|
107 |
+
if ( isset( $display_settings['woo_order_received'] ) && 'show' == $display_settings['woo_order_received'] ) {
|
108 |
$display = 'yes';
|
109 |
return;
|
110 |
}
|
111 |
}
|
112 |
|
113 |
+
// its a checkout page - but in its not a thank you page
|
114 |
+
if ( function_exists( 'is_checkout' ) && is_checkout() ) {
|
115 |
+
if ( isset( $display_settings['woo_checkout'] ) && 'show' == $display_settings['woo_checkout'] ) {
|
116 |
+
// its not a thank you page
|
117 |
+
if ( function_exists( 'is_order_received_page' ) && !is_order_received_page() ) {
|
118 |
+
$display = 'yes';
|
119 |
+
return;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
}
|
123 |
+
|
124 |
if ( function_exists( 'is_account_page' ) && is_account_page() ) {
|
125 |
if ( isset( $display_settings['woo_account'] ) && 'show' == $display_settings['woo_account'] ) {
|
126 |
$display = 'yes';
|
142 |
}
|
143 |
|
144 |
// based on catergorys - list
|
145 |
+
$list_showon_cat = (isset($display_settings['list_showon_cat'])) ? esc_html( $display_settings['list_showon_cat'] ) : '';
|
146 |
|
147 |
// avoid calling foreach, explode when hide on categorys list is empty
|
148 |
+
if( '' !== $list_showon_cat ) {
|
149 |
|
150 |
// Get current post Categorys list and create an array for that..
|
151 |
$current_categorys_array = array();
|
274 |
}
|
275 |
}
|
276 |
|
277 |
+
// this have to be before checkout
|
278 |
+
if ( function_exists( 'is_order_received_page' ) && is_order_received_page() ) {
|
279 |
+
if ( isset( $display_settings['woo_order_received'] ) && 'hide' == $display_settings['woo_order_received'] ) {
|
280 |
$display = 'no';
|
281 |
return;
|
282 |
}
|
283 |
}
|
284 |
|
285 |
+
// its a checkout page - but in its not a thank you page
|
286 |
+
if ( function_exists( 'is_checkout' ) && is_checkout() ) {
|
287 |
+
if ( isset( $display_settings['woo_checkout'] ) && 'hide' == $display_settings['woo_checkout'] ) {
|
288 |
+
if ( function_exists( 'is_order_received_page' ) && !is_order_received_page() ) {
|
289 |
+
$display = 'no';
|
290 |
+
return;
|
291 |
+
}
|
292 |
+
}
|
293 |
+
}
|
294 |
+
|
295 |
if ( function_exists( 'is_account_page' ) && is_account_page() ) {
|
296 |
if ( isset( $display_settings['woo_account'] ) && 'hide' == $display_settings['woo_account'] ) {
|
297 |
$display = 'no';
|
317 |
}
|
318 |
|
319 |
// Hide styles on this catergorys - list
|
320 |
+
$list_hideon_cat = (isset($display_settings['list_hideon_cat'])) ? esc_html( $display_settings['list_hideon_cat'] ) : '';
|
321 |
|
322 |
// avoid calling foreach, explode when hide on categorys list is empty
|
323 |
+
if( '' !== $list_hideon_cat ) {
|
324 |
|
325 |
// Get current post Categorys list and create an array for that..
|
326 |
$current_categorys_array = array();
|
new/tools/woo/woo-admin/class-ht-ctc-admin-woo-page.php
CHANGED
@@ -86,7 +86,7 @@ class HT_CTC_Admin_Woo_Page {
|
|
86 |
// WooCommerce chat feautes
|
87 |
register_setting( 'ht_ctc_woo_page_settings_fields', 'ht_ctc_woo_options' , array( $this, 'options_sanitize' ) );
|
88 |
|
89 |
-
// if ( isset($_GET['page']) && 'click-to-chat-woocommerce' == $_GET['page'] ) {
|
90 |
add_settings_section( 'ht_ctc_woo_page_settings_sections_add', '', array( $this, 'chat_settings_section_cb' ), 'ht_ctc_woo_page_settings_sections_do' );
|
91 |
add_settings_field( 'ctc_woocommerce', __( 'WooCommerce', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_woocommerce_cb' ), 'ht_ctc_woo_page_settings_sections_do', 'ht_ctc_woo_page_settings_sections_add' );
|
92 |
// }
|
@@ -242,7 +242,7 @@ class HT_CTC_Admin_Woo_Page {
|
|
242 |
<option value="99" <?= $woo_style == 99 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-99 (Add your own image / GIF)', 'click-to-chat-for-whatsapp' ); ?></option>
|
243 |
</select>
|
244 |
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/list-of-styles/?utm_source=ctc&utm_medium=admin&utm_campaign=woo"><?php _e( 'List of Styles', 'click-to-chat-for-whatsapp' ); ?></a>   |   <span><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize the styles</a></span> </p>
|
245 |
-
<p class="description">Recommended Styles: 1, 8</p>
|
246 |
</div>
|
247 |
</div>
|
248 |
|
@@ -318,10 +318,21 @@ class HT_CTC_Admin_Woo_Page {
|
|
318 |
$shop_admin_url = "${admin_url}post.php?post=${shop_page_id}&action=edit";
|
319 |
?>
|
320 |
<p class="description">Shop Page <a target="_blank" href="<?= $shop_admin_url ?>">Edit </a> -> Settings Icon - At the right Sidebar 'Click to Chat' metabox - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/">Page Level Settings</a></p>
|
321 |
-
<br
|
322 |
<?php
|
323 |
}
|
324 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
|
326 |
<!-- At WooCommerce shop pages, loop.. -->
|
327 |
<div class="row">
|
@@ -331,7 +342,7 @@ class HT_CTC_Admin_Woo_Page {
|
|
331 |
<div class="input-field col s6">
|
332 |
<label>
|
333 |
<input name="<?= $dbrow; ?>[woo_shop_add_whatsapp]" type="checkbox" value="1" <?php checked( $woo_shop_add_whatsapp, 1 ); ?> id="woo_shop_add_whatsapp" />
|
334 |
-
<span><?php _e( "Add at Products Archive, Shop Page", 'click-to-chat-for-whatsapp' ); ?></span>
|
335 |
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/whatsapp-chat-in-woocommerce-shop-page/">more info</a></p>
|
336 |
</label>
|
337 |
</div>
|
@@ -376,7 +387,7 @@ class HT_CTC_Admin_Woo_Page {
|
|
376 |
<option value="99" <?= $woo_shop_style == 99 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-99 (Add your own image / GIF)', 'click-to-chat-for-whatsapp' ); ?></option>
|
377 |
</select>
|
378 |
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/list-of-styles/?utm_source=ctc&utm_medium=admin&utm_campaign=woo"><?php _e( 'List of Styles', 'click-to-chat-for-whatsapp' ); ?></a>   |   <span><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize the styles</a></span> </p>
|
379 |
-
<p class="description">Recommended Styles: 1, 8</p>
|
380 |
</div>
|
381 |
</div>
|
382 |
|
@@ -411,7 +422,17 @@ class HT_CTC_Admin_Woo_Page {
|
|
411 |
$shop_page_id = wc_get_page_id( 'cart' );
|
412 |
$shop_admin_url = "${admin_url}post.php?post=${shop_page_id}&action=edit";
|
413 |
?>
|
414 |
-
<p class="description">Cart Page <a target="_blank" href="<?= $shop_admin_url ?>">Edit </a> -> Settings Icon - At the right Sidebar 'Click to Chat' metabox
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
<?php
|
416 |
}
|
417 |
?>
|
@@ -433,7 +454,17 @@ class HT_CTC_Admin_Woo_Page {
|
|
433 |
$shop_page_id = wc_get_page_id( 'checkout' );
|
434 |
$shop_admin_url = "${admin_url}post.php?post=${shop_page_id}&action=edit";
|
435 |
?>
|
436 |
-
<p class="description">Checkout Page <a target="_blank" href="<?= $shop_admin_url ?>">Edit </a> -> Settings Icon - At the right Sidebar 'Click to Chat' metabox
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
<?php
|
438 |
}
|
439 |
?>
|
@@ -456,7 +487,20 @@ class HT_CTC_Admin_Woo_Page {
|
|
456 |
$shop_page_id = wc_get_page_id( 'myaccount' );
|
457 |
$shop_admin_url = "${admin_url}post.php?post=${shop_page_id}&action=edit";
|
458 |
?>
|
459 |
-
<p class="description">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
460 |
<?php
|
461 |
}
|
462 |
?>
|
86 |
// WooCommerce chat feautes
|
87 |
register_setting( 'ht_ctc_woo_page_settings_fields', 'ht_ctc_woo_options' , array( $this, 'options_sanitize' ) );
|
88 |
|
89 |
+
// if ( isset($_GET) && isset($_GET['page']) && 'click-to-chat-woocommerce' == $_GET['page'] ) {
|
90 |
add_settings_section( 'ht_ctc_woo_page_settings_sections_add', '', array( $this, 'chat_settings_section_cb' ), 'ht_ctc_woo_page_settings_sections_do' );
|
91 |
add_settings_field( 'ctc_woocommerce', __( 'WooCommerce', 'click-to-chat-for-whatsapp'), array( $this, 'ctc_woocommerce_cb' ), 'ht_ctc_woo_page_settings_sections_do', 'ht_ctc_woo_page_settings_sections_add' );
|
92 |
// }
|
242 |
<option value="99" <?= $woo_style == 99 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-99 (Add your own image / GIF)', 'click-to-chat-for-whatsapp' ); ?></option>
|
243 |
</select>
|
244 |
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/list-of-styles/?utm_source=ctc&utm_medium=admin&utm_campaign=woo"><?php _e( 'List of Styles', 'click-to-chat-for-whatsapp' ); ?></a>   |   <span><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize the styles</a></span> </p>
|
245 |
+
<p class="description"><strong>Recommended Styles: 1, 8</strong></p>
|
246 |
</div>
|
247 |
</div>
|
248 |
|
318 |
$shop_admin_url = "${admin_url}post.php?post=${shop_page_id}&action=edit";
|
319 |
?>
|
320 |
<p class="description">Shop Page <a target="_blank" href="<?= $shop_admin_url ?>">Edit </a> -> Settings Icon - At the right Sidebar 'Click to Chat' metabox - <a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/">Page Level Settings</a></p>
|
321 |
+
<br>
|
322 |
<?php
|
323 |
}
|
324 |
?>
|
325 |
+
<p class="description">
|
326 |
+
<strong>Change values for Cart Page:</strong> <br>
|
327 |
+
Number <br>
|
328 |
+
Call to Action <br>
|
329 |
+
Prefilled Message <br>
|
330 |
+
Time Delay (PRO) <br>
|
331 |
+
Scroll Delay (PRO) <br>
|
332 |
+
Style (PRO) <br>
|
333 |
+
<a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/">Page Level Settings</a>
|
334 |
+
</p>
|
335 |
+
<br><br>
|
336 |
|
337 |
<!-- At WooCommerce shop pages, loop.. -->
|
338 |
<div class="row">
|
342 |
<div class="input-field col s6">
|
343 |
<label>
|
344 |
<input name="<?= $dbrow; ?>[woo_shop_add_whatsapp]" type="checkbox" value="1" <?php checked( $woo_shop_add_whatsapp, 1 ); ?> id="woo_shop_add_whatsapp" />
|
345 |
+
<span><?php _e( "Add WhatsApp at Products Archive, Shop Page", 'click-to-chat-for-whatsapp' ); ?></span>
|
346 |
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/whatsapp-chat-in-woocommerce-shop-page/">more info</a></p>
|
347 |
</label>
|
348 |
</div>
|
387 |
<option value="99" <?= $woo_shop_style == 99 ? 'SELECTED' : ''; ?> ><?php _e( 'Style-99 (Add your own image / GIF)', 'click-to-chat-for-whatsapp' ); ?></option>
|
388 |
</select>
|
389 |
<p class="description"><a target="_blank" href="https://holithemes.com/plugins/click-to-chat/list-of-styles/?utm_source=ctc&utm_medium=admin&utm_campaign=woo"><?php _e( 'List of Styles', 'click-to-chat-for-whatsapp' ); ?></a>   |   <span><a target="_blank" href="<?= admin_url( 'admin.php?page=click-to-chat-customize-styles' ); ?>">Customize the styles</a></span> </p>
|
390 |
+
<p class="description"><b>Recommended Styles: 1, 8</b></p>
|
391 |
</div>
|
392 |
</div>
|
393 |
|
422 |
$shop_page_id = wc_get_page_id( 'cart' );
|
423 |
$shop_admin_url = "${admin_url}post.php?post=${shop_page_id}&action=edit";
|
424 |
?>
|
425 |
+
<p class="description">Cart Page <a target="_blank" href="<?= $shop_admin_url ?>">Edit </a> -> Settings Icon - At the right Sidebar 'Click to Chat' metabox</p><br>
|
426 |
+
<p class="description">
|
427 |
+
<strong>Change values for Cart Page:</strong> <br>
|
428 |
+
Number <br>
|
429 |
+
Call to Action <br>
|
430 |
+
Prefilled Message <br>
|
431 |
+
Time Delay (PRO) <br>
|
432 |
+
Scroll Delay (PRO) <br>
|
433 |
+
Style (PRO) <br>
|
434 |
+
<a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/">Page Level Settings</a>
|
435 |
+
</p>
|
436 |
<?php
|
437 |
}
|
438 |
?>
|
454 |
$shop_page_id = wc_get_page_id( 'checkout' );
|
455 |
$shop_admin_url = "${admin_url}post.php?post=${shop_page_id}&action=edit";
|
456 |
?>
|
457 |
+
<p class="description">Checkout Page <a target="_blank" href="<?= $shop_admin_url ?>">Edit </a> -> Settings Icon - At the right Sidebar 'Click to Chat' metabox</p><br>
|
458 |
+
<p class="description">
|
459 |
+
<strong>Change values for Cart Page:</strong> <br>
|
460 |
+
Number <br>
|
461 |
+
Call to Action <br>
|
462 |
+
Prefilled Message <br>
|
463 |
+
Time Delay (PRO) <br>
|
464 |
+
Scroll Delay (PRO) <br>
|
465 |
+
Style (PRO) <br>
|
466 |
+
<a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/">Page Level Settings</a>
|
467 |
+
</p>
|
468 |
<?php
|
469 |
}
|
470 |
?>
|
487 |
$shop_page_id = wc_get_page_id( 'myaccount' );
|
488 |
$shop_admin_url = "${admin_url}post.php?post=${shop_page_id}&action=edit";
|
489 |
?>
|
490 |
+
<!-- <p class="description">
|
491 |
+
<strong>Change values for My Account Page</strong>: Number, Call to Action, Prefilled Message, Time Delay (PRO), Scroll Delay (PRO), Style (PRO)
|
492 |
+
</p><br> -->
|
493 |
+
<p class="description">My Account Page <a target="_blank" href="<?= $shop_admin_url ?>">Edit </a> -> Settings Icon - At the right Sidebar 'Click to Chat' metabox </p><br>
|
494 |
+
<p class="description">
|
495 |
+
<strong>Change values for Cart Page:</strong> <br>
|
496 |
+
Number <br>
|
497 |
+
Call to Action <br>
|
498 |
+
Prefilled Message <br>
|
499 |
+
Time Delay (PRO) <br>
|
500 |
+
Scroll Delay (PRO) <br>
|
501 |
+
Style (PRO) <br>
|
502 |
+
<a target="_blank" href="https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/">Page Level Settings</a>
|
503 |
+
</p>
|
504 |
<?php
|
505 |
}
|
506 |
?>
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Click to Chat ===
|
2 |
Requires at least: 4.6
|
3 |
-
Tested up to: 5.8.
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
-
Stable tag: 3.5.
|
7 |
Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, WhatsApp WooCommerce, 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
|
@@ -95,7 +95,6 @@ Additional variables, specific to WooCommerce single product page to change valu
|
|
95 |
**{regular_price}** -> Regular product price (with out any sale)
|
96 |
**{sku}** -> Stock keeping unit
|
97 |
|
98 |
-
[Add WhatsApp Icon/Button in WooCommerce Product pages](https://holithemes.com/plugins/click-to-chat/add-whatsapp-in-woocommerce-single-product-pages/)
|
99 |
|
100 |
* After product summary
|
101 |
|
@@ -111,6 +110,8 @@ In PRO: multiple positions are available
|
|
111 |
* After Add to Cart Form
|
112 |
* After Product
|
113 |
|
|
|
|
|
114 |
== WooCommerce Shop Page ==
|
115 |
|
116 |
Add WhatsApp button/icon at WooCommerce Products list (shop page, related products list)
|
@@ -126,6 +127,9 @@ At page level we can overwrite the settings. Each post we can add different What
|
|
126 |
* Call to Action
|
127 |
* Pre-filled Message
|
128 |
* Display Settings
|
|
|
|
|
|
|
129 |
|
130 |
[Page level settings](https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/?utm_source=wp&utm_medium=readme&utm_campaign=ht)
|
131 |
|
@@ -164,7 +168,7 @@ Connect other applications using Integarate, Automation tools like Zapier, IFTTT
|
|
164 |
* Absolute: Fixed position to the body content. (Moves when user scrolls the page)
|
165 |
* Time Dealy - Display after some time dealy
|
166 |
* Scroll Action - Display after user scroll the page of given percentage
|
167 |
-
* Page level settings - Change styles.
|
168 |
* WooCommerce
|
169 |
* Mulitple position to add WhatsApp in product pages.
|
170 |
|
@@ -465,6 +469,10 @@ After Activate the plugin, add WhatsApp Number at plugin settings.
|
|
465 |
|
466 |
== Changelog ==
|
467 |
|
|
|
|
|
|
|
|
|
468 |
= 3.5.2 =
|
469 |
* New: z-Index settings
|
470 |
* Enchantment: Admin settings.
|
1 |
=== Click to Chat ===
|
2 |
Requires at least: 4.6
|
3 |
+
Tested up to: 5.8.2
|
4 |
Requires PHP: 5.6
|
5 |
Contributors: holithemes
|
6 |
+
Stable tag: 3.5.3
|
7 |
Tags: whatsapp, whatsapp business, click to chat, whatsapp chat, whatsapp support, whatsapp group, whatsapp message, WhatsApp WooCommerce, 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
|
95 |
**{regular_price}** -> Regular product price (with out any sale)
|
96 |
**{sku}** -> Stock keeping unit
|
97 |
|
|
|
98 |
|
99 |
* After product summary
|
100 |
|
110 |
* After Add to Cart Form
|
111 |
* After Product
|
112 |
|
113 |
+
[Add WhatsApp Icon/Button in WooCommerce Product pages](https://holithemes.com/plugins/click-to-chat/add-whatsapp-in-woocommerce-single-product-pages/)
|
114 |
+
|
115 |
== WooCommerce Shop Page ==
|
116 |
|
117 |
Add WhatsApp button/icon at WooCommerce Products list (shop page, related products list)
|
127 |
* Call to Action
|
128 |
* Pre-filled Message
|
129 |
* Display Settings
|
130 |
+
* Styles (pro)
|
131 |
+
* Time Dealy (pro)
|
132 |
+
* Scroll Dealy (pro)
|
133 |
|
134 |
[Page level settings](https://holithemes.com/plugins/click-to-chat/change-values-at-page-level/?utm_source=wp&utm_medium=readme&utm_campaign=ht)
|
135 |
|
168 |
* Absolute: Fixed position to the body content. (Moves when user scrolls the page)
|
169 |
* Time Dealy - Display after some time dealy
|
170 |
* Scroll Action - Display after user scroll the page of given percentage
|
171 |
+
* Page level settings - Change styles, time, scroll delay.
|
172 |
* WooCommerce
|
173 |
* Mulitple position to add WhatsApp in product pages.
|
174 |
|
469 |
|
470 |
== Changelog ==
|
471 |
|
472 |
+
= 3.5.3 =
|
473 |
+
* New: Display settings for WooCommerce Thank you page
|
474 |
+
* Fix: Display based on Category settings not found issue
|
475 |
+
|
476 |
= 3.5.2 =
|
477 |
* New: z-Index settings
|
478 |
* Enchantment: Admin settings.
|