WooCommerce Wishlist Plugin - Version 1.9.1

Version Description

Release Date - 23 October 2018

  • Removed button hidden inputs for better compatibility with custom themes
  • Added a new option to hide zero value in a counter if wishlist is empty
Download this release

Release Info

Developer templateinvaders
Plugin Icon 128x128 WooCommerce Wishlist Plugin
Version 1.9.1
Comparing to
See all releases

Code changes from version 1.9.0 to 1.9.1

admin/settings/general.class.php CHANGED
@@ -739,10 +739,21 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
739
  ),
740
  ),
741
  array(
742
- 'type' => 'checkboxonoff',
743
- 'name' => 'show_counter',
744
- 'text' => __( 'Show number of products in counter', 'ti-woocommerce-wishlist' ),
745
- 'std' => true,
 
 
 
 
 
 
 
 
 
 
 
746
  ),
747
  ),
748
  ),
739
  ),
740
  ),
741
  array(
742
+ 'type' => 'checkboxonoff',
743
+ 'name' => 'show_counter',
744
+ 'text' => __( 'Show number of products in counter', 'ti-woocommerce-wishlist' ),
745
+ 'std' => true,
746
+ 'extra' => array(
747
+ 'tiwl-show' => '.tiwl-zero-counter',
748
+ ),
749
+ ),
750
+ array(
751
+ 'type' => 'checkboxonoff',
752
+ 'name' => 'hide_zero_counter',
753
+ 'text' => __( 'Hide zero value', 'ti-woocommerce-wishlist' ),
754
+ 'desc' => __( 'Do not show the "0" value in a counter if wishlist is empty.', 'ti-woocommerce-wishlist' ),
755
+ 'class' => 'tiwl-zero-counter',
756
+ 'std' => false,
757
  ),
758
  ),
759
  ),
assets/css/admin-form.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.0
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.1
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/css/admin-setup.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.0
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.1
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/css/admin.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.0
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.1
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/css/public.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.0
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.1
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/css/theme.min.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.0
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.1
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/js/admin.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.0
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.1
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
assets/js/public.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! WooCommerce Wishlist Plugin - version 1.9.0
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
1
+ /*! WooCommerce Wishlist Plugin - version 1.9.1
2
  * https://wordpress.org/plugins/ti-woocommerce-wishlist/
3
  * Copyright (c) 2018;
4
  * Licensed GPLv2+ */
languages/ti-woocommerce-wishlist.pot CHANGED
@@ -5,7 +5,7 @@ msgstr ""
5
  "Project-Id-Version: WooCommerce Wishlist Plugin {{ VERSION }}\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
8
- "POT-Creation-Date: 2018-10-17 16:23:30+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -41,15 +41,15 @@ msgstr ""
41
  msgid "Template Custom CSS"
42
  msgstr ""
43
 
44
- #: admin/basestyle.helper.php:114 admin/settings/general.class.php:777
45
  msgid "Save Settings"
46
  msgstr ""
47
 
48
- #: admin/basestyle.helper.php:120 admin/settings/general.class.php:783
49
  msgid "Reset"
50
  msgstr ""
51
 
52
- #: admin/basestyle.helper.php:126 admin/settings/general.class.php:789
53
  msgid "Save"
54
  msgstr ""
55
 
@@ -512,11 +512,19 @@ msgstr ""
512
  msgid "Show number of products in counter"
513
  msgstr ""
514
 
 
 
 
 
515
  #: admin/settings/general.class.php:754
 
 
 
 
516
  msgid "Support chat settings"
517
  msgstr ""
518
 
519
- #: admin/settings/general.class.php:761
520
  msgid "Disable support chat"
521
  msgstr ""
522
 
5
  "Project-Id-Version: WooCommerce Wishlist Plugin {{ VERSION }}\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
8
+ "POT-Creation-Date: 2018-10-23 09:22:06+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
41
  msgid "Template Custom CSS"
42
  msgstr ""
43
 
