Booster for WooCommerce - Version 2.8.1

Version Description

  • 19/05/2017 =
  • Fix - Shortcodes - Orders - [wcj_order_checkout_field] - Fixed custom checkout fields value not returning properly.
  • Dev - Shortcodes - Products - [wcj_product_id] shortcode added.
Download this release

Release Info

Developer algoritmika
Plugin Icon 128x128 Booster for WooCommerce
Version 2.8.1
Comparing to
See all releases

Code changes from version 2.8.0 to 2.8.1

includes/shortcodes/class-wcj-orders-shortcodes.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Booster for WooCommerce - Shortcodes - Orders
4
  *
5
- * @version 2.8.0
6
  * @author Algoritmika Ltd.
7
  */
8
 
@@ -554,7 +554,7 @@ class WCJ_Orders_Shortcodes extends WCJ_Shortcodes {
554
  /**
555
  * wcj_order_checkout_field.
556
  *
557
- * @version 2.8.0
558
  */
559
  function wcj_order_checkout_field( $atts ) {
560
  $field_id = ( string ) $atts['field_id'];
@@ -580,6 +580,9 @@ class WCJ_Orders_Shortcodes extends WCJ_Shortcodes {
580
  return $order_data['shipping'][ $shipping_field_id ];
581
  }
582
  }
 
 
 
583
  if ( isset( $order_data[ $field_id ] ) ) {
584
  return ( is_array( $order_data[ $field_id ] ) && isset( $order_data[ $field_id ]['value'] ) ) ? $order_data[ $field_id ]['value'] : $order_data[ $field_id ];
585
  } else {
2
  /**
3
  * Booster for WooCommerce - Shortcodes - Orders
4
  *
5
+ * @version 2.8.1
6
  * @author Algoritmika Ltd.
7
  */
8
 
554
  /**
555
  * wcj_order_checkout_field.
556
  *
557
+ * @version 2.8.1
558
  */
559
  function wcj_order_checkout_field( $atts ) {
560
  $field_id = ( string ) $atts['field_id'];
580
  return $order_data['shipping'][ $shipping_field_id ];
581
  }
582
  }
583
+ if ( $this->the_order->get_meta( '_' . $field_id ) ) {
584
+ return $this->the_order->get_meta( '_' . $field_id );
585
+ }
586
  if ( isset( $order_data[ $field_id ] ) ) {
587
  return ( is_array( $order_data[ $field_id ] ) && isset( $order_data[ $field_id ]['value'] ) ) ? $order_data[ $field_id ]['value'] : $order_data[ $field_id ];
588
  } else {
includes/shortcodes/class-wcj-products-shortcodes.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Booster for WooCommerce - Shortcodes - Products
4
  *
5
- * @version 2.8.0
6
  * @author Algoritmika Ltd.
7
  */
8
 
@@ -15,11 +15,12 @@ class WCJ_Products_Shortcodes extends WCJ_Shortcodes {
15
  /**
16
  * Constructor.
17
  *
18
- * @version 2.8.0
19
  */
20
  public function __construct() {
21
 
22
  $this->the_shortcodes = array(
 
23
  'wcj_product_author_avatar',
24
  'wcj_product_author',
25
  'wcj_product_author_link',
@@ -135,6 +136,16 @@ class WCJ_Products_Shortcodes extends WCJ_Shortcodes {
135
  return $atts;
136
  }
137
 
 
 
 
 
 
 
 
 
 
 
138
  /**
139
  * wcj_product_author_avatar.
140
  *
2
  /**
3
  * Booster for WooCommerce - Shortcodes - Products
4
  *
5
+ * @version 2.8.1
6
  * @author Algoritmika Ltd.
7
  */
8
 
15
  /**
16
  * Constructor.
17
  *
18
+ * @version 2.8.1
19
  */
20
  public function __construct() {
21
 
22
  $this->the_shortcodes = array(
23
+ 'wcj_product_id',
24
  'wcj_product_author_avatar',
25
  'wcj_product_author',
26
  'wcj_product_author_link',
136
  return $atts;
137
  }
138
 
139
+ /**
140
+ * wcj_product_id.
141
+ *
142
+ * @version 2.8.1
143
+ * @since 2.8.1
144
+ */
145
+ function wcj_product_id( $atts ) {
146
+ return $this->the_product->get_id();
147
+ }
148
+
149
  /**
150
  * wcj_product_author_avatar.
151
  *
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: algoritmika,anbinder
3
  Tags: woocommerce,booster for woocommerce,woocommerce jetpack
4
  Requires at least: 4.4
5
  Tested up to: 4.7
6
- Stable tag: 2.8.0
7
  License: GNU General Public License v3.0
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -157,6 +157,10 @@ You can see the differences between versions in this [table](https://booster.io/
157
 
158
  == Changelog ==
159
 
 
 
 
 
160
  = 2.8.0 - 19/05/2017 =
161
  * Dev - WooCommerce v3.x.x compatibility - `wcj_get_product_input_fields()` fixed (used in "Export" module and in `[wcj_order_items_table]` shortcode's `item_product_input_fields` column).
162
  * Dev - WooCommerce v3.x.x compatibility - Shortcodes - Orders - `[wcj_order_checkout_field]` - `$order->get_data()`.
3
  Tags: woocommerce,booster for woocommerce,woocommerce jetpack
4
  Requires at least: 4.4
5
  Tested up to: 4.7
6
+ Stable tag: 2.8.1
7
  License: GNU General Public License v3.0
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
157
 
158
  == Changelog ==
159
 
160
+ = 2.8.1 - 19/05/2017 =
161
+ * Fix - Shortcodes - Orders - `[wcj_order_checkout_field]` - Fixed custom checkout fields value not returning properly.
162
+ * Dev - Shortcodes - Products - `[wcj_product_id]` shortcode added.
163
+
164
  = 2.8.0 - 19/05/2017 =
165
  * Dev - WooCommerce v3.x.x compatibility - `wcj_get_product_input_fields()` fixed (used in "Export" module and in `[wcj_order_items_table]` shortcode's `item_product_input_fields` column).
166
  * Dev - WooCommerce v3.x.x compatibility - Shortcodes - Orders - `[wcj_order_checkout_field]` - `$order->get_data()`.
woocommerce-jetpack.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Booster for WooCommerce
4
  Plugin URI: https://booster.io
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
- Version: 2.8.0
7
  Author: Algoritmika Ltd
8
  Author URI: https://booster.io
9
  Text Domain: woocommerce-jetpack
@@ -55,7 +55,7 @@ final class WC_Jetpack {
55
  * @var string
56
  * @since 2.4.7
57
  */
58
- public $version = '2.8.0';
59
 
60
  /**
61
  * @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.
6
+ Version: 2.8.1
7
  Author: Algoritmika Ltd
8
  Author URI: https://booster.io
9
  Text Domain: woocommerce-jetpack
55
  * @var string
56
  * @since 2.4.7
57
  */
58
+ public $version = '2.8.1';
59
 
60
  /**
61
  * @var WC_Jetpack The single instance of the class