Woocommerce Products Slider - Version 1.12.9

Version Description

  • 11/05/2017 update - exclude or include featured product.
    • 11/05/2017 update - exclude or include out of stock product.
Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Woocommerce Products Slider
Version 1.12.9
Comparing to
See all releases

Code changes from version 1.12.8 to 1.12.9

includes/meta.php CHANGED
@@ -635,12 +635,14 @@ function meta_boxes_wcps_input( $post ) {
635
 
636
  <p class="option-info"><?php _e('Hide out of stock items',wcps_textdomain); ?></p>
637
  <label><input <?php if($wcps_hide_out_of_stock=="yes") echo "checked";?> type="radio" name="wcps_hide_out_of_stock" value="yes" />Yes</label>
638
- <label><input <?php if($wcps_hide_out_of_stock=="no") echo "checked";?> type="radio" name="wcps_hide_out_of_stock" value="no" />No</label>
 
639
 
640
  <p class="option-info"><?php _e('Featured Product display', wcps_textdomain);?></p>
641
  <label><input <?php if($wcps_product_featured=="yes") echo "checked";?> type="radio" name="wcps_product_featured" value="yes" />Yes</label>
642
- <label><input <?php if($wcps_product_featured=="no") echo "checked";?> type="radio" name="wcps_product_featured" value="no" />No</label>
643
-
 
644
  <p class="option-info"><?php _e('On Sale Product display', wcps_textdomain);?></p>
645
  <label><input <?php if($wcps_product_on_sale=="yes") echo "checked";?> type="radio" name="wcps_product_on_sale" value="yes" />Yes</label>
646
  <label><input <?php if($wcps_product_on_sale=="no") echo "checked";?> type="radio" name="wcps_product_on_sale" value="no" />No</label>
635
 
636
  <p class="option-info"><?php _e('Hide out of stock items',wcps_textdomain); ?></p>
637
  <label><input <?php if($wcps_hide_out_of_stock=="yes") echo "checked";?> type="radio" name="wcps_hide_out_of_stock" value="yes" />Yes</label>
638
+ <label><input <?php if($wcps_hide_out_of_stock=="no") echo "checked";?> type="radio" name="wcps_hide_out_of_stock" value="no" />No</label>
639
+ <label><input <?php if($wcps_hide_out_of_stock=="no_check") echo "checked";?> type="radio" name="wcps_hide_out_of_stock" value="no_check" />No Check</label>
640
 
641
  <p class="option-info"><?php _e('Featured Product display', wcps_textdomain);?></p>
642
  <label><input <?php if($wcps_product_featured=="yes") echo "checked";?> type="radio" name="wcps_product_featured" value="yes" />Yes</label>
643
+ <label><input <?php if($wcps_product_featured=="no") echo "checked";?> type="radio" name="wcps_product_featured" value="no" />No</label>
644
+ <label><input <?php if($wcps_product_featured=="no_check") echo "checked";?> type="radio" name="wcps_product_featured" value="no_check" />No check</label>
645
+
646
  <p class="option-info"><?php _e('On Sale Product display', wcps_textdomain);?></p>
647
  <label><input <?php if($wcps_product_on_sale=="yes") echo "checked";?> type="radio" name="wcps_product_on_sale" value="yes" />Yes</label>
648
  <label><input <?php if($wcps_product_on_sale=="no") echo "checked";?> type="radio" name="wcps_product_on_sale" value="no" />No</label>
readme.txt CHANGED
@@ -4,7 +4,7 @@
4
  Tags: carousel, product, slider, woocommerce, carousel slider, product slider, woocommerce slider, Woocommerce Product slider
5
  Requires at least: 3.8
6
  Tested up to: 4.7
7
- Stable tag: 1.12.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -93,6 +93,11 @@ then paste this shortcode anywhere in your page to display slider<br />
93
  == Changelog ==
94
 
95
 
 
 
 
 
 
96
  = 1.12.8 =
97
  * 11/05/2017 fix - Hide out of stock - 3.0.0.
98
 
4
  Tags: carousel, product, slider, woocommerce, carousel slider, product slider, woocommerce slider, Woocommerce Product slider
5
  Requires at least: 3.8
6
  Tested up to: 4.7
7
+ Stable tag: 1.12.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
93
  == Changelog ==
94
 
95
 
96
+
97
+ = 1.12.9 =
98
+ * 11/05/2017 update - exclude or include featured product.
99
+ * 11/05/2017 update - exclude or include out of stock product.
100
+
101
  = 1.12.8 =
102
  * 11/05/2017 fix - Hide out of stock - 3.0.0.
103
 
templates/query.php CHANGED
@@ -21,25 +21,24 @@ if ( ! defined('ABSPATH')) exit; // if direct access
21
  );