44
+ #: admin/basestyle.helper.php:114 admin/settings/general.class.php:788
45
  msgid "Save Settings"
46
  msgstr ""
47
 
48
+ #: admin/basestyle.helper.php:120 admin/settings/general.class.php:794
49
  msgid "Reset"
50
  msgstr ""
51
 
52
+ #: admin/basestyle.helper.php:126 admin/settings/general.class.php:800
53
  msgid "Save"
54
  msgstr ""
55
 
512
  msgid "Show number of products in counter"
513
  msgstr ""
514
 
515
+ #: admin/settings/general.class.php:753
516
+ msgid "Hide zero value"
517
+ msgstr ""
518
+
519
  #: admin/settings/general.class.php:754
520
+ msgid "Do not show the \"0\" value in a counter if wishlist is empty."
521
+ msgstr ""
522
+
523
+ #: admin/settings/general.class.php:765
524
  msgid "Support chat settings"
525
  msgstr ""
526
 
527
+ #: admin/settings/general.class.php:772
528
  msgid "Disable support chat"
529
  msgstr ""
530
 
public/wishlistcounter.class.php CHANGED
@@ -255,7 +255,7 @@ class TInvWL_Public_WishlistCounter {
255
  }
256
  }
257
 
258
- return $count ? $count : false;
259
  }
260
 
261
  /**
255
  }
256
  }
257
 
258
+ return $count ? $count : ( tinv_get_option( 'topline', 'hide_zero_counter' ) ? false : 0 );
259
  }
260
 
261
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpr
4
  Tags: wishlist, woocommerce, woocommerce wishlist, e-commerce, ecommerce
5
  Requires at least: 4.5
6
  Tested up to: 4.9
7
- Stable tag: 1.9.0
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -19,7 +19,10 @@ The WooCommerce Wishlist plugin does not collect any personal data from website
19
  = Increase Sales and Conversions =
20
  WooCommerce Wishlist is a simple but powerful tool that can help you to convert your site visitors into loyal customers. There are many situations when customers can’t buy a product at this time or simply don’t want. Possibility to save products for later encourages users to return to your site and after all, make a purchase. Adding products to Wishlist is easy and convenient so it may also force your customers to buy even more products than they planned. Users can share their wishlist, for example, to help their friends choose a gift for upcoming holiday and so on. By sharing their Wishlists, they are bringing you, new potential customers. All in all this increasing amount of your site visitors, conversion and as a result sales.
21
 
22
- [Live Preview](https://woocommercewishlist.com/preview/?utm_source=wordpressorg&utm_content=preview)
 
 
 
23
 
24
  [View documentation](https://templateinvaders.com/documentation/ti-woocommerce-wishlist-free/?utm_source=wordpressorg&utm_content=documentation)
25
 
@@ -130,6 +133,12 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
130
 
131
 
132
  == Changelog ==
 
 
 
 
 
 
133
  = 1.9.0 =
134
  *Release Date - 17 October 2018*
135
 
4
  Tags: wishlist, woocommerce, woocommerce wishlist, e-commerce, ecommerce
5
  Requires at least: 4.5
6
  Tested up to: 4.9
7
+ Stable tag: 1.9.1
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
19
  = Increase Sales and Conversions =
20
  WooCommerce Wishlist is a simple but powerful tool that can help you to convert your site visitors into loyal customers. There are many situations when customers can’t buy a product at this time or simply don’t want. Possibility to save products for later encourages users to return to your site and after all, make a purchase. Adding products to Wishlist is easy and convenient so it may also force your customers to buy even more products than they planned. Users can share their wishlist, for example, to help their friends choose a gift for upcoming holiday and so on. By sharing their Wishlists, they are bringing you, new potential customers. All in all this increasing amount of your site visitors, conversion and as a result sales.
21
 
22
+ [Live Preview 1](https://wishlist2.templateinvaders.com/?utm_source=wordpressorg&utm_content=preview)
23
+ [Live Preview 2](https://wishlist3.templateinvaders.com/?utm_source=wordpressorg&utm_content=preview)
24
+ [Live Preview 3](https://wishlist1.templateinvaders.com/?utm_source=wordpressorg&utm_content=preview)
25
+
26
 
27
  [View documentation](https://templateinvaders.com/documentation/ti-woocommerce-wishlist-free/?utm_source=wordpressorg&utm_content=documentation)
28
 
133
 
134
 
135
  == Changelog ==
136
+ = 1.9.1 =
137
+ *Release Date - 23 October 2018*
138
+
139
+ * Removed button hidden inputs for better compatibility with custom themes
140
+ * Added a new option to hide zero value in a counter if wishlist is empty
141
+
142
  = 1.9.0 =
143
  *Release Date - 17 October 2018*
144
 
templates/ti-addtowishlist.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * The Template for displaying add to wishlist product button.
4
  *
5
- * @version 1.8.8
6
  * @package TInvWishlist\Template
7
  */
