Booster for WooCommerce - Version 1.6.2

Version Description

  • 25/09/2014 =
  • Feature Upgraded - Orders - Orders Numbers - Additional custom date prefix added. Suggested by Sergio. Value is passed directly to PHP date function, so most of PHP date formats can be used. Visit PHP date function page for more information on valid date formats. The only exception is using \ symbol in date format, as this symbol will be excluded from date (that is because of WooCommerce default option saving mechanism).
Download this release

Release Info

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

Code changes from version 1.6.1 to 1.6.2

includes/class-wcj-cart.php CHANGED
@@ -4,8 +4,12 @@
4
  *
5
  * The WooCommerce Jetpack Cart class.
6
  *
7
- * @class WCJ_Cart
 
 
 
8
  */
 
9
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
10
 
11
  if ( ! class_exists( 'WCJ_Cart' ) ) :
@@ -18,16 +22,16 @@ class WCJ_Cart {
18
  public function __construct() {
19
 
20
  // Main hooks
21
- if ( get_option( 'wcj_cart_enabled' ) == 'yes' ) {
22
 
23
- if ( get_option( 'wcj_empty_cart_enabled' ) == 'yes' ) {
24
 
25
  add_action( 'init', array( $this, 'empty_cart' ) );
26
  add_action( 'woocommerce_after_cart', array( $this, 'add_empty_cart_link' ) );
27
  //add_filter( 'wcj_empty_cart_button_filter', array( $this, 'empty_cart_button_filter_function' ), 100, 2 );
28
  }
29
 
30
- if ( get_option( 'wcj_add_to_cart_on_visit_enabled' ) == 'yes' )
31
  add_action( 'woocommerce_before_single_product', array( $this, 'add_to_cart_on_visit' ), 100 );
32
  }
33
 
4
  *
5
  * The WooCommerce Jetpack Cart class.
6
  *
7
+ * @class WCJ_Cart
8
+ * @version 1.0.1
9
+ * @category Class
10
+ * @author Algoritmika Ltd.
11
  */
12
+
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
 
15
  if ( ! class_exists( 'WCJ_Cart' ) ) :
22
  public function __construct() {
23
 
24
  // Main hooks
25
+ if ( 'yes' === get_option( 'wcj_cart_enabled' ) ) {
26
 
27
+ if ( 'yes' === get_option( 'wcj_empty_cart_enabled' ) ) {
28
 
29
  add_action( 'init', array( $this, 'empty_cart' ) );
30
  add_action( 'woocommerce_after_cart', array( $this, 'add_empty_cart_link' ) );
31
  //add_filter( 'wcj_empty_cart_button_filter', array( $this, 'empty_cart_button_filter_function' ), 100, 2 );
32
  }
33
 
34
+ if ( 'yes' === get_option( 'wcj_add_to_cart_on_visit_enabled' ) )
35
  add_action( 'woocommerce_before_single_product', array( $this, 'add_to_cart_on_visit' ), 100 );
36
  }
37
 
includes/class-wcj-orders.php CHANGED
@@ -5,7 +5,7 @@
5
  * The WooCommerce Jetpack Orders class.
6
  *
7
  * @class WCJ_Orders
8
- * @version 1.3.3
9
  * @category Class
10
  * @author Algoritmika Ltd.
11
  */
@@ -229,8 +229,15 @@ class WCJ_Orders {
229
  */
230
  public function display_order_number( $order_number, $order ) {
231
  $order_number_meta = get_post_meta( $order->id, '_wcj_order_number', true );
232
- if ( $order_number_meta !== '' )
233
- $order_number = apply_filters( 'wcj_get_option_filter', '#' . $order_number_meta, sprintf( '%s%0' . get_option( 'wcj_order_number_min_width', 0 ) . 'd', get_option( 'wcj_order_number_prefix', '' ), $order_number_meta ) );
 
 
 
 
 
 
 
234
  return $order_number;
235
  }
236
 
@@ -394,6 +401,7 @@ class WCJ_Orders {
394
  array(
395
  'title' => __( 'Order Numbers', 'woocommerce-jetpack' ),
396
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
 
397
  'id' => 'wcj_order_numbers_enabled',
398
  'default' => 'no',
399
  'type' => 'checkbox',
@@ -406,9 +414,9 @@ class WCJ_Orders {
406
  'default' => 1,
407
  'type' => 'number',
408
  ),
409
-
410
  array(
411
- 'title' => __( 'Order Number Prefix', 'woocommerce-jetpack' ),
412
  'desc' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc' ),
413
  'desc_tip' => __( 'Prefix before order number (optional). This will change the prefixes for all existing orders.', 'woocommerce-jetpack' ),
414
  'id' => 'wcj_order_number_prefix',
@@ -416,8 +424,19 @@ class WCJ_Orders {
416
  'type' => 'text',
417
  'custom_attributes'
418
  => apply_filters( 'get_wc_jetpack_plus_message', '', 'readonly' ),
419
- ),
420
 
 
 
 
 
 
 
 
 
 
 
 
421
  array(
422
  'title' => __( 'Order Number Width', 'woocommerce-jetpack' ),
423
  'desc' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc' ),
5
  * The WooCommerce Jetpack Orders class.
6
  *
7
  * @class WCJ_Orders
8
+ * @version 1.3.5
9
  * @category Class
10
  * @author Algoritmika Ltd.
11
  */
229
  */
230
  public function display_order_number( $order_number, $order ) {
231
  $order_number_meta = get_post_meta( $order->id, '_wcj_order_number', true );
232
+ if ( $order_number_meta != '' ) {
233
+ $order_timestamp = strtotime( $order->post->post_date );
234
+ $order_number = apply_filters( 'wcj_get_option_filter',
235
+ '#' . $order_number_meta,
236
+ sprintf( '%s%s%0' . get_option( 'wcj_order_number_min_width', 0 ) . 'd',
237
+ get_option( 'wcj_order_number_prefix', '' ),
238
+ date( get_option( 'wcj_order_number_date_prefix', '' ), $order_timestamp ),
239
+ $order_number_meta ) );
240
+ }
241
  return $order_number;
242
  }
243
 
401
  array(
402
  'title' => __( 'Order Numbers', 'woocommerce-jetpack' ),
403
  'desc' => __( 'Enable', 'woocommerce-jetpack' ),
404
+ 'desc_tip' => __( 'This will enable sequential order numbering and custom prefixes.', 'woocommerce-jetpack' ),
405
  'id' => 'wcj_order_numbers_enabled',
406
  'default' => 'no',
407
  'type' => 'checkbox',
414
  'default' => 1,
415
  'type' => 'number',
416
  ),
417
+
418
  array(
419
+ 'title' => __( 'Order Number Custom Prefix', 'woocommerce-jetpack' ),
420
  'desc' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc' ),
421
  'desc_tip' => __( 'Prefix before order number (optional). This will change the prefixes for all existing orders.', 'woocommerce-jetpack' ),
422
  'id' => 'wcj_order_number_prefix',
424
  'type' => 'text',
425
  'custom_attributes'
426
  => apply_filters( 'get_wc_jetpack_plus_message', '', 'readonly' ),
427
+ ),
428
 
429
+ array(
430
+ 'title' => __( 'Order Number Date Prefix', 'woocommerce-jetpack' ),
431
+ 'desc' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc' ),
432
+ 'desc_tip' => __( 'Date prefix before order number (optional). This will change the prefixes for all existing orders. Value is passed directly to PHP `date` function, so most of PHP date formats can be used. The only exception is using `\` symbol in date format, as this symbol will be excluded from date. Try: Y-m-d- or mdy.', 'woocommerce-jetpack' ),
433
+ 'id' => 'wcj_order_number_date_prefix',
434
+ 'default' => '',
435
+ 'type' => 'text',
436
+ 'custom_attributes'
437
+ => apply_filters( 'get_wc_jetpack_plus_message', '', 'readonly' ),
438
+ ),
439
+
440
  array(
441
  'title' => __( 'Order Number Width', 'woocommerce-jetpack' ),
442
  'desc' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc' ),
includes/class-wcj-pdf-invoices.php CHANGED
@@ -5,7 +5,7 @@
5
  * The WooCommerce Jetpack PDF Invoices class.
6
  *
7
  * @class WCJ_PDF_Invoices
8
- * @version 1.5.0
9
  * @category Class
10
  * @author Algoritmika Ltd.
11
  */
@@ -1027,7 +1027,7 @@ class WCJ_PDF_Invoices {
1027
  ),
1028
 
1029
  array(
1030
- 'title' => __( 'Css', 'woocommerce-jetpack' ),
1031
  'desc' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc' ),
1032
  //'desc_tip' => __( 'Add PDF invoices for the store owners and for the customers.', 'woocommerce-jetpack' ),
1033
  'id' => 'wcj_pdf_invoices_general_css',
5
  * The WooCommerce Jetpack PDF Invoices class.
6
  *
7
  * @class WCJ_PDF_Invoices
8
+ * @version 1.5.1
9
  * @category Class
10
  * @author Algoritmika Ltd.
11
  */
1027
  ),
1028
 
1029
  array(
1030
+ 'title' => __( 'CSS', 'woocommerce-jetpack' ),
1031
  'desc' => apply_filters( 'get_wc_jetpack_plus_message', '', 'desc' ),
1032
  //'desc_tip' => __( 'Add PDF invoices for the store owners and for the customers.', 'woocommerce-jetpack' ),
1033
  'id' => 'wcj_pdf_invoices_general_css',
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WooCommerce Jetpack ===
2
  Contributors: algoritmika
3
  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,email pdf invoice,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,auto-complete all orders,custom order statuses,custom order status,remove text from price
5
  Requires at least: 3.9.1
6
  Tested up to: 4.0
7
- Stable tag: 1.6.1
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -30,6 +30,7 @@ WooCommerce Jetpack is a WordPress plugin that supercharges your site with aweso
30
  * Cart - Add "Empty Cart" button to cart page, automatically add product to cart on visit.
31
  * Add to Cart - Change text for add to cart buttons for each product type. Display "Product already in cart" instead of "Add to cart" button. Redirect add to cart button to any url (e.g. checkout page).
32
  * Old Slugs - Remove old product slugs.
 
33
 
34
  = Feedback =
35
  * We are open to your suggestions and feedback - thank you for using or trying out one of our plugins!
@@ -63,9 +64,12 @@ Please let us know if you want anything added to list by <a href="http://woojetp
63
 
64
  If you wish that some task would go up the queue to make it faster, please contact us by <a href="http://woojetpack.com/contact-us/">filling this form</a>. We are listening carefully to our users!
65
 
66
- = 1.7.0 - 01/10/2014 =
67
  * Fix - Payment Gateways - Instructions are not showing. Suggested by Jen.
68
- * New Feature - General - Another Custom CSS tool.
 
 
 
69
  * New Feature - Smart Reports - Various reports based on products prices, sales, stock.
70
  * New Feature - Add second currency to the price.
71
  * Upgrade Feature - Shipping - Advance free shipping - Free shipping for multiple country/places. Each country/places different prices. Idea by LQTOYS.
@@ -81,6 +85,7 @@ If you wish that some task would go up the queue to make it faster, please conta
81
  * Upgrade Feature - PDF Invoices - Separate numbering for invoices option, then can add `add_order_number_to_invoice` option.
82
  * Upgrade Feature - Custom CSS - Need to add custom CSS option (problem with color of price matching the background in minimum order amount message; suggested by Augen).
83
  * Dev - Custom Price Labels - Rearrange settings in product edit (something like `postbox`es).
 
84
 
85
  = 1.8.0 - 07/10/2014 =
86
  * New Feature - Products per Page - Add "products per page" option for customers (i.e. front end).
@@ -106,6 +111,12 @@ If you wish that some task would go up the queue to make it faster, please conta
106
 
107
  == Changelog ==
108
 
 
 
 
 
 
 
109
  = 1.6.1 - 23/09/2014 =
110
  * New Feature - General - Another custom CSS tool.
111
  * Dev - Orders - Minimum order amount - `textarea` instead of `text` option type. Now can add tags (e.g. `<span class="your_class"></span>`) to customers messages.
1
  === WooCommerce Jetpack ===
2
  Contributors: algoritmika
3
  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,email pdf invoice,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,auto-complete all orders,custom order statuses,custom order status,remove text from price,custom css
5
  Requires at least: 3.9.1
6
  Tested up to: 4.0
7
+ Stable tag: 1.6.2
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
30
  * Cart - Add "Empty Cart" button to cart page, automatically add product to cart on visit.
31
  * Add to Cart - Change text for add to cart buttons for each product type. Display "Product already in cart" instead of "Add to cart" button. Redirect add to cart button to any url (e.g. checkout page).
32
  * Old Slugs - Remove old product slugs.
33
+ * Another custom CSS tool, if you need one.
34
 
35
  = Feedback =
36
  * We are open to your suggestions and feedback - thank you for using or trying out one of our plugins!
64
 
65
  If you wish that some task would go up the queue to make it faster, please contact us by <a href="http://woojetpack.com/contact-us/">filling this form</a>. We are listening carefully to our users!
66
 
67
+ = 1.6.3 - 26/09/2014 =
68
  * Fix - Payment Gateways - Instructions are not showing. Suggested by Jen.
69
+ * New Feature - Products - Option to exclude categories on shop page (when `Shop Page Display` is set to `Show subcategories` or `Show both`). Idea by Xavier.
70
+ * Upgrade Feature - Product Info - Show SKU on archive page. Idea by Xavier.
71
+
72
+ = 1.7.0 - 01/10/2014 =
73
  * New Feature - Smart Reports - Various reports based on products prices, sales, stock.
74
  * New Feature - Add second currency to the price.
75
  * Upgrade Feature - Shipping - Advance free shipping - Free shipping for multiple country/places. Each country/places different prices. Idea by LQTOYS.
85
  * Upgrade Feature - PDF Invoices - Separate numbering for invoices option, then can add `add_order_number_to_invoice` option.
86
  * Upgrade Feature - Custom CSS - Need to add custom CSS option (problem with color of price matching the background in minimum order amount message; suggested by Augen).
87
  * Dev - Custom Price Labels - Rearrange settings in product edit (something like `postbox`es).
88
+ * Dev - Rename "Features" to "Modules".
89
 
90
  = 1.8.0 - 07/10/2014 =
91
  * New Feature - Products per Page - Add "products per page" option for customers (i.e. front end).
111
 
112
  == Changelog ==
113
 
114
+ = 1.6.2 - 25/09/2014 =
115
+ * Feature Upgraded - Orders - Orders Numbers - Additional custom date prefix added. Suggested by Sergio.
116
+ Value is passed directly to PHP `date` function, so most of PHP date formats can be used.
117
+ Visit PHP `date` <a href="http://php.net/manual/en/function.date.php">function page</a> for more information on valid date formats.
118
+ The only exception is using `\` symbol in date format, as this symbol will be excluded from date (that is because of WooCommerce default option saving mechanism).
119
+
120
  = 1.6.1 - 23/09/2014 =
121
  * New Feature - General - Another custom CSS tool.
122
  * Dev - Orders - Minimum order amount - `textarea` instead of `text` option type. Now can add tags (e.g. `<span class="your_class"></span>`) to customers messages.
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.6.1
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.
@@ -163,7 +163,7 @@ final class WC_Jetpack {
163
  $settings = array();
164
 
165
  $settings[] = include_once( 'includes/class-wcj-general.php' );
166
-
167
  $settings[] = include_once( 'includes/class-wcj-price-labels.php' );
168
  $settings[] = include_once( 'includes/class-wcj-call-for-price.php' );
169
  $settings[] = include_once( 'includes/class-wcj-currencies.php' );
@@ -180,7 +180,7 @@ final class WC_Jetpack {
180
  $settings[] = include_once( 'includes/class-wcj-emails.php' );
181
  $settings[] = include_once( 'includes/class-wcj-pdf-invoices.php' );
182
  //$settings[] = include_once( 'includes/class-wcj-reports.php' );
183
- $settings[] = include_once( 'includes/class-wcj-old-slugs.php' );
184
 
185
  // Add options
186
  if ( is_admin() ) {
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.6.2
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.
163
  $settings = array();
164
 
165
  $settings[] = include_once( 'includes/class-wcj-general.php' );
166
+
167
  $settings[] = include_once( 'includes/class-wcj-price-labels.php' );
168
  $settings[] = include_once( 'includes/class-wcj-call-for-price.php' );
169
  $settings[] = include_once( 'includes/class-wcj-currencies.php' );
180
  $settings[] = include_once( 'includes/class-wcj-emails.php' );
181
  $settings[] = include_once( 'includes/class-wcj-pdf-invoices.php' );
182
  //$settings[] = include_once( 'includes/class-wcj-reports.php' );
183
+ $settings[] = include_once( 'includes/class-wcj-old-slugs.php' );
184
 
185
  // Add options
186
  if ( is_admin() ) {