Booster for WooCommerce - Version 1.1.3

Version Description

  • 09/08/2014 =
  • Fix - "Warning: Invalid argument supplied for foreach() in..." bug fixed.
  • Feature Upgraded - Call for Price - different labels for single/archive/home.
Download this release

Release Info

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

Code changes from version 1.1.4 to 1.1.3

includes/class-wcj-product-info.php CHANGED
@@ -24,12 +24,8 @@ class WCJ_Product_Info {
24
  // Main hooks
25
  if ( 'yes' == get_option( 'wcj_product_info_enabled' ) ) {
26
 
27
- add_filter( 'woocommerce_product_tabs', array( $this, 'customize_product_tabs' ), 98 );
28
-
29
- if ( get_option( 'wcj_product_info_related_products_enable' ) == 'yes' ) {
30
- add_filter( 'woocommerce_related_products_args', array( $this, 'related_products_limit' ), 100 );
31
- add_filter( 'woocommerce_output_related_products_args', array( $this, 'related_products_limit_args' ), 100 );
32
- }
33
  }
34
 
35
  // Settings hooks
@@ -49,27 +45,18 @@ class WCJ_Product_Info {
49
  return $settings;
50
  }
51
 
52
- /**
53
- * Change number of related products on product page.
54
- */
55
- function related_products_limit_args( $args ) {
56
-
57
- $args['posts_per_page'] = get_option( 'wcj_product_info_related_products_num' );
58
- $args['orderby'] = get_option( 'wcj_product_info_related_products_orderby' );
59
- $args['columns'] = get_option( 'wcj_product_info_related_products_columns' );
60
-
61
- return $args;
62
- }
63
-
64
  /**
65
  * Change number of related products on product page.
66
  */
67
  function related_products_limit( $args ) {
68
-
69
- $args['posts_per_page'] = get_option( 'wcj_product_info_related_products_num' );
70
- $args['orderby'] = get_option( 'wcj_product_info_related_products_orderby' );
71
- if ( get_option( 'wcj_product_info_related_products_orderby' ) != 'rand' ) $args['order'] = get_option( 'wcj_product_info_related_products_order' );
72
-
 
 
 
73
  return $args;
74
  }
75
 
@@ -227,13 +214,6 @@ class WCJ_Product_Info {
227
  'type' => 'number',
228
  ),
229
 
230
- array(
231
- 'title' => __( 'Related Products Columns', 'woocommerce-jetpack' ),
232
- 'id' => 'wcj_product_info_related_products_columns',
233
- 'default' => 3,
234
- 'type' => 'number',
235
- ),
236
-
237
  array(
238
  'title' => __( 'Order by', 'woocommerce-jetpack' ),
239
  'id' => 'wcj_product_info_related_products_orderby',
24
  // Main hooks
25
  if ( 'yes' == get_option( 'wcj_product_info_enabled' ) ) {
26
 
27
+ add_filter( 'woocommerce_product_tabs', array( $this, 'customize_product_tabs' ), 98 );
28
+ add_filter( 'woocommerce_related_products_args', array( $this, 'related_products_limit' ), 100 );
 
 
 
 
29
  }
30
 
31
  // Settings hooks
45
  return $settings;
46
  }
47
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  /**
49
  * Change number of related products on product page.
50
  */
51
  function related_products_limit( $args ) {
52
+
53
+ if ( get_option( 'wcj_product_info_related_products_enable' ) == 'yes' ) {
54
+
55
+ $args['posts_per_page'] = get_option( 'wcj_product_info_related_products_num' );
56
+ $args['orderby'] = get_option( 'wcj_product_info_related_products_orderby' );
57
+ if ( get_option( 'wcj_product_info_related_products_orderby' ) != 'rand' ) $args['order'] = get_option( 'wcj_product_info_related_products_order' );
58
+ }
59
+
60
  return $args;
61
  }
62
 
214
  'type' => 'number',
215
  ),
