Discount Rules for WooCommerce - Version 1.4.15

Version Description

  • 25/07/17 =
  • Fix List all rules(unlimited) for pro version
Download this release

Release Info

Developer flycart
Plugin Icon 128x128 Discount Rules for WooCommerce
Version 1.4.15
Comparing to
See all releases

Code changes from version 1.4.14 to 1.4.15

includes/cart-rules-3.php CHANGED
@@ -208,7 +208,7 @@ if (!class_exists('woo_dicount_rules_cartRules')) {
208
  */
209
  public function getRules($onlyCount = false)
210
  {
211
- $posts = get_posts(array('post_type' => $this->post_type, 'numberposts' => ''));
212
  if ($onlyCount) return count($posts);
213
  if (isset($posts) && count($posts) > 0) {
214
  foreach ($posts as $index => $item) {
208
  */
209
  public function getRules($onlyCount = false)
210
  {
211
+ $posts = get_posts(array('post_type' => $this->post_type, 'numberposts' => '-1'));
212
  if ($onlyCount) return count($posts);
213
  if (isset($posts) && count($posts) > 0) {
214
  foreach ($posts as $index => $item) {
includes/cart-rules.php CHANGED
@@ -208,7 +208,7 @@ if (!class_exists('woo_dicount_rules_cartRules')) {
208
  */
209
  public function getRules($onlyCount = false)
210
  {
211
- $posts = get_posts(array('post_type' => $this->post_type, 'numberposts' => ''));
212
  if ($onlyCount) return count($posts);
213
  if (isset($posts) && count($posts) > 0) {
214
  foreach ($posts as $index => $item) {
208
  */
209
  public function getRules($onlyCount = false)
210
  {
211
+ $posts = get_posts(array('post_type' => $this->post_type, 'numberposts' => '-1'));
212
  if ($onlyCount) return count($posts);
213
  if (isset($posts) && count($posts) > 0) {
214
  foreach ($posts as $index => $item) {
includes/pricing-rules-3.php CHANGED
@@ -267,7 +267,7 @@ if (!class_exists('woo_dicount_rules_pricingRules')) {
267
  */
268
  public function getRules($onlyCount = false)
269
  {
270
- $posts = get_posts(array('post_type' => $this->post_type, 'numberposts' => ''));
271
  if ($onlyCount) return count($posts);
272
  if (isset($posts) && count($posts) > 0) {
273
  foreach ($posts as $index => $item) {
267
  */
268
  public function getRules($onlyCount = false)
269
  {
270
+ $posts = get_posts(array('post_type' => $this->post_type, 'numberposts' => '-1'));
271
  if ($onlyCount) return count($posts);
272
  if (isset($posts) && count($posts) > 0) {
273
  foreach ($posts as $index => $item) {
includes/pricing-rules.php CHANGED
@@ -267,7 +267,7 @@ if (!class_exists('woo_dicount_rules_pricingRules')) {
267
  */
268
  public function getRules($onlyCount = false)
269
  {
270
- $posts = get_posts(array('post_type' => $this->post_type, 'numberposts' => ''));
271
  if ($onlyCount) return count($posts);
272
  if (isset($posts) && count($posts) > 0) {
273
  foreach ($posts as $index => $item) {
267
  */
268
  public function getRules($onlyCount = false)
269
  {
270
+ $posts = get_posts(array('post_type' => $this->post_type, 'numberposts' => '-1'));
271
  if ($onlyCount) return count($posts);
272
  if (isset($posts) && count($posts) > 0) {
273
  foreach ($posts as $index => $item) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flycart.org/
4
  Tags: woocommerce, ecommerce, discounts, coupons, promotion, campaigns, sales, price rules, advanced coupons, advanced discounts
5
  Requires at least: 4.4.1
6
  Tested up to: 4.7
7
- Stable tag: 1.4.14
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -111,6 +111,9 @@ More information could be found in the documentation
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 1.4.14 - 18/07/17 =
115
  * Fix – Rules limit issue
116
 
4
  Tags: woocommerce, ecommerce, discounts, coupons, promotion, campaigns, sales, price rules, advanced coupons, advanced discounts
5
  Requires at least: 4.4.1
6
  Tested up to: 4.7
7
+ Stable tag: 1.4.15
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
111
 
112
  == Changelog ==
113
 
114
+ = 1.4.15 - 25/07/17 =
115
+ * Fix – List all rules(unlimited) for pro version
116
+
117
  = 1.4.14 - 18/07/17 =
118
  * Fix – Rules limit issue
119
 
woo-discount-rules.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Simple Discount Rules for WooCommerce.
6
  * Author: Flycart Technologies LLP
7
  * Author URI: https://www.flycart.org
8
- * Version: 1.4.14
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Requires at least: 4.6.1
5
  * Description: Simple Discount Rules for WooCommerce.
6
  * Author: Flycart Technologies LLP
7
  * Author URI: https://www.flycart.org
8
+ * Version: 1.4.15
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Requires at least: 4.6.1