Version Description
Release Date - 16 July 2018
- Fixed a wishlist button issue for out of stock variable products
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.8.5 |
Comparing to | |
See all releases |
Code changes from version 1.8.4 to 1.8.5
- admin/tinvwl.class.php +15 -2
- assets/css/admin-form.min.css +1 -1
- assets/css/admin-setup.min.css +1 -1
- assets/css/admin.min.css +1 -1
- assets/css/public.min.css +1 -1
- assets/css/theme.min.css +1 -1
- assets/js/admin.min.js +1 -1
- assets/js/public.min.js +1 -1
- languages/ti-woocommerce-wishlist.pot +5 -5
- public/addtowishlist.class.php +12 -1
- readme.txt +6 -1
- ti-woocommerce-wishlist.php +2 -2
admin/tinvwl.class.php
CHANGED
@@ -176,14 +176,27 @@ class TInvWL_Admin_TInvWL extends TInvWL_Admin_Base {
|
|
176 |
) );
|
177 |
wp_enqueue_script( $this->_name );
|
178 |
|
179 |
-
$user_id
|
180 |
-
$user_info
|
|
|
|
|
|
|
181 |
|
182 |
wp_add_inline_script( $this->_name, 'window.intercomSettings = {
|
183 |
app_id: "zyh6v0pc",
|
184 |
"Website": "' . get_site_url() . '",
|
185 |
"Plugin name": "WooCommerce Wishlist Plugin",
|
186 |
"Plugin version":"' . TINVWL_FVERSION . '",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
};
|
188 |
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic("reattach_activator");ic("update",intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement("script");s.type="text/javascript";s.async=true;s.src="https://widget.intercom.io/widget/zyh6v0pc";var x=d.getElementsByTagName("script")[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent("onload",l);}else{w.addEventListener("load",l,false);}}})()' );
|
189 |
}
|
176 |
) );
|
177 |
wp_enqueue_script( $this->_name );
|
178 |
|
179 |
+
$user_id = get_current_user_id();
|
180 |
+
$user_info = get_userdata( $user_id );
|
181 |
+
$current_theme = wp_get_theme();
|
182 |
+
|
183 |
+
$parent_theme = $current_theme->parent();
|
184 |
|
185 |
wp_add_inline_script( $this->_name, 'window.intercomSettings = {
|
186 |
app_id: "zyh6v0pc",
|
187 |
"Website": "' . get_site_url() . '",
|
188 |
"Plugin name": "WooCommerce Wishlist Plugin",
|
189 |
"Plugin version":"' . TINVWL_FVERSION . '",
|
190 |
+
"Theme name":"' . $current_theme->get( 'Name' ) . '",
|
191 |
+
"Theme version":"' . $current_theme->get( 'Version' ) . '",
|
192 |
+
"Theme URI":"' . $current_theme->get( 'ThemeURI' ) . '",
|
193 |
+
"Theme author":"' . $current_theme->get( 'Author' ) . '",
|
194 |
+
"Theme author URI":"' . $current_theme->get( 'AuthorURI' ) . '",
|
195 |
+
"Parent theme name":"' . ( ( $parent_theme ) ? $parent_theme->get( 'Name' ) : '' ) . '",
|
196 |
+
"Parent theme version":"' . ( ( $parent_theme ) ? $parent_theme->get( 'Version' ) : '' ) . '",
|
197 |
+
"Parent theme URI":"' . ( ( $parent_theme ) ? $parent_theme->get( 'ThemeURI' ) : '' ) . '",
|
198 |
+
"Parent theme author":"' . ( ( $parent_theme ) ? $parent_theme->get( 'Author' ) : '' ) . '",
|
199 |
+
"Parent theme author URI":"' . ( ( $parent_theme ) ? $parent_theme->get( 'AuthorURI' ) : '' ) . '",
|
200 |
};
|
201 |
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic("reattach_activator");ic("update",intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement("script");s.type="text/javascript";s.async=true;s.src="https://widget.intercom.io/widget/zyh6v0pc";var x=d.getElementsByTagName("script")[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent("onload",l);}else{w.addEventListener("load",l,false);}}})()' );
|
202 |
}
|
assets/css/admin-form.min.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! WooCommerce Wishlist Plugin - version 1.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.5
|
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.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.5
|
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.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.5
|
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.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.5
|
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.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.5
|
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.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.5
|
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.8.
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
1 |
+
/*! WooCommerce Wishlist Plugin - version 1.8.5
|
2 |
* https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
3 |
* Copyright (c) 2018;
|
4 |
* Licensed GPLv2+ */
|
languages/ti-woocommerce-wishlist.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Wishlist Plugin 1.8.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
|
8 |
-
"POT-Creation-Date: 2018-07-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -690,7 +690,7 @@ msgstr ""
|
|
690 |
msgid "Normal Buttons Text Hover Color"
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: admin/settings/upgrade.class.php:34 admin/tinvwl.class.php:
|
694 |
#: views/wizard/finish.php:31
|
695 |
msgid "Upgrade to Premium"
|
696 |
msgstr ""
|
@@ -765,13 +765,13 @@ msgstr ""
|
|
765 |
msgid "Are you sure you want to reset the settings?"
|
766 |
msgstr ""
|
767 |
|
768 |
-
#: admin/tinvwl.class.php:
|
769 |
msgid ""
|
770 |
"<code>%1$s</code> version <strong style=\"color:red\">%2$s</strong> is out "
|
771 |
"of date. The core version is <strong style=\"color:red\">%3$s</strong>"
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: admin/tinvwl.class.php:
|
775 |
msgid ""
|
776 |
"<strong>Your theme (%1$s) contains outdated copies of some WooCommerce "
|
777 |
"Wishlist Plugin template files.</strong><br> These files may need updating "
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Wishlist Plugin 1.8.5\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/ti-woocommerce-wishlist\n"
|
8 |
+
"POT-Creation-Date: 2018-07-16 18:13:27+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
690 |
msgid "Normal Buttons Text Hover Color"
|
691 |
msgstr ""
|
692 |
|
693 |
+
#: admin/settings/upgrade.class.php:34 admin/tinvwl.class.php:226
|
694 |
#: views/wizard/finish.php:31
|
695 |
msgid "Upgrade to Premium"
|
696 |
msgstr ""
|
765 |
msgid "Are you sure you want to reset the settings?"
|
766 |
msgstr ""
|
767 |
|
768 |
+
#: admin/tinvwl.class.php:265
|
769 |
msgid ""
|
770 |
"<code>%1$s</code> version <strong style=\"color:red\">%2$s</strong> is out "
|
771 |
"of date. The core version is <strong style=\"color:red\">%3$s</strong>"
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: admin/tinvwl.class.php:291
|
775 |
msgid ""
|
776 |
"<strong>Your theme (%1$s) contains outdated copies of some WooCommerce "
|
777 |
"Wishlist Plugin template files.</strong><br> These files may need updating "
|
public/addtowishlist.class.php
CHANGED
@@ -436,7 +436,18 @@ class TInvWL_Public_AddToWishlist {
|
|
436 |
global $product;
|
437 |
|
438 |
if ( $product ) {
|
439 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
$this->htmloutput();
|
441 |
}
|
442 |
}
|
436 |
global $product;
|
437 |
|
438 |
if ( $product ) {
|
439 |
+
$allow = false;
|
440 |
+
if ( 'simple' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ) ) {
|
441 |
+
$allow = ( ( ! $product->is_purchasable() && '' == $product->get_price() ) || ( $product->is_purchasable() && ! $product->is_in_stock() ) );
|
442 |
+
}
|
443 |
+
|
444 |
+
if ( 'variable' === ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ) ) {
|
445 |
+
$get_variations = count( $product->get_children() ) <= apply_filters( 'woocommerce_ajax_variation_threshold', 30, $product );
|
446 |
+
$available_variations = $get_variations ? $product->get_available_variations() : false;
|
447 |
+
$allow = ( empty( $available_variations ) && false !== $available_variations );
|
448 |
+
}
|
449 |
+
|
450 |
+
if ( apply_filters( 'tinvwl_allow_addtowishlist_single_product_summary', $allow, $product ) ) {
|
451 |
$this->htmloutput();
|
452 |
}
|
453 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://templateinvaders.com/?utm_source=wordpressorg&utm_content=d
|
|
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.8.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -131,6 +131,11 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
|
|
131 |
|
132 |
== Changelog ==
|
133 |
|
|
|
|
|
|
|
|
|
|
|
134 |
= 1.8.4 =
|
135 |
*Release Date - 10 July 2018*
|
136 |
|
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.8.5
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
131 |
|
132 |
== Changelog ==
|
133 |
|
134 |
+
= 1.8.5 =
|
135 |
+
*Release Date - 16 July 2018*
|
136 |
+
|
137 |
+
* Fixed a wishlist button issue for out of stock variable products
|
138 |
+
|
139 |
= 1.8.4 =
|
140 |
*Release Date - 10 July 2018*
|
141 |
|
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.8.
|
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.8.
|
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.8.5
|
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.8.5' );
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|