WooCommerce Bulk Discount - Version 1.2.2

Version Description

  • (2 Sep 2013) Changing default state of product variation setting checkbox for default behaviour of previous versions.
Download this release

Release Info

Developer Rene Puchinger
Plugin Icon 128x128 WooCommerce Bulk Discount
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

Files changed (2) hide show
  1. readme.txt +8 -2
  2. woocommerce-bulk-discount.php +3 -3
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WooCommerce Bulk Discount ===
2
  Contributors: Rene Puchinger
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6VEQ8XXK6B3UE
4
- Tags: woocommerce, discount
5
  Requires at least: 3.5.0
6
  Tested up to: 3.6
7
- Stable tag: 1.2.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -76,6 +76,9 @@ implemented. You can add support for your language as well.
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 1.2.1 =
80
  * (26 Aug 2013) Making the plugin i18n ready, currently there are English and Czech locales.
81
 
@@ -103,6 +106,9 @@ implemented. You can add support for your language as well.
103
 
104
  == Upgrade Notice ==
105
 
 
 
 
106
  = 1.2.1 =
107
  Release with i18n feature.
108
 
1
  === WooCommerce Bulk Discount ===
2
  Contributors: Rene Puchinger
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6VEQ8XXK6B3UE
4
+ Tags: woocommerce, bulk, discount
5
  Requires at least: 3.5.0
6
  Tested up to: 3.6
7
+ Stable tag: 1.2.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
76
 
77
  == Changelog ==
78
 
79
+ = 1.2.2 =
80
+ * (2 Sep 2013) Changing default state of product variation setting checkbox for default behaviour of previous versions.
81
+
82
  = 1.2.1 =
83
  * (26 Aug 2013) Making the plugin i18n ready, currently there are English and Czech locales.
84
 
106
 
107
  == Upgrade Notice ==
108
 
109
+ = 1.2.2 =
110
+ Maintenance release
111
+
112
  = 1.2.1 =
113
  Release with i18n feature.
114
 
woocommerce-bulk-discount.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WooCommerce Bulk Discount
4
  Plugin URI: http://www.tools4me.net/wordpress/woocommerce-bulk-discount-plugin
5
  Description: Apply fine-grained bulk discounts to items in the shopping cart, dependently on ordered quantity and on concrete product.
6
  Author: Rene Puchinger
7
- Version: 1.2.1
8
  Author URI: http://www.renepuchinger.com
9
  License: GPL3
10
 
@@ -136,7 +136,7 @@ if (!class_exists('Woo_Bulk_Discount_Plugin_t4m')) {
136
  foreach ($cart->cart_contents as $cart_item_key => $values) {
137
  $_product = $values['data'];
138
  $quantity = 0;
139
- if (get_option('woocommerce_t4m_variations_separate', 'no') == 'no' && $_product instanceof WC_Product_Variation && $_product->parent) {
140
  $parent = $_product->parent;
141
  foreach ($cart->cart_contents as $valuesInner) {
142
  $p = $valuesInner['data'];
@@ -448,7 +448,7 @@ if (!class_exists('Woo_Bulk_Discount_Plugin_t4m')) {
448
  'desc' => __('You need to have this option unchecked to handle discounts on product variations as a whole.', 'wc_bulk_discount'),
449
  'std' => 'yes',
450
  'type' => 'checkbox',
451
- 'default' => 'no'
452
  ),
453
 
454
  array(
4
  Plugin URI: http://www.tools4me.net/wordpress/woocommerce-bulk-discount-plugin
5
  Description: Apply fine-grained bulk discounts to items in the shopping cart, dependently on ordered quantity and on concrete product.
6
  Author: Rene Puchinger
7
+ Version: 1.2.2
8
  Author URI: http://www.renepuchinger.com
9
  License: GPL3
10
 
136
  foreach ($cart->cart_contents as $cart_item_key => $values) {
137
  $_product = $values['data'];
138
  $quantity = 0;
139
+ if (get_option('woocommerce_t4m_variations_separate', 'yes') == 'no' && $_product instanceof WC_Product_Variation && $_product->parent) {
140
  $parent = $_product->parent;
141
  foreach ($cart->cart_contents as $valuesInner) {
142
  $p = $valuesInner['data'];
448
  'desc' => __('You need to have this option unchecked to handle discounts on product variations as a whole.', 'wc_bulk_discount'),
449
  'std' => 'yes',
450
  'type' => 'checkbox',
451
+ 'default' => 'yes'
452
  ),
453
 
454
  array(