216
 
 
 
 
 
 
 
 
217
  array(
218
  'title' => __( 'Order by', 'woocommerce-jetpack' ),
219
  'id' => 'wcj_product_info_related_products_orderby',
includes/class-wcj-shipping.php CHANGED
@@ -15,16 +15,22 @@ class WCJ_Shipping {
15
  /**
16
  * Constructor.
17
  */
18
- public function __construct() {
 
 
19
  if ( get_option( 'wcj_shipping_enabled' ) == 'yes' ) {
20
  // Include custom shipping method
21
- //include_once( 'shipping/class-wc-shipping-wcj-custom.php' );
 
 
22
  // Main hooks
23
  //add_filter( 'woocommerce_available_shipping_methods', array( $this, 'hide_all_shipping_when_free_is_available' ), 10, 1 );
24
- add_filter( 'woocommerce_package_rates', array( $this, 'hide_shipping_when_free_is_available' ), 10, 2 );
 
25
  // Settings
26
  add_filter( 'woocommerce_shipping_settings', array( $this, 'add_hide_shipping_if_free_available_fields' ), 100 );
27
- }
 
28
  // Settings hooks
29
  add_filter( 'wcj_settings_sections', array( $this, 'settings_section' ) );
30
  add_filter( 'wcj_settings_shipping', array( $this, 'get_settings' ), 100 );
@@ -193,7 +199,7 @@ class WCJ_Shipping {
193
  */
194
  function settings_section( $sections ) {
195
 
196
- $sections['shipping'] = __( 'Shipping', 'woocommerce-jetpack' );
197
 
198
  return $sections;
199
  }
15
  /**
16
  * Constructor.
17
  */
18
+ public function __construct() {
19
+
20
+
21
  if ( get_option( 'wcj_shipping_enabled' ) == 'yes' ) {
22
  // Include custom shipping method
23
+ //include_once( 'shipping/class-wc-shipping-wcj-custom.php' );
24
+
25
+
26
  // Main hooks
27
  //add_filter( 'woocommerce_available_shipping_methods', array( $this, 'hide_all_shipping_when_free_is_available' ), 10, 1 );
28
+ add_filter( 'woocommerce_package_rates', array( $this, 'hide_shipping_when_free_is_available' ), 10, 2 );
29
+
30
  // Settings
31
  add_filter( 'woocommerce_shipping_settings', array( $this, 'add_hide_shipping_if_free_available_fields' ), 100 );
32
+ }
33
+
34
  // Settings hooks
35
  add_filter( 'wcj_settings_sections', array( $this, 'settings_section' ) );
36
  add_filter( 'wcj_settings_shipping', array( $this, 'get_settings' ), 100 );
199
  */
200
  function settings_section( $sections ) {
201
 
202
+ $sections['shipping'] = 'Shipping';
203
 
204
  return $sections;
205
  }
includes/class-wcj-sorting.php CHANGED
@@ -29,7 +29,7 @@ class WCJ_Sorting {
29
  add_filter( 'woocommerce_get_catalog_ordering_args', array( $this, 'custom_woocommerce_get_catalog_ordering_args' ), 100 ); // Sorting
30
  add_filter( 'woocommerce_catalog_orderby', array( $this, 'custom_woocommerce_catalog_orderby' ), 100 ); // Front end
31
  add_filter( 'woocommerce_default_catalog_orderby_options', array( $this, 'custom_woocommerce_catalog_orderby' ), 100 ); // Back end (default sorting)
32
- if ( get_option( 'wcj_sorting_remove_all_enabled' ) == 'yes' )
33
  add_action( apply_filters( 'wcj_get_option_filter', 'wcj_empty_action', 'init' ), array( $this, 'remove_sorting' ), 100 ); // Remove sorting
34
 
35
  // Settings
@@ -202,9 +202,9 @@ class WCJ_Sorting {
202
  ),
203
 
204
  array(
205
- 'title' => __( '', 'woocommerce-jetpack' ),
206
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
207
- //'desc_tip' => __( 'Check to enable.', 'woocommerce-jetpack' ),
208
  'id' => 'wcj_sorting_by_name_asc_enabled',
209
  'default' => 'yes',
210
  'type' => 'checkbox',
@@ -220,9 +220,9 @@ class WCJ_Sorting {
220
  ),
221
 
222
  array(
223
- 'title' => __( '', 'woocommerce-jetpack' ),
224
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
225
- //'desc_tip' => __( 'Check to enable.', 'woocommerce-jetpack' ),
226
  'id' => 'wcj_sorting_by_name_desc_enabled',
227
  'default' => 'yes',
228
  'type' => 'checkbox',
@@ -238,9 +238,9 @@ class WCJ_Sorting {
238
  ),
239
 
240
  array(
241
- 'title' => __( '', 'woocommerce-jetpack' ),
242
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
243
- //'desc_tip' => __( 'Check to enable.', 'woocommerce-jetpack' ),
244
  'id' => 'wcj_sorting_by_sku_asc_enabled',
245
  'default' => 'yes',
246
  'type' => 'checkbox',
@@ -256,9 +256,9 @@ class WCJ_Sorting {
256
  ),
257
 
258
  array(
259
- 'title' => __( '', 'woocommerce-jetpack' ),
260
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
261
- //'desc_tip' => __( 'Check to enable.', 'woocommerce-jetpack' ),
262
  'id' => 'wcj_sorting_by_sku_desc_enabled',
263
  'default' => 'yes',
264
  'type' => 'checkbox',
29
  add_filter( 'woocommerce_get_catalog_ordering_args', array( $this, 'custom_woocommerce_get_catalog_ordering_args' ), 100 ); // Sorting
30
  add_filter( 'woocommerce_catalog_orderby', array( $this, 'custom_woocommerce_catalog_orderby' ), 100 ); // Front end
31
  add_filter( 'woocommerce_default_catalog_orderby_options', array( $this, 'custom_woocommerce_catalog_orderby' ), 100 ); // Back end (default sorting)
32
+ if ( get_option( 'wcj_sorting_remove_all_enabled' ) )
33
  add_action( apply_filters( 'wcj_get_option_filter', 'wcj_empty_action', 'init' ), array( $this, 'remove_sorting' ), 100 ); // Remove sorting
34
 
35
  // Settings
202
  ),
203
 
204
  array(
205
+ 'title' => __( 'Sort by Name - Asc', 'woocommerce-jetpack' ),
206
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
207
+ 'desc_tip' => __( 'Check to enable.', 'woocommerce-jetpack' ),
208
  'id' => 'wcj_sorting_by_name_asc_enabled',
209
  'default' => 'yes',
210
  'type' => 'checkbox',
220
  ),
221
 
222
  array(
223
+ 'title' => __( 'Sort by Name - Desc', 'woocommerce-jetpack' ),
224
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
225
+ 'desc_tip' => __( 'Check to enable.', 'woocommerce-jetpack' ),
226
  'id' => 'wcj_sorting_by_name_desc_enabled',
227
  'default' => 'yes',
228
  'type' => 'checkbox',
238
  ),
239
 
240
  array(
241
+ 'title' => __( 'Sort by SKU - Asc', 'woocommerce-jetpack' ),
242
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
243
+ 'desc_tip' => __( 'Check to enable.', 'woocommerce-jetpack' ),
244
  'id' => 'wcj_sorting_by_sku_asc_enabled',
245
  'default' => 'yes',
246
  'type' => 'checkbox',
256
  ),
257
 
258
  array(
259
+ 'title' => __( 'Sort by SKU - Desc', 'woocommerce-jetpack' ),
260
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
261
+ 'desc_tip' => __( 'Check to enable.', 'woocommerce-jetpack' ),
262
  'id' => 'wcj_sorting_by_sku_desc_enabled',
263
  'default' => 'yes',
264
  'type' => 'checkbox',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://algoritmika.com/donate/
4
  Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs,add to cart text,order number,sequential order numbering,pdf invoice,pdf invoices,already in cart,empty cart,redirect to checkout,minimum order amount,customize checkout fields,checkout fields,email,customize product tabs,product tabs,related products number,empty cart,redirect add to cart,redirect to checkout,product already in cart,custom payment gateway,payment gateway icon
5
  Requires at least: 3.9.1
6
  Tested up to: 3.9.2
7
- Stable tag: 1.1.4
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -58,12 +58,8 @@ To unlock all WooCommerce Jetpack features, please install additional <a href="h
58
 
59
  == Changelog ==
60
 
61
- = 1.1.4 - 10/08/2014 =
62
- * Fix - Sorting - "Remove all sorting" bug (always enabled), fixed (second time).
63
- * Dev - Product Info - Related products: "columns" option added.
64
-
65
  = 1.1.3 - 09/08/2014 =
66
- * Fix - "Warning: Invalid argument supplied for foreach() in..." bug fixed ("Payment Gateways" feature).
67
  * Feature Upgraded - Call for Price - different labels for single/archive/home.
68
 
69
  = 1.1.2 - 08/08/2014 =
4
  Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs,add to cart text,order number,sequential order numbering,pdf invoice,pdf invoices,already in cart,empty cart,redirect to checkout,minimum order amount,customize checkout fields,checkout fields,email,customize product tabs,product tabs,related products number,empty cart,redirect add to cart,redirect to checkout,product already in cart,custom payment gateway,payment gateway icon
5
  Requires at least: 3.9.1
6
  Tested up to: 3.9.2
7
+ Stable tag: 1.1.3
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
58
 
59
  == Changelog ==
60
 
 
 
 
 
61
  = 1.1.3 - 09/08/2014 =
62
+ * Fix - "Warning: Invalid argument supplied for foreach() in..." bug fixed.
63
  * Feature Upgraded - Call for Price - different labels for single/archive/home.
64
 
65
  = 1.1.2 - 08/08/2014 =
woocommerce-jetpack.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce Jetpack
4
  Plugin URI: http://woojetpack.com
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
- Version: 1.1.4
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.
3
  Plugin Name: WooCommerce Jetpack
4
  Plugin URI: http://woojetpack.com
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
+ Version: 1.1.3
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.