8
 
@@ -12,21 +12,6 @@ if ( ! defined( 'ABSPATH' ) ) {
12
  wp_enqueue_script( 'tinvwl' );
13
  ?>
14
  <div class="tinv-wraper woocommerce tinv-wishlist <?php echo esc_attr( $class_postion ) ?>">
15
- <input type="hidden" name="product_id"
16
- value="<?php echo esc_attr( ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->get_id() : ( $product->is_type( 'variation' ) ? $product->get_parent_id() : $product->get_id() ) ) ); ?>"/>
17
- <?php if ( $variation_id ) { ?>
18
- <input type="hidden" name="variation_id" value="<?php echo esc_attr( $variation_id ); ?>"/>
19
- <?php
20
-
21
- $_variation = wc_get_product( $variation_id );
22
- $attributes = $_variation->get_variation_attributes();
23
-
24
- foreach ( $attributes as $name => $value ) {
25
- echo '<input type="hidden" name="' . $name . '" value="' . $value . '" />';// WPCS: XSS ok.
26
- }
27
-
28
- ?>
29
- <?php } ?>
30
  <?php do_action( 'tinv_wishlist_addtowishlist_button' ); ?>
31
  <?php do_action( 'tinv_wishlist_addtowishlist_dialogbox' ); ?>
32
  <div
2
  /**
3
  * The Template for displaying add to wishlist product button.
4
  *
5
+ * @version 1.9.1
6
  * @package TInvWishlist\Template
7
  */
8
 
12
  wp_enqueue_script( 'tinvwl' );
13
  ?>
14
  <div class="tinv-wraper woocommerce tinv-wishlist <?php echo esc_attr( $class_postion ) ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <?php do_action( 'tinv_wishlist_addtowishlist_button' ); ?>
16
  <?php do_action( 'tinv_wishlist_addtowishlist_dialogbox' ); ?>
17
  <div
ti-woocommerce-wishlist.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WooCommerce Wishlist Plugin
5
  * Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
6
  * Description: Wishlist functionality for your WooCommerce store.
7
- * Version: 1.9.0
8
  * Requires at least: 4.5
9
  * Tested up to: 4.9
10
  * WC requires at least: 2.6
@@ -41,7 +41,7 @@ if ( ! defined( 'TINVWL_DOMAIN' ) ) {
41
  }
42
 
43
  if ( ! defined( 'TINVWL_FVERSION' ) ) {
44
- define( 'TINVWL_FVERSION', '1.9.0' );
45
  }
46
 
47
  if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
4
  * Plugin Name: WooCommerce Wishlist Plugin
5
  * Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
6
  * Description: Wishlist functionality for your WooCommerce store.
7
+ * Version: 1.9.1
8
  * Requires at least: 4.5
9
  * Tested up to: 4.9
10
  * WC requires at least: 2.6
41
  }
42
 
43
  if ( ! defined( 'TINVWL_FVERSION' ) ) {
44
+ define( 'TINVWL_FVERSION', '1.9.1' );
45
  }
46
 
47
  if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {