WhatsApp me - Version 4.1.1

Version Description

  • FIX error on prices with '$'
Download this release

Release Info

Developer creapuntome
Plugin Icon 128x128 WhatsApp me
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1.0 to 4.1.1

Files changed (3) hide show
  1. README.txt +15 -11
  2. joinchat.php +2 -2
  3. public/class-joinchat-woopublic.php +4 -1
README.txt CHANGED
@@ -5,7 +5,7 @@ Tags: whatsapp business, whatsapp, click to chat, button, whatsapp support chat,
5
  Requires at least: 3.0.1
6
  Tested up to: 5.5
7
  Requires PHP: 5.3
8
- Stable tag: 4.1.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -15,7 +15,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
 
16
  ### 💬 Connect your WordPress to WhatsApp in one click.
17
 
18
- > The best WhatsApp plugin for WordPress, with almost 300,000 installations worldwide.
19
 
20
  [Documentation](https://join.chat/en/docs/?utm_source=wporg&utm_medium=web&utm_campaign=v4_1) | [Add-ons](https://join.chat/en/addons/?utm_source=wporg&utm_medium=web&utm_campaign=v4_1) | [Support](https://join.chat/en/support/?utm_source=wporg&utm_medium=web&utm_campaign=v4_1)
21
 
@@ -42,20 +42,20 @@ Define CTAs and Custom Messages for product pages and for products on sale.
42
  #### 🃏 Dynamic Variables.
43
  Use variables in your CTAs and messages that change dynamically for each page:
44
 
45
- `{SITE}` ➡ Website title<br>
46
- `{TITLE}` ➡ Current page url<br>
47
- `{URL}` ➡ Current page url<br>
48
- `{PRODUCT}` ➡ Product name (WooCommerce)<br>
49
- `{SKU}` ➡ Product SKU (WooCommerce)<br>
50
- `{REGULAR}` ➡ Product regular price (WooCommerce)<br>
51
- `{PRICE}` ➡ Product current price (WooCommerce)<br>
52
- `{DISCOUNT}` ➡ Product percent discount when is on sale (WooCommerce)<br>
53
 
54
  #### 📈 Integration with Google Analytics, Google Tag Manager and Facebook Pixel.
55
  Join.chat sends the event automatically when the user opens WhatsApp. You can also create your custom events capturing `$(document).on('joinchat:open')`. [Read more](https://join.chat/en/joinchat-measures-whatsapp-events-in-google-analytics/)
56
 
57
  #### 💱 Multi-Language Support.
58
- To be able to support all your users, wherever they are. Our plugin is **compatible with WPML and Polylang**.
59
 
60
  #### 🌈 Theme Colors & 🌚 Dark Mode.
61
  You choose a color and we customize the entire visual theme of the widget. With Dark Mode display the chat window with dark colors and white text. From settings you can activate it or leave it automatic and detects devices' configuration.
@@ -190,9 +190,13 @@ There is a Javascript event that Join.chat triggers automatically before launch
190
  3. General settings
191
  4. Visibility settings
192
  5. WooCommerce settings
 
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 4.1 =
197
  * **NEW:** Use custom text on chat window header
198
  * Added 'joinchat_app' class trigger that opens WhatsApp
5
  Requires at least: 3.0.1
6
  Tested up to: 5.5
7
  Requires PHP: 5.3
8
+ Stable tag: 4.1.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
15
 
16
  ### 💬 Connect your WordPress to WhatsApp in one click.
17
 
18
+ > The best WordPress plugin for WhatsApp, with more than 300,000 installations worldwide.
19
 
20
  [Documentation](https://join.chat/en/docs/?utm_source=wporg&utm_medium=web&utm_campaign=v4_1) | [Add-ons](https://join.chat/en/addons/?utm_source=wporg&utm_medium=web&utm_campaign=v4_1) | [Support](https://join.chat/en/support/?utm_source=wporg&utm_medium=web&utm_campaign=v4_1)
21
 
42
  #### 🃏 Dynamic Variables.
43
  Use variables in your CTAs and messages that change dynamically for each page:
44
 
45
+ **{SITE}** ➡ Website title
46
+ **{TITLE}** ➡ Current page title
47
+ **{URL}** ➡ Current page url
48
+ **{PRODUCT}** ➡ Product name (WooCommerce)
49
+ **{SKU}** ➡ Product SKU (WooCommerce)
50
+ **{REGULAR}** ➡ Product regular price (WooCommerce)
51
+ **{PRICE}** ➡ Product current price (WooCommerce)
52
+ **{DISCOUNT}** ➡ Product percent discount when is on sale (WooCommerce)
53
 
54
  #### 📈 Integration with Google Analytics, Google Tag Manager and Facebook Pixel.
55
  Join.chat sends the event automatically when the user opens WhatsApp. You can also create your custom events capturing `$(document).on('joinchat:open')`. [Read more](https://join.chat/en/joinchat-measures-whatsapp-events-in-google-analytics/)
56
 
57
  #### 💱 Multi-Language Support.
58
+ To be able to support all your users, wherever they are. Our plugin is **compatible with WPML and Polylang** and also **RTL languages** are supported.
59
 
60
  #### 🌈 Theme Colors & 🌚 Dark Mode.
61
  You choose a color and we customize the entire visual theme of the widget. With Dark Mode display the chat window with dark colors and white text. From settings you can activate it or leave it automatic and detects devices' configuration.
190
  3. General settings
191
  4. Visibility settings
192
  5. WooCommerce settings
193
+ 6. Page settings
194
 
195
  == Changelog ==
196
 
197
+ = 4.1.1 =
198
+ * FIX error on prices with '$'
199
+
200
  = 4.1 =
201
  * **NEW:** Use custom text on chat window header
202
  * Added 'joinchat_app' class trigger that opens WhatsApp
joinchat.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: Join.chat
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.1.0
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
27
  * Currently plugin version.
28
  * Start at version 1.0.0 and use SemVer - https://semver.org
29
  */
30
- define( 'JOINCHAT_VERSION', '4.1.0' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,
9
  * Plugin Name: Join.chat
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.1.1
13
  * Author: Creame
14
  * Author URI: https://crea.me
15
  * License: GPL-2.0+
27
  * Currently plugin version.
28
  * Start at version 1.0.0 and use SemVer - https://semver.org
29
  */
30
+ define( 'JOINCHAT_VERSION', '4.1.1' );
31
 
32
  /**
33
  * The core plugin class that is used to define internationalization,
public/class-joinchat-woopublic.php CHANGED
@@ -184,7 +184,10 @@ class JoinChatWooPublic {
184
  */
185
  public function format_price( $product, $price ) {
186
 
187
- return strip_tags( wc_price( wc_get_price_to_display( $product, array( 'price' => $price ) ) ) );
 
 
 
188
 
189
  }
190
 
184
  */
185
  public function format_price( $product, $price ) {
186
 
187
+ $string = strip_tags( wc_price( wc_get_price_to_display( $product, array( 'price' => $price ) ) ) );
188
+
189
+ // Escape $ for regex replacement
190
+ return str_replace( '$', '\$', $string );
191
 
192
  }
193