Booster for WooCommerce - Version 5.5.4

Version Description

28/02/2022 = * Fix - PRODUCTS-Product Addons-Fixed Quantity issue with PHP 8.0 * Fix - PRICES & CURRENCIES-Global Discount-Fixed issue with showing discounted price on product page for PHP 8.0. * Fix - PAYMENT GATEWAYS-Gateways Fees and Discounts-Changed transalation text for WPML. * Fix - PRODUCTS-Product Price by Formula-Change transalation text for WPML. * WooCommerce 6.2.1 tested * WordPress 5.9.1 tested

Download this release

Release Info

Developer ronyp
Plugin Icon 128x128 Booster for WooCommerce
Version 5.5.4
Comparing to
See all releases

Code changes from version 5.5.1 to 5.5.4

includes/class-wcj-global-discount.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Booster for WooCommerce - Module - Global Discount
4
  *
5
- * @version 5.3.8
6
  * @since 2.5.7
7
  * @author Pluggabl LLC.
8
  */
@@ -373,7 +373,7 @@ class WCJ_Global_Discount extends WCJ_Module {
373
  if ( ! $this->check_if_applicable_by_product_scope( $_product, $price, $price_type, wcj_get_option( 'wcj_global_discount_sale_product_scope_' . $i, 'all' ) ) ) {
374
  continue; // no changes by current discount group
375
  }
376
- if ( 'sale_price' === $price_type && 0 == $price ) {
377
  $price = $_product->get_regular_price();
378
  }
379
  return $this->calculate_price( $price, $coefficient, $i ); // discount applied
@@ -430,4 +430,4 @@ class WCJ_Global_Discount extends WCJ_Module {
430
 
431
  endif;
432
 
433
- return new WCJ_Global_Discount();
2
  /**
3
  * Booster for WooCommerce - Module - Global Discount
4
  *
5
+ * @version 5.5.4
6
  * @since 2.5.7
7
  * @author Pluggabl LLC.
8
  */
373
  if ( ! $this->check_if_applicable_by_product_scope( $_product, $price, $price_type, wcj_get_option( 'wcj_global_discount_sale_product_scope_' . $i, 'all' ) ) ) {
374
  continue; // no changes by current discount group
375
  }
376
+ if ( 'sale_price' === $price_type && 0 == (int)$price ) {
377
  $price = $_product->get_regular_price();
378
  }
379
  return $this->calculate_price( $price, $coefficient, $i ); // discount applied
430
 
431
  endif;
432
 
433
+ return new WCJ_Global_Discount();
includes/class-wcj-product-addons.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Booster for WooCommerce - Module - Product Addons
4
  *
5
- * @version 5.4.0
6
  * @since 2.5.3
7
  * @author Pluggabl LLC.
8
  * @todo admin order view (names)
@@ -421,13 +421,14 @@ class WCJ_Product_Addons extends WCJ_Module {
421
  /**
422
  * get_product_addons.
423
  *
424
- * @version 4.6.1
425
  * @since 2.5.3
426
  * @todo (maybe) `checkbox_key` is mislabelled, should be `key` (or maybe `value_key`)
427
  */
428
  function get_product_addons( $product_id ) {
429
  $addons = array();
430
  // All Products
 
431
  if ( 'yes' === wcj_get_option( 'wcj_product_addons_all_products_enabled', 'no' ) ) {
432
  $total_number = apply_filters( 'booster_option', 1, wcj_get_option( 'wcj_product_addons_all_products_total_number', 1 ) );
433
  for ( $i = 1; $i <= $total_number; $i++ ) {
@@ -435,7 +436,7 @@ class WCJ_Product_Addons extends WCJ_Module {
435
  if ( ! $this->is_global_addon_visible( $i, $product_id ) ) {
436
  continue;
437
  }
438
- if ( '0' === ( $qty = wcj_get_option( 'wcj_product_addons_all_products_qty_' . $i, '' ) ) || $qty < 0 ) {
439
  continue;
440
  }
441
  $addons[] = array(
@@ -465,7 +466,7 @@ class WCJ_Product_Addons extends WCJ_Module {
465
  $total_number = get_post_meta( $product_id, '_' . 'wcj_product_addons_per_product_total_number', true );
466
  for ( $i = 1; $i <= $total_number; $i++ ) {
467
  if ( 'yes' === get_post_meta( $product_id, '_' . 'wcj_product_addons_per_product_enabled_' . $i, true ) ) {
468
- if ( '0' === ( $qty = get_post_meta( $product_id, '_' . 'wcj_product_addons_per_product_qty_' . $i, true ) ) || $qty < 0 ) {
469
  continue;
470
  }
471
  $addons[] = array(
@@ -860,4 +861,4 @@ class WCJ_Product_Addons extends WCJ_Module {
860
 
861
  endif;
862
 
863
- return new WCJ_Product_Addons();
2
  /**
3
  * Booster for WooCommerce - Module - Product Addons
4
  *
5
+ * @version 5.5.4
6
  * @since 2.5.3
7
  * @author Pluggabl LLC.
8
  * @todo admin order view (names)
421
  /**
422
  * get_product_addons.
423
  *
424
+ * @version 5.5.4
425
  * @since 2.5.3
426
  * @todo (maybe) `checkbox_key` is mislabelled, should be `key` (or maybe `value_key`)
427
  */
428
  function get_product_addons( $product_id ) {
429
  $addons = array();
430
  // All Products
431
+ $var=get_post_meta($product_id,'wcj_product_addons_per_product_qty_');
432
  if ( 'yes' === wcj_get_option( 'wcj_product_addons_all_products_enabled', 'no' ) ) {
433
  $total_number = apply_filters( 'booster_option', 1, wcj_get_option( 'wcj_product_addons_all_products_total_number', 1 ) );
434
  for ( $i = 1; $i <= $total_number; $i++ ) {
436
  if ( ! $this->is_global_addon_visible( $i, $product_id ) ) {
437
  continue;
438
  }
439
+ if ( '0' === ( $qty = wcj_get_option( 'wcj_product_addons_all_products_qty_' . $i, '' ) ) || $qty > $var ) {
440
  continue;
441
  }
442
  $addons[] = array(
466
  $total_number = get_post_meta( $product_id, '_' . 'wcj_product_addons_per_product_total_number', true );
467
  for ( $i = 1; $i <= $total_number; $i++ ) {
468
  if ( 'yes' === get_post_meta( $product_id, '_' . 'wcj_product_addons_per_product_enabled_' . $i, true ) ) {
469
+ if ( '0' === ( $qty = get_post_meta( $product_id, '_' . 'wcj_product_addons_per_product_qty_' . $i, true ) ) || $qty > $var ) {
470
  continue;
471
  }
472
  $addons[] = array(
861
 
862
  endif;
863
 
864
+ return new WCJ_Product_Addons();
includes/settings/wcj-settings-payment-gateways-fees.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Booster for WooCommerce - Settings - Gateways Fees and Discounts
5
  *
6
- * @version 5.4.8
7
  * @since 2.8.0
8
  * @author Pluggabl LLC.
9
  */
@@ -29,7 +29,7 @@ $settings = array(
29
  array(
30
  'title' => __('Enable klarna Payment Gateway Charge/Discount', 'woocommerce-jetpack'),
31
  'desc' => __('Enable', 'woocommerce-jetpack'),
32
- 'desc_tip' => sprintf(__('If you enable this mode so add Klarna payment gateway charge/discount into your cart total') . '<br />' . __('If you have not klarna plugin install first <a href="https://wordpress.org/plugins/klarna-payments-for-woocommerce/">Payments</a> page', 'woocommerce-jetpack')),
33
  'type' => 'checkbox',
34
  'default' => 'no',
35
  'id' => "wcj_enable_payment_gateway_charge_discount",
@@ -168,4 +168,4 @@ foreach ($available_gateways as $key => $gateway) {
168
  ),
169
  ));
170
  }
171
- return $settings;
3
  /**
4
  * Booster for WooCommerce - Settings - Gateways Fees and Discounts
5
  *
6
+ * @version 5.5.4
7
  * @since 2.8.0
8
  * @author Pluggabl LLC.
9
  */
29
  array(
30
  'title' => __('Enable klarna Payment Gateway Charge/Discount', 'woocommerce-jetpack'),
31
  'desc' => __('Enable', 'woocommerce-jetpack'),
32
+ 'desc_tip' => sprintf(__('If you enable this mode so add Klarna payment gateway charge/discount into your cart total') . '<br />' . __('If you do not have the Klarna plugin installed first<a href="https://wordpress.org/plugins/klarna-payments-for-woocommerce/">Payments</a>', 'woocommerce-jetpack')),
33
  'type' => 'checkbox',
34
  'default' => 'no',
35
  'id' => "wcj_enable_payment_gateway_charge_discount",
168
  ),
169
  ));
170
  }
171
+ return $settings;
includes/settings/wcj-settings-product-price-by-formula.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Booster for WooCommerce - Settings - Product Price by Formula
4
  *
5
- * @version 5.4.7
6
  * @since 2.8.1
7
  * @author Pluggabl LLC.
8
  */
@@ -91,7 +91,7 @@ $settings = array_merge( $settings, array(
91
  array(
92
  'title' => __( 'Promotional pricing issue', 'woocommerce-jetpack' ),
93
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
94
- 'desc_tip' => __( "If you are facing promotional pricing issue in booking product then enable the section", 'woocommerce-jetpack' ) . '<br />',
95
  'type' => 'checkbox',
96
  'id' => 'wcj_product_price_by_formula_woo_booking_promotional',
97
  'default' => 'no',
@@ -143,4 +143,4 @@ $settings = array_merge( $settings, array(
143
  'id' => 'wcj_product_price_by_formula_advanced_options',
144
  ),
145
  ) );
146
- return $settings;
2
  /**
3
  * Booster for WooCommerce - Settings - Product Price by Formula
4
  *
5
+ * @version 5.5.4
6
  * @since 2.8.1
7
  * @author Pluggabl LLC.
8
  */
91
  array(
92
  'title' => __( 'Promotional pricing issue', 'woocommerce-jetpack' ),
93
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
94
+ 'desc_tip' => __( "If you are facing a promotional pricing issue in booking products then enable the section", 'woocommerce-jetpack' ) . '<br />',
95
  'type' => 'checkbox',
96
  'id' => 'wcj_product_price_by_formula_woo_booking_promotional',
97
  'default' => 'no',
143
  'id' => 'wcj_product_price_by_formula_advanced_options',
144
  ),
145
  ) );
146
+ return $settings;
langs/woocommerce-jetpack.pot CHANGED
@@ -9,9 +9,9 @@ msgstr ""
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 3.0\n"
13
- "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 
15
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
  "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
17
  "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;eschtml_e;esc_html_x:1,2c;"
@@ -15075,8 +15075,8 @@ msgstr ""
15075
 
15076
  #: includes/settings/wcj-settings-payment-gateways-fees.php:32
15077
  msgid ""
15078
- "If you have not klarna plugin install first <a href=\"https://wordpress.org/"
15079
- "plugins/klarna-payments-for-woocommerce/\">Payments</a> page"
15080
  msgstr ""
15081
 
15082
  #: includes/settings/wcj-settings-payment-gateways-fees.php:52
@@ -18151,8 +18151,8 @@ msgstr ""
18151
 
18152
  #: includes/settings/wcj-settings-product-price-by-formula.php:94
18153
  msgid ""
18154
- "If you are facing promotional pricing issue in booking product then enable "
18155
- "the section"
18156
  msgstr ""
18157
 
18158
  #: includes/settings/wcj-settings-product-price-by-formula.php:100
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
 
 
12
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
+ "X-Generator: Poedit 3.0.1\n"
14
+ "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
  "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
17
  "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;eschtml_e;esc_html_x:1,2c;"
15075
 
15076
  #: includes/settings/wcj-settings-payment-gateways-fees.php:32
15077
  msgid ""
15078
+ "If you do not have the Klarna plugin installed first<a href=\"https://"
15079
+ "wordpress.org/plugins/klarna-payments-for-woocommerce/\">Payments</a>"
15080
  msgstr ""
15081
 
15082
  #: includes/settings/wcj-settings-payment-gateways-fees.php:52
18151
 
18152
  #: includes/settings/wcj-settings-product-price-by-formula.php:94
18153
  msgid ""
18154
+ "If you are facing a promotional pricing issue in booking products then "
18155
+ "enable the section"
18156
  msgstr ""
18157
 
18158
  #: includes/settings/wcj-settings-product-price-by-formula.php:100
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: anbinder, karzin, pluggabl
3
  Tags: woocommerce customization, woocommerce bundle, woocommerce product addon, woocommerce integration, ecommerce plugin
4
  Requires at least: 4.4
5
- Tested up to: 5.9
6
  Requires PHP: 5.6
7
- Stable tag: 5.5.1
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -265,6 +265,14 @@ To unlock all Booster for WooCommerce features, please install additional paid B
265
 
266
  == Changelog ==
267
 
 
 
 
 
 
 
 
 
268
  = 5.5.1 31/01/2022 =
269
  * WooCommerce 6.1.1 tested
270
  * WordPress 5.9 tested
2
  Contributors: anbinder, karzin, pluggabl
3
  Tags: woocommerce customization, woocommerce bundle, woocommerce product addon, woocommerce integration, ecommerce plugin
4
  Requires at least: 4.4
5
+ Tested up to: 5.9.1
6
  Requires PHP: 5.6
7
+ Stable tag: 5.5.4
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
265
 
266
  == Changelog ==
267
 
268
+ = 5.5.4 28/02/2022 =
269
+ * Fix - PRODUCTS-Product Addons-Fixed Quantity issue with PHP 8.0
270
+ * Fix - PRICES & CURRENCIES-Global Discount-Fixed issue with showing discounted price on product page for PHP 8.0.
271
+ * Fix - PAYMENT GATEWAYS-Gateways Fees and Discounts-Changed transalation text for WPML.
272
+ * Fix - PRODUCTS-Product Price by Formula-Change transalation text for WPML.
273
+ * WooCommerce 6.2.1 tested
274
+ * WordPress 5.9.1 tested
275
+
276
  = 5.5.1 31/01/2022 =
277
  * WooCommerce 6.1.1 tested
278
  * WordPress 5.9 tested
woocommerce-jetpack.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: Booster for WooCommerce
4
  Plugin URI: https://booster.io
5
  Description: Supercharge your WooCommerce site with these awesome powerful features. More than 100 modules. All in one WooCommerce plugin.
6
- Version: 5.5.1
7
  Author: Pluggabl LLC
8
  Author URI: https://booster.io
9
  Text Domain: woocommerce-jetpack
10
  Domain Path: /langs
11
  Copyright: © 2020 Pluggabl LLC.
12
- WC tested up to: 6.1.1
13
  License: GNU General Public License v3.0
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
  */
@@ -58,7 +58,7 @@ if (!class_exists('WC_Jetpack')) :
58
  * @var string
59
  * @since 2.4.7
60
  */
61
- public $version = '5.5.1';
62
 
63
  /**
64
  * @var WC_Jetpack The single instance of the class
3
  Plugin Name: Booster for WooCommerce
4
  Plugin URI: https://booster.io
5
  Description: Supercharge your WooCommerce site with these awesome powerful features. More than 100 modules. All in one WooCommerce plugin.
6
+ Version: 5.5.4
7
  Author: Pluggabl LLC
8
  Author URI: https://booster.io
9
  Text Domain: woocommerce-jetpack
10
  Domain Path: /langs
11
  Copyright: © 2020 Pluggabl LLC.
12
+ WC tested up to: 6.2.1
13
  License: GNU General Public License v3.0
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
  */
58
  * @var string
59
  * @since 2.4.7
60
  */
61
+ public $version = '5.5.4';
62
 
63
  /**
64
  * @var WC_Jetpack The single instance of the class