22
 
23
  }
 
24
 
 
 
 
 
 
 
 
25
 
26
 
27
 
28
 
29
 
30
 
31
- if($wcps_product_featured=='yes'){
32
-
33
- /*
34
 
35
- $meta_query[] = array(
36
-
37
- 'key' => '_featured',
38
- 'value' => 'yes',
39
- );
40
 
41
- */
42
-
43
 
44
  $tax_query[] = array(
45
  'taxonomy' => 'product_visibility',
@@ -47,11 +46,18 @@ if ( ! defined('ABSPATH')) exit; // if direct access
47
  'terms' => 'featured',
48
  'operator' => 'IN',
49
  );
50
-
51
-
52
-
53
-
54
- }
 
 
 
 
 
 
 
55
 
56
 
57
  if($wcps_product_on_sale=='yes'){
21
  );
22
 
23
  }
24
+ elseif($wcps_hide_out_of_stock=='no'){
25
 
26
+ $tax_query[] = array(
27
+ 'taxonomy' => 'product_visibility',
28
+ 'field' => 'name',
29
+ 'terms' => 'outofstock',
30
+ 'operator' => 'IN',
31
+ );
32
+ }
33
 
34
 
35
 
36
 
37
 
38
 
 
 
 
39
 
40
+ if($wcps_product_featured=='yes'){
 
 
 
 
41
 
 
 
42
 
43
  $tax_query[] = array(
44
  'taxonomy' => 'product_visibility',
46
  'terms' => 'featured',
47
  'operator' => 'IN',
48
  );
49
+
50
+ }
51
+ elseif($wcps_product_featured=='no'){
52
+
53
+ $tax_query[] = array(
54
+ 'taxonomy' => 'product_visibility',
55
+ 'field' => 'name',
56
+ 'terms' => 'featured',
57
+ 'operator' => 'NOT IN',
58
+ );
59
+
60
+ }
61
 
62
 
63
  if($wcps_product_on_sale=='yes'){
woocommerce-products-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Woocommerce Products Slider
4
  Plugin URI: http://pickplugins.com/items/woocommerce-product-slider-for-wordpress/
5
  Description: Fully responsive and mobile ready Carousel Slider for your woo-commerce product. unlimited slider anywhere via short-codes and easy admin setting.
6
- Version: 1.12.8
7
  Author: pickplugins
8
  Author URI: http://pickplugins.com
9
  Text Domain: woocommerce-products-slider
@@ -27,7 +27,7 @@ class WoocommerceProductsSlider{
27
  define('wcps_conatct_url', 'http://pickplugins.com/contact/' );
28
  define('wcps_qa_url', 'http://pickplugins.com/questions/' );
29
  define('wcps_plugin_name', 'Woocommerce Products Slider' );
30
- define('wcps_plugin_version', '1.12.8' );
31
  define('wcps_customer_type', 'free' ); // pro & free
32
  define('wcps_share_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
33
  define('wcps_tutorial_video_url', '//www.youtube.com/embed/B0sOSp3h9fE?rel=0' );
3
  Plugin Name: Woocommerce Products Slider
4
  Plugin URI: http://pickplugins.com/items/woocommerce-product-slider-for-wordpress/
5
  Description: Fully responsive and mobile ready Carousel Slider for your woo-commerce product. unlimited slider anywhere via short-codes and easy admin setting.
6
+ Version: 1.12.9
7
  Author: pickplugins
8
  Author URI: http://pickplugins.com
9
  Text Domain: woocommerce-products-slider
27
  define('wcps_conatct_url', 'http://pickplugins.com/contact/' );
28
  define('wcps_qa_url', 'http://pickplugins.com/questions/' );
29
  define('wcps_plugin_name', 'Woocommerce Products Slider' );
30
+ define('wcps_plugin_version', '1.12.9' );
31
  define('wcps_customer_type', 'free' ); // pro & free
32
  define('wcps_share_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
33
  define('wcps_tutorial_video_url', '//www.youtube.com/embed/B0sOSp3h9fE?rel=0' );