WPC Smart Wishlist for WooCommerce - Version 4.2.1

Version Description

  • Fixed: Stock status of item product
  • Added: Filter hook 'woosw_item_stock' & 'woosw_item_add_to_cart'
Download this release

Release Info

Developer wpclever
Plugin Icon 128x128 WPC Smart Wishlist for WooCommerce
Version 4.2.1
Comparing to
See all releases

Code changes from version 4.2.0 to 4.2.1

assets/css/frontend.css CHANGED
@@ -303,7 +303,7 @@ body.rtl .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-conte
303
  margin-right: 0;
304
  }
305
 
306
- .woosw-popup .woosw-items .woosw-item .woosw-item-inner .woosw-item--info {
307
  flex-grow: 1;
308
  }
309
 
@@ -357,6 +357,10 @@ body.rtl .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-conte
357
  box-shadow: none;
358
  }
359
 
 
 
 
 
360
  .woosw-popup .woosw-items .woosw-item .woosw-item--name, .woosw-popup .woosw-items .woosw-item .woosw-item--name a {
361
  font-weight: 700;
362
  text-decoration: none;
303
  margin-right: 0;
304
  }
305
 
306
+ .woosw-popup .woosw-items .woosw-item .woosw-item--info {
307
  flex-grow: 1;
308
  }
309
 
357
  box-shadow: none;
358
  }
359
 
360
+ .woosw-popup .woosw-items .woosw-item .woosw-item--stock p {
361
+ margin: 0;
362
+ }
363
+
364
  .woosw-popup .woosw-items .woosw-item .woosw-item--name, .woosw-popup .woosw-items .woosw-item .woosw-item--name a {
365
  font-weight: 700;
366
  text-decoration: none;
languages/woo-smart-wishlist.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the WPC Smart Wishlist for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPC Smart Wishlist for WooCommerce 4.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-smart-wishlist\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-06-17T04:03:22+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: woo-smart-wishlist\n"
@@ -712,14 +712,6 @@ msgstr ""
712
  msgid "Community support"
713
  msgstr ""
714
 
715
- #: wpc-smart-wishlist.php:1700
716
- msgid "In stock"
717
- msgstr ""
718
-
719
- #: wpc-smart-wishlist.php:1700
720
- msgid "Out of stock"
721
- msgstr ""
722
-
723
  #: wpc-smart-wishlist.php:2192
724
  #: wpc-smart-wishlist.php:2195
725
  #: wpc-smart-wishlist.php:2259
2
  # This file is distributed under the same license as the WPC Smart Wishlist for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPC Smart Wishlist for WooCommerce 4.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-smart-wishlist\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-06-20T01:52:24+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: woo-smart-wishlist\n"
712
  msgid "Community support"
713
  msgstr ""
714
 
 
 
 
 
 
 
 
 
715
  #: wpc-smart-wishlist.php:2192
716
  #: wpc-smart-wishlist.php:2195
717
  #: wpc-smart-wishlist.php:2259
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpclever.net
4
  Tags: woocommerce, woo, wpc, smart, wishlist, wish list
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
- Stable tag: 4.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -106,6 +106,10 @@ Example:
106
 
107
  == Changelog ==
108
 
 
 
 
 
109
  = 4.2.0 =
110
  * Fixed: Minor JS/CSS issues
111
 
4
  Tags: woocommerce, woo, wpc, smart, wishlist, wish list
5
  Requires at least: 4.0
6
  Tested up to: 6.0
7
+ Stable tag: 4.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
106
 
107
  == Changelog ==
108
 
109
+ = 4.2.1 =
110
+ * Fixed: Stock status of item product
111
+ * Added: Filter hook 'woosw_item_stock' & 'woosw_item_add_to_cart'
112
+
113
  = 4.2.0 =
114
  * Fixed: Minor JS/CSS issues
115
 
wpc-smart-wishlist.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WPC Smart Wishlist for WooCommerce
4
  Plugin URI: https://wpclever.net/
5
  Description: WPC Smart Wishlist is a simple but powerful tool that can help your customer save products for buy later.
6
- Version: 4.2.0
7
  Author: WPClever
8
  Author URI: https://wpclever.net
9
  Text Domain: woo-smart-wishlist
@@ -16,7 +16,7 @@ WC tested up to: 6.6
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
19
- ! defined( 'WOOSW_VERSION' ) && define( 'WOOSW_VERSION', '4.2.0' );
20
  ! defined( 'WOOSW_FILE' ) && define( 'WOOSW_FILE', __FILE__ );
21
  ! defined( 'WOOSW_URI' ) && define( 'WOOSW_URI', plugin_dir_url( __FILE__ ) );
22
  ! defined( 'WOOSW_DIR' ) && define( 'WOOSW_DIR', plugin_dir_path( __FILE__ ) );
@@ -1697,8 +1697,8 @@ if ( ! function_exists( 'woosw_init' ) ) {
1697
 
1698
  // action
1699
  echo '<' . $td_tag . ' class="woosw-item--actions">';
1700
- echo '<div class="woosw-item--stock">' . ( $product->is_in_stock() ? esc_html_e( 'In stock', 'woo-smart-wishlist' ) : esc_html_e( 'Out of stock', 'woo-smart-wishlist' ) ) . '</div>';
1701
- echo '<div class="woosw-item--add">' . do_shortcode( '[add_to_cart style="" show_price="false" id="' . esc_attr( $product_id ) . '"]' ) . '</div>';
1702
  do_action( 'woosw_wishlist_item_actions', $product, $product_id, $key );
1703
  echo '</' . $td_tag . '>';
1704
 
3
  Plugin Name: WPC Smart Wishlist for WooCommerce
4
  Plugin URI: https://wpclever.net/
5
  Description: WPC Smart Wishlist is a simple but powerful tool that can help your customer save products for buy later.
6
+ Version: 4.2.1
7
  Author: WPClever
8
  Author URI: https://wpclever.net
9
  Text Domain: woo-smart-wishlist
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
19
+ ! defined( 'WOOSW_VERSION' ) && define( 'WOOSW_VERSION', '4.2.1' );
20
  ! defined( 'WOOSW_FILE' ) && define( 'WOOSW_FILE', __FILE__ );
21
  ! defined( 'WOOSW_URI' ) && define( 'WOOSW_URI', plugin_dir_url( __FILE__ ) );
22
  ! defined( 'WOOSW_DIR' ) && define( 'WOOSW_DIR', plugin_dir_path( __FILE__ ) );
1697
 
1698
  // action
1699
  echo '<' . $td_tag . ' class="woosw-item--actions">';
1700
+ echo '<div class="woosw-item--stock">' . apply_filters( 'woosw_item_stock', wc_get_stock_html( $product ), $product ) . '</div>';
1701
+ echo '<div class="woosw-item--add">' . apply_filters( 'woosw_item_add_to_cart', do_shortcode( '[add_to_cart style="" show_price="false" id="' . esc_attr( $product_id ) . '"]' ), $product ) . '</div>';
1702
  do_action( 'woosw_wishlist_item_actions', $product, $product_id, $key );
1703
  echo '</' . $td_tag . '>';
1704