Woocommerce Products Slider - Version 1.12.11

Version Description

  • 23/05/2017 add - display tags on slider.
    • 23/05/2017 add - display SKU on slider.
    • 23/05/2017 add - Query orderBy menu order.
Download this release

Release Info

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

Code changes from version 1.12.10 to 1.12.11

assets/front/css/style.css CHANGED
@@ -509,6 +509,15 @@ right: -30px;
509
  text-decoration: none;
510
  }
511
 
 
 
 
 
 
 
 
 
 
512
  .wcps-container .wcps-items-rating {
513
  padding: 5px 12px;
514
  }
509
  text-decoration: none;
510
  }
511
 
512
+ .wcps-container .wcps-items-tag {
513
+ padding: 5px 12px;
514
+ }
515
+
516
+ .wcps-container .wcps-items-tag a {
517
+ text-decoration: none;
518
+ }
519
+
520
+
521
  .wcps-container .wcps-items-rating {
522
  padding: 5px 12px;
523
  }
includes/class-functions.php CHANGED
@@ -63,11 +63,13 @@ class class_wcps_functions {
63
  'title'=>__('Title',wcps_textdomain),
64
  'excerpt'=>__('Excerpt',wcps_textdomain),
65
  'category'=>__('Category',wcps_textdomain),
 
66
  'price'=>__('Price',wcps_textdomain),
67
  'rating'=>__('Rating',wcps_textdomain),
68
  'cart'=>__('Cart',wcps_textdomain),
69
  'sale'=>__('Sale',wcps_textdomain),
70
  'featured'=>__('Featured', wcps_textdomain),
 
71
  );
72
  return $grid_items;
73
  }
63
  'title'=>__('Title',wcps_textdomain),
64
  'excerpt'=>__('Excerpt',wcps_textdomain),
65
  'category'=>__('Category',wcps_textdomain),
66
+ 'tag'=>__('Tags',wcps_textdomain),
67
  'price'=>__('Price',wcps_textdomain),
68
  'rating'=>__('Rating',wcps_textdomain),
69
  'cart'=>__('Cart',wcps_textdomain),
70
  'sale'=>__('Sale',wcps_textdomain),
71
  'featured'=>__('Featured', wcps_textdomain),
72
+ 'sku'=>__('SKU', wcps_textdomain),
73
  );
74
  return $grid_items;
75
  }
includes/class-shortcodes.php CHANGED
@@ -80,6 +80,11 @@ class class_wcps_shortcodes{
80
 
81
  global $product;
82
 
 
 
 
 
 
83
  $wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
84
 
85
  $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
80
 
81
  global $product;
82
 
83
+ $sku = $product->get_sku();
84
+
85
+ //echo var_export($sku, true);
86
+
87
+
88
  $wcps_featured = get_post_meta( get_the_ID(), '_featured', true );
89
 
90
  $wcps_thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $wcps_items_thumb_size );
