Woocommerce Products Slider - Version 1.12.21

Version Description

  • 16/05/2018 fix - remove last comma on categories.
Download this release

Release Info

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

Code changes from version 1.12.20 to 1.12.21

readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Woocommerce Products Slider ===
2
- Contributors: pickplugins
3
- Donate link: http://pickplugins.com
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.9
7
- Stable tag: 1.12.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,11 +16,12 @@
16
  A premium quality carousel slider to slide your woo-commerce product. easy to use via shortcode anywhere
17
 
18
 
19
- ### Woocommerce Products Slider by http://pickplugins.com
20
 
21
- * [Buy Premium !»](http://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/?ref=wordpress.org)
22
- * [See the Live demo !»](http://www.pickplugins.com/demo/woocommerce-products-slider/?ref=wordpress.org)
23
- * [Support !»](https://www.pickplugins.com/support/)
 
24
 
25
 
26
 
@@ -47,7 +48,7 @@ A premium quality carousel slider to slide your woo-commerce product. easy to us
47
  * Custom word count Excerpt, Custom View product(read more) text, Custom Font Size , Font color & Text Align.
48
  * Items Category display, Font Size, Font color, Text Align.
49
  * Display Price 3 format on slider, Full price, sale price, regular price.
50
- * Csutom ratings Font Size, Ratings Color.
51
  * Add to cart button default & Custom style, custom Background Color, Text Color.
52
  * Custom Sale marker icon.
53
  * Custom Featured marker icon.
@@ -93,6 +94,8 @@ then paste this shortcode anywhere in your page to display slider<br />
93
  == Changelog ==
94
 
95
 
 
 
96
 
97
  = 1.12.20 =
98
  * 20/02/2018 fix - PHP error issue fixed.
1
+ === PickPlugins Product Slider for WooCommerce ===
2
+ Contributors: PickPlugins
3
+ Donate link: https://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/?ref=wordpress.org
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: 5.2
7
+ Stable tag: 1.12.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
  A premium quality carousel slider to slide your woo-commerce product. easy to use via shortcode anywhere
17
 
18
 
19
+ ### PickPlugins Product Slider for WooCommerce by http://pickplugins.com
20
 
21
+ * [Buy Premium !&raquo;](https://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/?ref=wordpress.org)
22
+ * [See the Live demo !&raquo;](https://www.pickplugins.com/demo/woocommerce-products-slider/?ref=wordpress.org)
23
+ * [Support !&raquo;](https://www.pickplugins.com/support/?ref=wordpress.org)
24
+ * [Documentation !&raquo;](https://www.pickplugins.com/documentation/woocommerce-products-slider/?ref=wordpress.org)
25
 
26
 
27
 
48
  * Custom word count Excerpt, Custom View product(read more) text, Custom Font Size , Font color & Text Align.
49
  * Items Category display, Font Size, Font color, Text Align.
50
  * Display Price 3 format on slider, Full price, sale price, regular price.
51
+ * Custom ratings Font Size, Ratings Color.
52
  * Add to cart button default & Custom style, custom Background Color, Text Color.
53
  * Custom Sale marker icon.
54
  * Custom Featured marker icon.
94
  == Changelog ==
95
 
96
 
97
+ = 1.12.21 =
98
+ * 16/05/2018 fix - remove last comma on categories.
99
 
100
  = 1.12.20 =
101
  * 20/02/2018 fix - PHP error issue fixed.
templates/wcps-category.php CHANGED
@@ -11,14 +11,23 @@ if ( ! defined('ABSPATH')) exit; // if direct access
11
  $cat_link = array();
12
  $cat_name = array();
13
 
14
- $cat_html = '';
15
- foreach($product_cats as $key => $cat)
16
- {
 
 
17
 
18
  $cat_link = get_term_link( $cat->term_id, 'product_cat' );
19
  $cat_name = $cat->name;
20
 
21
- $cat_html.= '<a href="'.$cat_link.'">'.$cat_name.'</a>, ';
 
 
 
 
22
  }
 
 
 
23
 
24
  $html.= '<div class="wcps-items-category" >'.$cat_html.'</div>';
11
  $cat_link = array();
12
  $cat_name = array();
13
 
14
+ $cat_html = '';
15
+
16
+ $product_cats_count = count($product_cats);
17
+ $i=1;
18
+ foreach($product_cats as $key => $cat){
19
 
20
  $cat_link = get_term_link( $cat->term_id, 'product_cat' );
21
  $cat_name = $cat->name;
22
 
23
+ $cat_html.= '<a href="'.$cat_link.'">'.$cat_name.'</a>';
24
+
25
+ if($product_cats_count > $i){
26
+ $cat_html.= '<span class="cat-separator">, </span>';
27
+
28
  }
29
+
30
+ $i++;
31
+ }
32
 
33
  $html.= '<div class="wcps-items-category" >'.$cat_html.'</div>';
woocommerce-products-slider.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  /*
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.20
7
- Author: pickplugins
8
  Author URI: http://pickplugins.com
9
  Text Domain: woocommerce-products-slider
10
  WC requires at least: 3.0.0
11
- WC tested up to: 3.2
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
  */
@@ -24,12 +24,12 @@ class WoocommerceProductsSlider{
24
  define('wcps_plugin_dir', plugin_dir_path( __FILE__ ) );
25
  define('wcps_wp_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
26
  define('wcps_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/woocommerce-products-slider' );
27
- define('wcps_pro_url','http://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/' );
28
- define('wcps_demo_url', 'http://pickplugins.com/demo/woocommerce-products-slider/' );
29
- define('wcps_conatct_url', 'http://pickplugins.com/contact/' );
30
- define('wcps_qa_url', 'https://www.pickplugins.com/support/' );
31
  define('wcps_plugin_name', 'Woocommerce Products Slider' );
32
- define('wcps_plugin_version', '1.12.20');
33
  define('wcps_customer_type', 'free' ); // pro & free
34
  define('wcps_share_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
35
  define('wcps_tutorial_video_url', '' );
1
  <?php
2
  /*
3
+ Plugin Name: PickPlugins Product Slider for WooCommerce
4
+ Plugin URI: https://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/?ref=dashboard
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.21
7
+ Author: PickPlugins
8
  Author URI: http://pickplugins.com
9
  Text Domain: woocommerce-products-slider
10
  WC requires at least: 3.0.0
11
+ WC tested up to: 3.3
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
  */
24
  define('wcps_plugin_dir', plugin_dir_path( __FILE__ ) );
25
  define('wcps_wp_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
26
  define('wcps_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/woocommerce-products-slider' );
27
+ define('wcps_pro_url','https://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/?ref=dashboard' );
28
+ define('wcps_demo_url', 'http://pickplugins.com/demo/woocommerce-products-slider//?ref=dashboard' );
29
+ define('wcps_conatct_url', 'http://pickplugins.com/contact//?ref=dashboard' );
30
+ define('wcps_qa_url', 'https://www.pickplugins.com/support/?ref=dashboard' );
31
  define('wcps_plugin_name', 'Woocommerce Products Slider' );
32
+ define('wcps_plugin_version', '1.12.21');
33
  define('wcps_customer_type', 'free' ); // pro & free
34
  define('wcps_share_url', 'https://wordpress.org/plugins/woocommerce-products-slider/' );
35
  define('wcps_tutorial_video_url', '' );