Booster for WooCommerce - Version 2.0.9

Version Description

  • 01/01/2015 =
  • Fix - PRODUCTS - Bulk Price Coverter - Not updating on empty price (was setting to zero before).
Download this release

Release Info

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

Code changes from version 2.0.8 to 2.0.9

includes/class-wcj-product-bulk-price-converter.php CHANGED
@@ -51,14 +51,16 @@ class WCJ_Bulk_Price_Converter {
51
  */
52
  public function change_price_by_type( $product_id, $multiply_price_by, $price_type, $is_preview ) {
53
  $the_price = get_post_meta( $product_id, '_' . $price_type, true );
54
- $precision = get_option( 'woocommerce_price_num_decimals', 2 );
55
- $the_multiplied_price = round( $the_price * $multiply_price_by, $precision );
56
- if ( ! $is_preview )
57
- update_post_meta( $product_id, '_' . $price_type, $the_multiplied_price );
58
-
 
 
59
  echo '<tr>' .
60
  '<td>' . get_the_title( $product_id ) . '</td>' .
61
- '<td>' . $price_type . '</td>' .
62
  '<td>' . $the_price . '</td>' .
63
  '<td>' . $the_multiplied_price . '</td>' .
64
  '</tr>';
@@ -107,8 +109,8 @@ class WCJ_Bulk_Price_Converter {
107
  echo '<table class="widefat" style="width:50%; min-width: 300px;">';
108
  echo '<tr>' .
109
  '<th>' . __( 'Product', 'woocommerce-jetpack' ) . '</th>' .
 
110
  '<th>' . __( 'Price', 'woocommerce-jetpack' ) . '</th>' .
111
- '<th>' . __( 'Price Type', 'woocommerce-jetpack' ) . '</th>' .
112
  '<th>' . __( 'Modified Price', 'woocommerce-jetpack' ) . '</th>' .
113
  '</tr>';
114
  while ( $loop->have_posts() ) : $loop->the_post();
51
  */
52
  public function change_price_by_type( $product_id, $multiply_price_by, $price_type, $is_preview ) {
53
  $the_price = get_post_meta( $product_id, '_' . $price_type, true );
54
+ if ( '' != $the_price ) {
55
+ $precision = get_option( 'woocommerce_price_num_decimals', 2 );
56
+ $the_multiplied_price = round( $the_price * $multiply_price_by, $precision );
57
+ if ( ! $is_preview )
58
+ update_post_meta( $product_id, '_' . $price_type, $the_multiplied_price );
59
+ }
60
+
61
  echo '<tr>' .
62
  '<td>' . get_the_title( $product_id ) . '</td>' .
63
+ '<td><em>' . $price_type . '</em></td>' .
64
  '<td>' . $the_price . '</td>' .
65
  '<td>' . $the_multiplied_price . '</td>' .
66
  '</tr>';
109
  echo '<table class="widefat" style="width:50%; min-width: 300px;">';
110
  echo '<tr>' .
111
  '<th>' . __( 'Product', 'woocommerce-jetpack' ) . '</th>' .
112
+ '<th>' . __( 'Price Type', 'woocommerce-jetpack' ) . '</th>' .
113
  '<th>' . __( 'Price', 'woocommerce-jetpack' ) . '</th>' .
 
114
  '<th>' . __( 'Modified Price', 'woocommerce-jetpack' ) . '</th>' .
115
  '</tr>';
116
  while ( $loop->have_posts() ) : $loop->the_post();
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,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,hide categories count,hide subcategories count,hide category count,hide subcategory count,display total sales,custom product tabs,remove product tab,payment gateway fee,
5
  Requires at least: 3.9.1
6
  Tested up to: 4.1
7
- Stable tag: 2.0.8
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -68,6 +68,9 @@ To unlock all WooCommerce Jetpack features, please install additional <a href="h
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 2.0.8 - 30/12/2014 =
72
  * Dev - PRODUCTS - **SKUs** - *Variable Products Variations SKUs* handling options added.
73
 
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,hide categories count,hide subcategories count,hide category count,hide subcategory count,display total sales,custom product tabs,remove product tab,payment gateway fee,
5
  Requires at least: 3.9.1
6
  Tested up to: 4.1
7
+ Stable tag: 2.0.9
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
68
 
69
  == Changelog ==
70
 
71
+ = 2.0.9 - 01/01/2015 =
72
+ * Fix - PRODUCTS - **Bulk Price Coverter** - Not updating on empty price (was setting to zero before).
73
+
74
  = 2.0.8 - 30/12/2014 =
75
  * Dev - PRODUCTS - **SKUs** - *Variable Products Variations SKUs* handling options added.
76
 
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: 2.0.8
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: 2.0.9
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.