includes/meta.php CHANGED
@@ -185,6 +185,16 @@ function meta_boxes_wcps_input( $post ) {
185
  $wcps_items_cat_text_align = get_post_meta( $post->ID, 'wcps_items_cat_text_align', true );
186
  $wcps_items_cat_font_color = get_post_meta( $post->ID, 'wcps_items_cat_font_color', true );
187
 
 
 
 
 
 
 
 
 
 
 
188
  $wcps_items_price_format = get_post_meta( $post->ID, 'wcps_items_price_format', true );
189
  $wcps_items_price_color = get_post_meta( $post->ID, 'wcps_items_price_color', true );
190
  $wcps_items_price_font_size = get_post_meta( $post->ID, 'wcps_items_price_font_size', true );
@@ -625,7 +635,7 @@ function meta_boxes_wcps_input( $post ) {
625
  <option value="title" <?php if($wcps_query_orderby=="title") echo "selected"; ?>><?php _e('Title',wcps_textdomain);?></option>
626
  <option value="name" <?php if($wcps_query_orderby=="name") echo "selected"; ?>><?php _e('Name',wcps_textdomain);?></option>
627
  <option value="type" <?php if($wcps_query_orderby=="type") echo "selected"; ?>><?php _e('Type',wcps_textdomain);?></option>
628
-
629
 
630
  </select>
631
  </div>
@@ -671,7 +681,7 @@ function meta_boxes_wcps_input( $post ) {
671
  <div class="option-box">
672
  <p class="option-title"><?php _e('Slider items.', wcps_textdomain); ?></p>
673
  <p class="option-info"></p>
674
- <div class="button wcps_grid_items_reset" wcps_id="<?php echo $wcps_id; ?>"><?php _e('Reset', wcps_textdomain);?></div>
675
  <br /><br />
676
 
677
  <?php
@@ -940,20 +950,20 @@ function meta_boxes_wcps_input( $post ) {
940
 
941
  ?>
942
 
943
-
944
  <div class="option-box">
945
  <p class="option-title"><?php _e('Sale marker icon url', wcps_textdomain);?></p>
946
  <p class="option-info"></p>
947
  <input type="text" name="wcps_sale_icon_url" placeholder="" id="wcps_sale_icon_url" value="<?php echo $wcps_sale_icon_url; ?>" />
948
  </div>
949
-
950
-
951
-
952
  <?php
953
 
954
 
955
  }
956
 
 
 
 
957
 
958
  elseif($item_key == 'title'){
959
 
@@ -1144,50 +1154,90 @@ function meta_boxes_wcps_input( $post ) {
1144
 
1145
  elseif($item_key=='category'){
1146
  ?>
1147
-
1148
-
1149
  <div class="option-box">
1150
  <p class="option-title"><?php _e('Items category font size', wcps_textdomain);?></p>
1151
  <p class="option-info"></p>
1152
  <input type="text" name="wcps_items_cat_font_size" placeholder="14px" id="wcps_items_cat_font_size" value="<?php echo $wcps_items_cat_font_size; ?>" />
1153
  </div>
1154
-
1155
-
1156
  <div class="option-box">
1157
  <p class="option-title"><?php _e('Category text align', wcps_textdomain);?></p>
1158
 
1159
-
1160
  <select name="wcps_items_cat_text_align" >
1161
  <option value="left" <?php if($wcps_items_cat_text_align=="left")echo "selected"; ?>><?php _e('Left', wcps_textdomain);?></option>
1162
  <option value="right" <?php if($wcps_items_cat_text_align=="right")echo "selected"; ?>><?php _e('Right', wcps_textdomain);?></option>
1163
  <option value="center" <?php if($wcps_items_cat_text_align=="center")echo "selected"; ?>><?php _e('Center', wcps_textdomain);?></option>
1164
  </select>
1165
 
1166
- </div>
1167
-
1168
-
1169
-
1170
-
1171
  <div class="option-box">
1172
  <p class="option-title"><?php _e('Items category font color', wcps_textdomain);?></p>
1173
  <p class="option-info"></p>
1174
  <input type="text" class="wcps_color" name="wcps_items_cat_font_color" placeholder="" id="wcps_items_cat_font_color" value="<?php echo $wcps_items_cat_font_color; ?>" />
1175
  </div>
1176
-
1177
-
1178
-
1179
-
1180
-
1181
-
1182
-
1183
  <?php
1184
-
1185
-
1186
  }
1187
-
1188
-
1189
-
1190
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1191
 
1192
 
1193
 
@@ -1451,7 +1501,17 @@ function meta_boxes_wcps_save( $post_id ) {
1451
  $wcps_items_cat_font_size = sanitize_text_field( $_POST['wcps_items_cat_font_size'] );
1452
  $wcps_items_cat_text_align = sanitize_text_field( $_POST['wcps_items_cat_text_align'] );
1453
  $wcps_items_cat_font_color = sanitize_text_field( $_POST['wcps_items_cat_font_color'] );
1454
-
 
 
 
 
 
 
 
 
 
 
1455
  //$wcps_featured_display = sanitize_text_field( $_POST['wcps_featured_display'] );
1456
  $wcps_featured_icon_url = sanitize_text_field( $_POST['wcps_featured_icon_url'] );
1457
 
@@ -1555,8 +1615,18 @@ function meta_boxes_wcps_save( $post_id ) {
1555
  //update_post_meta( $post_id, 'wcps_cat_display', $wcps_cat_display );
1556
  update_post_meta( $post_id, 'wcps_items_cat_font_size', $wcps_items_cat_font_size );
1557
  update_post_meta( $post_id, 'wcps_items_cat_text_align', $wcps_items_cat_text_align );
1558
- update_post_meta( $post_id, 'wcps_items_cat_font_color', $wcps_items_cat_font_color );
1559
-
 
 
 
 
 
 
 
 
 
 
1560
  //update_post_meta( $post_id, 'wcps_featured_display', $wcps_featured_display );
1561
  update_post_meta( $post_id, 'wcps_featured_icon_url', $wcps_featured_icon_url );
1562
 
185
  $wcps_items_cat_text_align = get_post_meta( $post->ID, 'wcps_items_cat_text_align', true );
186
  $wcps_items_cat_font_color = get_post_meta( $post->ID, 'wcps_items_cat_font_color', true );
187
 
188
+ $wcps_items_tag_font_size = get_post_meta( $post->ID, 'wcps_items_tag_font_size', true );
189
+ $wcps_items_tag_text_align = get_post_meta( $post->ID, 'wcps_items_tag_text_align', true );
190
+ $wcps_items_tag_font_color = get_post_meta( $post->ID, 'wcps_items_tag_font_color', true );
191
+
192
+ $wcps_items_sku_font_size = get_post_meta( $post->ID, 'wcps_items_sku_font_size', true );
193
+ $wcps_items_sku_text_align = get_post_meta( $post->ID, 'wcps_items_sku_text_align', true );
194
+ $wcps_items_sku_font_color = get_post_meta( $post->ID, 'wcps_items_sku_font_color', true );
195
+
196
+
197
+
198
  $wcps_items_price_format = get_post_meta( $post->ID, 'wcps_items_price_format', true );
199
  $wcps_items_price_color = get_post_meta( $post->ID, 'wcps_items_price_color', true );
200
  $wcps_items_price_font_size = get_post_meta( $post->ID, 'wcps_items_price_font_size', true );
635
  <option value="title" <?php if($wcps_query_orderby=="title") echo "selected"; ?>><?php _e('Title',wcps_textdomain);?></option>
636
  <option value="name" <?php if($wcps_query_orderby=="name") echo "selected"; ?>><?php _e('Name',wcps_textdomain);?></option>
637
  <option value="type" <?php if($wcps_query_orderby=="type") echo "selected"; ?>><?php _e('Type',wcps_textdomain);?></option>
638
+ <option value="menu_order" <?php if($wcps_query_orderby=="menu_order") echo "selected"; ?>><?php _e('Menu order',wcps_textdomain);?></option>
639
 
640
  </select>
641
  </div>
681
  <div class="option-box">
682
  <p class="option-title"><?php _e('Slider items.', wcps_textdomain); ?></p>
683
  <p class="option-info"></p>
684
+ <div class="button wcps_grid_items_reset" wcps_id="<?php echo $wcps_id; ?>"><?php _e('Reset order', wcps_textdomain);?></div>
685
  <br /><br />
686
 
687
  <?php
950
 
951
  ?>
952
 
 
953
  <div class="option-box">
954
  <p class="option-title"><?php _e('Sale marker icon url', wcps_textdomain);?></p>
955
  <p class="option-info"></p>
956
  <input type="text" name="wcps_sale_icon_url" placeholder="" id="wcps_sale_icon_url" value="<?php echo $wcps_sale_icon_url; ?>" />
957
  </div>
958
+
 
 
959
  <?php
960
 
961
 
962
  }
963
 
964
+
965
+
966
+
967
 
968
  elseif($item_key == 'title'){
969
 
1154
 
1155
  elseif($item_key=='category'){
1156
  ?>
 
 
1157
  <div class="option-box">
1158
  <p class="option-title"><?php _e('Items category font size', wcps_textdomain);?></p>
1159
  <p class="option-info"></p>
1160
  <input type="text" name="wcps_items_cat_font_size" placeholder="14px" id="wcps_items_cat_font_size" value="<?php echo $wcps_items_cat_font_size; ?>" />
1161
  </div>
 
 
1162
  <div class="option-box">
1163
  <p class="option-title"><?php _e('Category text align', wcps_textdomain);?></p>
1164
 
 
1165
  <select name="wcps_items_cat_text_align" >
1166
  <option value="left" <?php if($wcps_items_cat_text_align=="left")echo "selected"; ?>><?php _e('Left', wcps_textdomain);?></option>
1167
  <option value="right" <?php if($wcps_items_cat_text_align=="right")echo "selected"; ?>><?php _e('Right', wcps_textdomain);?></option>
1168
  <option value="center" <?php if($wcps_items_cat_text_align=="center")echo "selected"; ?>><?php _e('Center', wcps_textdomain);?></option>
1169
  </select>
1170
 
1171
+ </div>
 
 
 
 
1172
  <div class="option-box">
1173
  <p class="option-title"><?php _e('Items category font color', wcps_textdomain);?></p>
1174
  <p class="option-info"></p>
1175
  <input type="text" class="wcps_color" name="wcps_items_cat_font_color" placeholder="" id="wcps_items_cat_font_color" value="<?php echo $wcps_items_cat_font_color; ?>" />
1176
  </div>
 
 
 
 
 
 
 
1177
  <?php
 
 
1178
  }
1179
+
1180
+
1181
+ elseif( $item_key=='tag'){
1182
+ ?>
1183
+ <div class="option-box">
1184
+ <p class="option-title"><?php _e('Items tag font size', wcps_textdomain);?></p>
1185
+ <p class="option-info"></p>
1186
+ <input type="text" name="wcps_items_tag_font_size" placeholder="14px" id="wcps_items_tag_font_size" value="<?php echo $wcps_items_tag_font_size; ?>" />
1187
+ </div>
1188
+ <div class="option-box">
1189
+ <p class="option-title"><?php _e('Tag text align', wcps_textdomain);?></p>
1190
+
1191
+ <select name="wcps_items_tag_text_align" >
1192
+ <option value="left" <?php if($wcps_items_tag_text_align=="left")echo "selected"; ?>><?php _e('Left', wcps_textdomain);?></option>
1193
+ <option value="right" <?php if($wcps_items_tag_text_align=="right")echo "selected"; ?>><?php _e('Right', wcps_textdomain);?></option>
1194
+ <option value="center" <?php if($wcps_items_tag_text_align=="center")echo "selected"; ?>><?php _e('Center', wcps_textdomain);?></option>
1195
+ </select>
1196
+
1197
+ </div>
1198
+ <div class="option-box">
1199
+ <p class="option-title"><?php _e('Items tag font color', wcps_textdomain);?></p>
1200
+ <p class="option-info"></p>
1201
+ <input type="text" class="wcps_color" name="wcps_items_tag_font_color" placeholder="" id="wcps_items_tag_font_color" value="<?php echo $wcps_items_tag_font_color; ?>" />
1202
+ </div>
1203
+ <?php
1204
+ }
1205
+
1206
+
1207
+ elseif( $item_key=='sku'){
1208
+ ?>
1209
+ <div class="option-box">
1210
+ <p class="option-title"><?php _e('Items SKU font size', wcps_textdomain);?></p>
1211
+ <p class="option-info"></p>
1212
+ <input type="text" name="wcps_items_sku_font_size" placeholder="14px" id="wcps_items_sku_font_size" value="<?php echo $wcps_items_sku_font_size; ?>" />
1213
+ </div>
1214
+ <div class="option-box">
1215
+ <p class="option-title"><?php _e('SKU text align', wcps_textdomain);?></p>
1216
+
1217
+ <select name="wcps_items_sku_text_align" >
1218
+ <option value="left" <?php if($wcps_items_sku_text_align=="left")echo "selected"; ?>><?php _e('Left', wcps_textdomain);?></option>
1219
+ <option value="right" <?php if($wcps_items_sku_text_align=="right")echo "selected"; ?>><?php _e('Right', wcps_textdomain);?></option>
1220
+ <option value="center" <?php if($wcps_items_sku_text_align=="center")echo "selected"; ?>><?php _e('Center', wcps_textdomain);?></option>
1221
+ </select>
1222
+
1223
+ </div>
1224
+ <div class="option-box">
1225
+ <p class="option-title"><?php _e('Items SKU font color', wcps_textdomain);?></p>
1226
+ <p class="option-info"></p>
1227
+ <input type="text" class="wcps_color" name="wcps_items_sku_font_color" placeholder="" id="wcps_items_sku_font_color" value="<?php echo $wcps_items_sku_font_color; ?>" />
1228
+ </div>
1229
+ <?php
1230
+ }
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+
1241
 
1242
 
1243
 
1501
  $wcps_items_cat_font_size = sanitize_text_field( $_POST['wcps_items_cat_font_size'] );
1502
  $wcps_items_cat_text_align = sanitize_text_field( $_POST['wcps_items_cat_text_align'] );
1503
  $wcps_items_cat_font_color = sanitize_text_field( $_POST['wcps_items_cat_font_color'] );
1504
+
1505
+ $wcps_items_tag_font_size = sanitize_text_field( $_POST['wcps_items_tag_font_size'] );
1506
+ $wcps_items_tag_text_align = sanitize_text_field( $_POST['wcps_items_tag_text_align'] );
1507
+ $wcps_items_tag_font_color = sanitize_text_field( $_POST['wcps_items_tag_font_color'] );
1508
+
1509
+ $wcps_items_sku_font_size = sanitize_text_field( $_POST['wcps_items_sku_font_size'] );
1510
+ $wcps_items_sku_text_align = sanitize_text_field( $_POST['wcps_items_sku_text_align'] );
1511
+ $wcps_items_sku_font_color = sanitize_text_field( $_POST['wcps_items_sku_font_color'] );
1512
+
1513
+
1514
+
1515
  //$wcps_featured_display = sanitize_text_field( $_POST['wcps_featured_display'] );
1516
  $wcps_featured_icon_url = sanitize_text_field( $_POST['wcps_featured_icon_url'] );
1517
 
1615
  //update_post_meta( $post_id, 'wcps_cat_display', $wcps_cat_display );
1616
  update_post_meta( $post_id, 'wcps_items_cat_font_size', $wcps_items_cat_font_size );
1617
  update_post_meta( $post_id, 'wcps_items_cat_text_align', $wcps_items_cat_text_align );
1618
+ update_post_meta( $post_id, 'wcps_items_cat_font_color', $wcps_items_cat_font_color );
1619
+
1620
+ update_post_meta( $post_id, 'wcps_items_tag_font_size', $wcps_items_tag_font_size );
1621
+ update_post_meta( $post_id, 'wcps_items_tag_text_align', $wcps_items_tag_text_align );
1622
+ update_post_meta( $post_id, 'wcps_items_tag_font_color', $wcps_items_tag_font_color );
1623
+
1624
+ update_post_meta( $post_id, 'wcps_items_sku_font_size', $wcps_items_sku_font_size );
1625
+ update_post_meta( $post_id, 'wcps_items_sku_text_align', $wcps_items_sku_text_align );
1626
+ update_post_meta( $post_id, 'wcps_items_sku_font_color', $wcps_items_sku_font_color );
1627
+
1628
+
1629
+
1630
  //update_post_meta( $post_id, 'wcps_featured_display', $wcps_featured_display );
1631
  update_post_meta( $post_id, 'wcps_featured_icon_url', $wcps_featured_icon_url );
1632
 
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.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -92,7 +92,10 @@ then paste this shortcode anywhere in your page to display slider<br />
92
 
93
  == Changelog ==
94
 
95
-
 
 
 
96
 
97
  = 1.12.10 =
98
  * 11/05/2017 remove - removed global $wp_query variable to avoid conflict.
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.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
92
 
93
  == Changelog ==
94
 
95
+ = 1.12.11 =
96
+ * 23/05/2017 add - display tags on slider.
97
+ * 23/05/2017 add - display SKU on slider.
98
+ * 23/05/2017 add - Query orderBy menu order.
99
 
100
  = 1.12.10 =
101
  * 11/05/2017 remove - removed global $wp_query variable to avoid conflict.
templates/custom-css.php CHANGED
@@ -67,8 +67,32 @@ if ( ! defined('ABSPATH')) exit; // if direct access
67
  text-align:'.$wcps_items_cat_text_align.';
68
  color:'.$wcps_items_cat_font_color.';
69
  }
70
- ';
 
 
 
 
 
 
 
 
 
 
 
 
71
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  $html.= '
73
 
74
  #wcps-'.$post_id.' .wcps-items .wcps-items-price{
67
  text-align:'.$wcps_items_cat_text_align.';
68
  color:'.$wcps_items_cat_font_color.';
69
  }
70
+ ';
71
+
72
+
73
+ $html.= '
74
+
75
+ #wcps-'.$post_id.' .wcps-items .wcps-items-tag, #wcps-'.$post_id.' .wcps-items .wcps-items-tag a{
76
+ font-size:'.$wcps_items_tag_font_size.';
77
+ text-align:'.$wcps_items_tag_text_align.';
78
+ color:'.$wcps_items_tag_font_color.';
79
+ }
80
+ ';
81
+
82
+ $html.= '
83
 
84
+ #wcps-'.$post_id.' .wcps-items .wcps-items-sku{
85
+ font-size:'.$wcps_items_sku_font_size.';
86
+ text-align:'.$wcps_items_sku_text_align.';
87
+ color:'.$wcps_items_sku_font_color.';
88
+ }
89
+ ';
90
+
91
+
92
+
93
+
94
+
95
+
96
  $html.= '
97
 
98
  #wcps-'.$post_id.' .wcps-items .wcps-items-price{
templates/variables.php CHANGED
@@ -152,7 +152,15 @@ if ( ! defined('ABSPATH')) exit; // if direct access
152
  if(empty($wcps_items_cat_font_color)){
153
  $wcps_items_cat_font_color = '#626262';
154
  }
155
-
 
 
 
 
 
 
 
 
156
  $wcps_grid_items = get_post_meta( $post_id, 'wcps_grid_items', true );
157
  $wcps_grid_items_hide = get_post_meta( $post_id, 'wcps_grid_items_hide', true );
158
 
152
  if(empty($wcps_items_cat_font_color)){
153
  $wcps_items_cat_font_color = '#626262';
154
  }
155
+
156
+ $wcps_items_tag_font_size = get_post_meta( $post_id, 'wcps_items_tag_font_size', true );
157
+ $wcps_items_tag_text_align = get_post_meta( $post_id, 'wcps_items_tag_text_align', true );
158
+ $wcps_items_tag_font_color = get_post_meta( $post_id, 'wcps_items_tag_font_color', true );
159
+
160
+ $wcps_items_sku_font_size = get_post_meta( $post_id, 'wcps_items_sku_font_size', true );
161
+ $wcps_items_sku_text_align = get_post_meta( $post_id, 'wcps_items_sku_text_align', true );
162
+ $wcps_items_sku_font_color = get_post_meta( $post_id, 'wcps_items_sku_font_color', true );
163
+
164
  $wcps_grid_items = get_post_meta( $post_id, 'wcps_grid_items', true );
165
  $wcps_grid_items_hide = get_post_meta( $post_id, 'wcps_grid_items_hide', true );
166
 
templates/wcps-sku.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * @Author PickPlugins
5
+ * Copyright: 2015 PickPlugins
6
+ */
7
+
8
+ if ( ! defined('ABSPATH')) exit; // if direct access
9
+
10
+
11
+
12
+ $sku = apply_filters( 'wcps_filter_sku', $sku );
13
+
14
+ $html.= '<div class="wcps-items-sku" >'.$sku.'</div>';
templates/wcps-tag.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * @Author PickPlugins
5
+ * Copyright: 2015 PickPlugins
6
+ */
7
+
8
+ if ( ! defined('ABSPATH')) exit; // if direct access
9
+
10
+ $product_cats = wp_get_post_terms( get_the_ID(), 'product_tag' );
11
+ $cat_link = array();
12
+ $cat_name = array();
13
+
14
+ $cat_html = '';
15
+
16
+ if(!empty($product_cats))
17
+ foreach($product_cats as $key => $cat){
18
+
19
+ $cat_link = get_term_link( $cat->term_id, 'product_cat' );
20
+ $cat_name = $cat->name;
21
+
22
+ $cat_html.= '<a href="'.$cat_link.'">'.$cat_name.'</a>, ';
23
+ }
24
+
25
+ $html.= '<div class="wcps-items-tag" >'.$cat_html.'</div>';
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.10
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.10' );
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.11
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.11' );
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' );