WhatsApp me - Version 4.5.9

Version Description

  • FIX Product Button should not appear on related products.
Download this release

Release Info

Developer pacotole
Plugin Icon 128x128 WhatsApp me
Version 4.5.9
Comparing to
See all releases

Code changes from version 4.5.8 to 4.5.9

README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: Chat, Click to Chat, Facebook Messenger, WhatsApp, Telegram, Whatsapp Busi
5
  Requires at least: 4.4.0
6
  Tested up to: 6.0
7
  Requires PHP: 5.5
8
- Stable tag: 4.5.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -355,6 +355,9 @@ Joinchat save two localStorage variables for proper operation:
355
 
356
  == Changelog ==
357
 
 
 
 
358
  = 4.5.8 =
359
  * Unify all occurrences of the plugin name to "Joinchat".
360
 
5
  Requires at least: 4.4.0
6
  Tested up to: 6.0
7
  Requires PHP: 5.5
8
+ Stable tag: 4.5.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
355
 
356
  == Changelog ==
357
 
358
+ = 4.5.9 =
359
+ * FIX Product Button should not appear on related products.
360
+
361
  = 4.5.8 =
362
  * Unify all occurrences of the plugin name to "Joinchat".
363
 
admin/class-joinchat-admin-page.php CHANGED
@@ -443,7 +443,7 @@ class JoinChatAdminPage {
443
  switch ( $field_id ) {
444
  case 'telephone':
445
  $output = '<input id="joinchat_phone" ' . ( $this->common->intltel ? 'data-' : '' ) . 'name="joinchat[telephone]" value="' . esc_attr( $value ) . '" type="text" style="width:15em;display:inline-block"> ' .
446
- '<input id="joinchat_phone_test" type="button" value="' . esc_attr__( 'Test Number', 'creame-whatsapp-me' ) . '" class="button" ' . ( empty( $value ) ? 'disabled' : '') . '>' .
447
  '<p class="description">' . __( "Contact phone number <strong>(the button will not be shown if it's empty)</strong>", 'creame-whatsapp-me' ) . '</p>' .
448
  '<p class="joinchat-addon">' . sprintf(
449
  /* translators: 1: Random Phone link, 2: Support Agents link. */
443
  switch ( $field_id ) {
444
  case 'telephone':
445
  $output = '<input id="joinchat_phone" ' . ( $this->common->intltel ? 'data-' : '' ) . 'name="joinchat[telephone]" value="' . esc_attr( $value ) . '" type="text" style="width:15em;display:inline-block"> ' .
446
+ '<input id="joinchat_phone_test" type="button" value="' . esc_attr__( 'Test Number', 'creame-whatsapp-me' ) . '" class="button" ' . ( empty( $value ) ? 'disabled' : '' ) . '>' .
447
  '<p class="description">' . __( "Contact phone number <strong>(the button will not be shown if it's empty)</strong>", 'creame-whatsapp-me' ) . '</p>' .
448
  '<p class="joinchat-addon">' . sprintf(
449
  /* translators: 1: Random Phone link, 2: Support Agents link. */
joinchat.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: Joinchat
10
  * Plugin URI: https://join.chat
11
  * Description: Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
12
- * Version: 4.5.8
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
26
  /**
27
  * Define constants.
28
  */
29
- define( 'JOINCHAT_VERSION', '4.5.8' );
30
  define( 'JOINCHAT_FILE', __FILE__ );
31
  define( 'JOINCHAT_DIR', plugin_dir_path( JOINCHAT_FILE ) );
32
  define( 'JOINCHAT_BASENAME', plugin_basename( JOINCHAT_FILE ) );
9
  * Plugin Name: Joinchat
10
  * Plugin URI: https://join.chat
11
  * Description: Connects a WordPress chat with WhatsApp. The best solution for marketing and support. Stop losing customers and increase your sales.
12
+ * Version: 4.5.9
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
26
  /**
27
  * Define constants.
28
  */
29
+ define( 'JOINCHAT_VERSION', '4.5.9' );
30
  define( 'JOINCHAT_FILE', __FILE__ );
31
  define( 'JOINCHAT_DIR', plugin_dir_path( JOINCHAT_FILE ) );
32
  define( 'JOINCHAT_BASENAME', plugin_basename( JOINCHAT_FILE ) );
languages/creame-whatsapp-me.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Joinchat 4.5.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/creame-whatsapp-me\n"
7
  "Last-Translator: Pacotoleo <pacotole@crea.me>\n"
8
  "Language-Team: Creame <hola@crea.me>\n"
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Joinchat 4.5.9\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/creame-whatsapp-me\n"
7
  "Last-Translator: Pacotoleo <pacotole@crea.me>\n"
8
  "Language-Team: Creame <hola@crea.me>\n"
public/class-joinchat-woo-public.php CHANGED
@@ -325,6 +325,11 @@ class JoinChatWooPublic {
325
  */
326
  public function product_button() {
327
 
 
 
 
 
 
328
  $this->btn_show = true;
329
 
330
  echo '<div class="joinchat__woo-btn__wrapper"><div class="joinchat__woo-btn joinchat_app">' . esc_html( $this->btn_text ) . '</div></div>';
325
  */
326
  public function product_button() {
327
 
328
+ // Only for main single product.
329
+ if ( '' !== wc_get_loop_prop( 'name' ) ) {
330
+ return;
331
+ }
332
+
333
  $this->btn_show = true;
334
 
335
  echo '<div class="joinchat__woo-btn__wrapper"><div class="joinchat__woo-btn joinchat_app">' . esc_html( $this->btn_text ) . '</div></div>';