Version Description
Release Date - 14 September 2022
- Added filter
tinvwl_popup_close_timer
- Updated integration with WooCommerce Variation Swatches - Pro plugin
- Options to setup wishlist page under WooCommerce My Account section are simplified
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- admin/settings/general.class.php +3 -2
- assets/css/admin-form-rtl.min.css +1 -1
- assets/css/admin-form.min.css +1 -1
- assets/css/admin-rtl.min.css +1 -1
- assets/css/admin-setup-rtl.min.css +1 -1
- assets/css/admin-setup.min.css +1 -1
- assets/css/admin.min.css +1 -1
- assets/css/public-rtl.min.css +1 -1
- assets/css/public.min.css +1 -1
- assets/css/theme-rtl.min.css +1 -1
- assets/css/theme.min.css +1 -1
- assets/css/webfont-rtl.min.css +1 -1
- assets/css/webfont.min.css +1 -1
- assets/js/admin.min.js +1 -1
- assets/js/public.js +5 -5
- assets/js/public.min.js +2 -2
- integrations/woo-variation-swatches-pro.php +22 -29
- languages/ti-woocommerce-wishlist.pot +123 -127
- public/tinvwl.class.php +4 -3
- public/wishlist/view.class.php +3 -3
- readme.txt +8 -1
- ti-woocommerce-wishlist.php +2 -2
- tinv-wishlists-function.php +1 -1
admin/settings/general.class.php
CHANGED
@@ -146,9 +146,9 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
|
|
146 |
'text' => __( 'Setup wishlist page under WooCommerce My Account section', 'ti-woocommerce-wishlist' ),
|
147 |
'desc' => '<span class="tiwl-button-show-notice">' . __( 'This option will set up the wishlist page under WooCommerce My Account section and prevents all sharing features.', 'ti-woocommerce-wishlist' ) . '</span>',
|
148 |
'std' => false,
|
149 |
-
'class' => 'tiwl-general-redirect-require-login',
|
150 |
'extra' => array(
|
151 |
'tiwl-show' => '.tinwl-general-my-account-endpoint',
|
|
|
152 |
),
|
153 |
),
|
154 |
array(
|
@@ -156,13 +156,14 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
|
|
156 |
'name' => 'my_account_endpoint_slug',
|
157 |
'text' => __( 'WooCommerce My Account Wishlist page slug', 'ti-woocommerce-wishlist' ),
|
158 |
'std' => 'wishlist',
|
159 |
-
'class' => 'tinwl-general-my-account-endpoint
|
160 |
),
|
161 |
array(
|
162 |
'type' => 'checkboxonoff',
|
163 |
'name' => 'link_in_myaccount',
|
164 |
'text' => __( 'Show Link to Wishlist in my account', 'ti-woocommerce-wishlist' ),
|
165 |
'std' => true,
|
|
|
166 |
),
|
167 |
array(
|
168 |
'type' => 'checkboxonoff',
|
146 |
'text' => __( 'Setup wishlist page under WooCommerce My Account section', 'ti-woocommerce-wishlist' ),
|
147 |
'desc' => '<span class="tiwl-button-show-notice">' . __( 'This option will set up the wishlist page under WooCommerce My Account section and prevents all sharing features.', 'ti-woocommerce-wishlist' ) . '</span>',
|
148 |
'std' => false,
|
|
|
149 |
'extra' => array(
|
150 |
'tiwl-show' => '.tinwl-general-my-account-endpoint',
|
151 |
+
'tiwl-hide' => '.tinwl-general-my-account-link',
|
152 |
),
|
153 |
),
|
154 |
array(
|
156 |
'name' => 'my_account_endpoint_slug',
|
157 |
'text' => __( 'WooCommerce My Account Wishlist page slug', 'ti-woocommerce-wishlist' ),
|
158 |
'std' => 'wishlist',
|
159 |
+
'class' => 'tinwl-general-my-account-endpoint',
|
160 |
),
|
161 |
array(
|
162 |
'type' => 'checkboxonoff',
|
163 |
'name' => 'link_in_myaccount',
|
164 |
'text' => __( 'Show Link to Wishlist in my account', 'ti-woocommerce-wishlist' ),
|
165 |
'std' => true,
|
166 |
+
'class' => 'tinwl-general-my-account-link',
|
167 |
),
|
168 |
array(
|
169 |
'type' => 'checkboxonoff',
|
assets/css/admin-form-rtl.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tiwlform-number-container{display:inline-block;margin:2px;position:relative;vertical-align:middle}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tiwlform-number-container{display:inline-block;margin:2px;position:relative;vertical-align:middle}
|
assets/css/admin-form.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tiwlform-number-container{display:inline-block;margin:2px;position:relative;vertical-align:middle}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tiwlform-number-container{display:inline-block;margin:2px;position:relative;vertical-align:middle}
|
assets/css/admin-rtl.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
*{-webkit-box-sizing:border-box;box-sizing:border-box}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
*{-webkit-box-sizing:border-box;box-sizing:border-box}
|
assets/css/admin-setup-rtl.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
html{background:#f6f3ed}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
html{background:#f6f3ed}
|
assets/css/admin-setup.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
html{background:#f6f3ed}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
html{background:#f6f3ed}
|
assets/css/admin.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
*{-webkit-box-sizing:border-box;box-sizing:border-box}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
*{-webkit-box-sizing:border-box;box-sizing:border-box}
|
assets/css/public-rtl.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tinv-wishlist form,.tinv-wishlist p:last-child,.tinv-wishlist table{margin-bottom:0}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tinv-wishlist form,.tinv-wishlist p:last-child,.tinv-wishlist table{margin-bottom:0}
|
assets/css/public.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tinv-wishlist form,.tinv-wishlist p:last-child,.tinv-wishlist table{margin-bottom:0}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tinv-wishlist form,.tinv-wishlist p:last-child,.tinv-wishlist table{margin-bottom:0}
|
assets/css/theme-rtl.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tinv-wishlist,.tinv-wishlist input,.tinv-wishlist select,.tinv-wishlist textarea,.tinv-wishlist button,.tinv-wishlist input[type=button],.tinv-wishlist input[type=reset],.tinv-wishlist input[type=submit]{font-family:Georgia,serif;font-size:14px;font-weight:400;text-transform:none;line-height:1.75}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tinv-wishlist,.tinv-wishlist input,.tinv-wishlist select,.tinv-wishlist textarea,.tinv-wishlist button,.tinv-wishlist input[type=button],.tinv-wishlist input[type=reset],.tinv-wishlist input[type=submit]{font-family:Georgia,serif;font-size:14px;font-weight:400;text-transform:none;line-height:1.75}
|
assets/css/theme.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tinv-wishlist,.tinv-wishlist input,.tinv-wishlist select,.tinv-wishlist textarea,.tinv-wishlist button,.tinv-wishlist input[type=button],.tinv-wishlist input[type=reset],.tinv-wishlist input[type=submit]{font-family:Georgia,serif;font-size:14px;font-weight:400;text-transform:none;line-height:1.75}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
.tinv-wishlist,.tinv-wishlist input,.tinv-wishlist select,.tinv-wishlist textarea,.tinv-wishlist button,.tinv-wishlist input[type=button],.tinv-wishlist input[type=reset],.tinv-wishlist input[type=submit]{font-family:Georgia,serif;font-size:14px;font-weight:400;text-transform:none;line-height:1.75}
|
assets/css/webfont-rtl.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
@font-face{font-family:"tinvwl-webfont";font-display:block;src:url("../fonts/tinvwl-webfont.eot?ver=xu2uyi");src:url("../fonts/tinvwl-webfont.eot?ver=xu2uyi#iefix") format("embedded-opentype"),url("../fonts/tinvwl-webfont.woff2?ver=xu2uyi") format("woff2"),url("../fonts/tinvwl-webfont.woff?ver=xu2uyi") format("woff"),url("../fonts/tinvwl-webfont.ttf?ver=xu2uyi") format("truetype"),url("../fonts/tinvwl-webfont.svg?ver=xu2uyi#tinvwl-webfont") format("svg");font-weight:normal;font-style:normal}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
@font-face{font-family:"tinvwl-webfont";font-display:block;src:url("../fonts/tinvwl-webfont.eot?ver=xu2uyi");src:url("../fonts/tinvwl-webfont.eot?ver=xu2uyi#iefix") format("embedded-opentype"),url("../fonts/tinvwl-webfont.woff2?ver=xu2uyi") format("woff2"),url("../fonts/tinvwl-webfont.woff?ver=xu2uyi") format("woff"),url("../fonts/tinvwl-webfont.ttf?ver=xu2uyi") format("truetype"),url("../fonts/tinvwl-webfont.svg?ver=xu2uyi#tinvwl-webfont") format("svg");font-weight:normal;font-style:normal}
|
assets/css/webfont.min.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
@font-face{font-family:"tinvwl-webfont";font-display:block;src:url("../fonts/tinvwl-webfont.eot?ver=xu2uyi");src:url("../fonts/tinvwl-webfont.eot?ver=xu2uyi#iefix") format("embedded-opentype"),url("../fonts/tinvwl-webfont.woff2?ver=xu2uyi") format("woff2"),url("../fonts/tinvwl-webfont.woff?ver=xu2uyi") format("woff"),url("../fonts/tinvwl-webfont.ttf?ver=xu2uyi") format("truetype"),url("../fonts/tinvwl-webfont.svg?ver=xu2uyi#tinvwl-webfont") format("svg");font-weight:normal;font-style:normal}
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
@font-face{font-family:"tinvwl-webfont";font-display:block;src:url("../fonts/tinvwl-webfont.eot?ver=xu2uyi");src:url("../fonts/tinvwl-webfont.eot?ver=xu2uyi#iefix") format("embedded-opentype"),url("../fonts/tinvwl-webfont.woff2?ver=xu2uyi") format("woff2"),url("../fonts/tinvwl-webfont.woff?ver=xu2uyi") format("woff"),url("../fonts/tinvwl-webfont.ttf?ver=xu2uyi") format("truetype"),url("../fonts/tinvwl-webfont.svg?ver=xu2uyi#tinvwl-webfont") format("svg");font-weight:normal;font-style:normal}
|
assets/js/admin.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
"use strict";function TInvWL($,h){this.pf="tinvwl",this.g="_",this.ho=h||!1,this.n="TInvWL",this.aj_act=function(t){return[this.pf,t].join(this.g)},this._csel=function(t,n){n=n||".";return"{0}{1}{2}".format(n,this.pf,t)},this._tm=function(t){t=$("script#{0}[type='text/template']".format(t));return t.length?t.html():""},this.formElm=function(){var e,n;$(this._csel("-form-onoff")).tiwl_onoff(),$("input[type=checkbox][tiwl-show], input[type=checkbox][tiwl-hide]").tiwl_onoffblock(),$("[tiwl-value][tiwl-show], [tiwl-value][tiwl-hide]").tiwl_byvalueblock(),void 0!==$.fn.wpColorPicker&&(e=function(t){t=t.substring(1),t=parseInt(t,16);return.2126*(t>>16&255)+.7152*(t>>8&255)+.0722*(t>>0&255)},n=this._csel("-form-color"),$(n).each(function(){var n=$(this),t=$(this).closest(".tinvwl-color-picker"),i=t.find(".tinvwl-eyedropper");n.css("background-color",n.val()),175<e(n.val())&&n.css("color","#000000"),n.iris({mode:"hsv",target:$(this).parent().parent(),change:function(t,n){175<e(n.color.toCSS())?$(this).css("color","#000000"):$(this).css("color",""),$(this).css("background-color",n.color.toCSS())}}),t.on("click",".iris-square-value",function(t){t.preventDefault(),n.iris("toggle")}),i.on("click",function(t){t.preventDefault(),n.iris("show")}),n.on("focusin",function(){n.iris("show")})}),$(document).on("click",function(t){($(t.target).is(n+", .iris-picker, .iris-picker-inner, .iris-slider-offset, .tinvwl-eyedropper, .tinvwl-eyedropper .ftinvwl-eyedropper")?$(n).not($(t.target).closest(".tinvwl-color-picker").find(n)):$(n)).iris("hide")}))},this.wizard_page=function(t){$(t).find("select").change(this._wizard_page_ch),this.wizard_page_ch($(t).find("select"))},this.wizard_page_ch=function(t){var n=(t=$(t)).parent(this._csel("-page-select")),i=n.find("input[type=hidden]").val(),e=n.find(this._csel("-error-icon")),o=n.find(this._csel("-error-desc"));""!==t.val()?(n.removeClass("tinvwl-error"),e.hide(),o.hide()):0==i&&(n.addClass("tinvwl-error"),e.show(),o.show())},this.pageElm=function(){$(this._csel("-header","div.")).prependTo("#wpbody-content"),$(this._csel("-page-select")).each(this._wizard_page),$(".bulkactions [type=submit]").each(this._control_bulkactions),$(".action-search [type=submit]").each(this._control_search)},this.control_bulkactions=function(t){$(t).on("click",this._control_bulkactions_ck)},this.control_bulkactions_ck=function(t,n){var i=(t=$(t)).parents(".bulkactions").eq(0).find("[name=action]"),t=t.parents("form").eq(0);i&&("-1"!==i.val()&&t.find("input[type=checkbox]:checked").length||n.preventDefault())},this.control_search=function(t){$(t).on("click",this._control_search_ck)},this.control_search_ck=function(t,n){t=(t=$(t)).parents(".action-search").eq(0).find("[name=s]");t&&""===t.val()&&n.preventDefault()},this.Run=function(){this.formElm(),this.pageElm()},this.cg=function(){var t,n=this.n;this.ho&&(n=n+(t=new Date).getFullYear()+t.getMonth()+t.getDate()),window[n]=this},this.cg(),String.prototype.format||(String.prototype.format=function(){var i=arguments;return this.replace(/{(\d+)}/g,function(t,n){return void 0!==i[n]?i[n]:t})});var o=this,n=o.n,ho=o.ho,c=ho?"t=new Date(),n=n+t.getFullYear()+t.getMonth()+t.getDate(),":"",i;for(i in o)"function"!=typeof o[i]||"_"===i[0]||o.hasOwnProperty("_"+i)||eval("o._"+i+"=function(a,b,c,d){var n='"+n+"',"+c+"o=window[n]||null;if (o) {return o."+i+"(this,a,b,c,d);};};")}!function(s){s.fn.tiwl_onoff=function(t){var o=s.extend(!0,{},{value:{on:"",off:""},class:"tiwlform-onoff",wrap:"container",button:"button"},t);return s(this).each(function(){var n=s(this),t=s("<div>").attr({class:o.class+"-"+o.button}),i=o.class+"-"+o.wrap,e=s("<div>").attr({id:n.attr("id")+"_"+o.wrap,class:i});return n.is("input")&&(e.attr("class",e.attr("class")+" "+n.attr("class")),n.is(":disabled")&&(e.toggleClass("disabled",n.is(":disabled")),n.prop("disabled",!1)),e.toggleClass("checked",n.is(":checked")),n.hide().removeAttr("class").wrap(e).before(t),e=n.parent(),n.on("change",function(t){if(e.hasClass("disabled"))return t.preventDefault();e.toggleClass("checked",s(this).is(":checked"))}),e.on("click",function(t){if(e.hasClass("disabled"))return t.preventDefault();n.is(":enabled")&&e.hasClass("checked")===n.is(":checked")&&n.click()})),n})},s.fn.tiwl_onoffblock=function(t){var c=s.extend(!0,{},{onEachElm:function(){},isChecked:function(){return s(this).is(":checked")}},t);return s(this).each(function(){function t(){function t(t,i){t=t.match(/[\w\d-\>\.\#\:\=\[\]]+/gim)||[],s.each(t,function(t,n){c.onEachElm.call(s(n).toggle(i))})}var n=s(this),i=n.attr("tiwl-show"),e=n.attr("tiwl-hide"),o=c.isChecked.call(n);return"string"==typeof i&&t(i,o),"string"==typeof e&&t(e,!o),n}var n=s(this);return n.is("input")&&"checkbox"==n.attr("type")?(s(this).on("change",t),t.call(n)):n})},s.fn.tiwl_byvalueblock=function(t){var i=s.extend(!0,{},{onEachElm:function(){},onClick:function(){return s(this).val()==s(this).attr("tiwl-value")}},t);return s(this).each(function(){function t(e){function t(t,i){t=t.match(/[\w\d-\>\.\#\:\=\[\]]+/gim)||[],s.each(t,function(t,n){e.onEachElm.call(s(n).toggle(i))})}var n=s(this),i=n.attr("tiwl-show"),o=n.attr("tiwl-hide"),c=e.onClick.call(n);return"string"==typeof i&&t(i,c),"string"==typeof o&&t(o,!c),n}var n=s(this);return n.is("input")||n.is("select")?(s(this).on("change",function(){t.call(this,i)}),t.call(n,i)):n})};var n=new TInvWL(s);s(document).ready(function(){var t;n.Run(),jQuery('input[name="general-show_notice"]').change(function(){var t=!jQuery(this).is(":checked"),n=jQuery('input[name="general-redirect_require_login"]');t&&!n.is(":checked")&&n.click().trigger("change"),n.closest(".tiwlform-onoff-container").toggleClass("disabled",t)}).change(),s(".tablenav").each(function(){var t=s(this);s.trim(t.find(".alignleft").html()).length||t.find(".alignleft").remove(),s.trim(t.find(".alignright").html()).length&&!t.find(".tablenav-pages").hasClass("one-page")||(t.find(".alignright").remove(),t.find(".tinv-wishlist-clear").remove()),s.trim(t.html()).length||t.remove()}),s(".tablenav .bulkactions select").addClass("tinvwl-select grey").wrap('<span class="tinvwl-select-wrap">').parent().append('<span class="tinvwl-caret"><span></span></span>'),s(".tablenav .bulkactions .button.action, .tablenav #search-submit").removeClass("button").addClass("tinvwl-btn grey"),s(".tinvwl-modal-btn").on("click",function(){s(this).next(".tinvwl-modal").addClass("tinvwl-modal-open")}),s(".tinvwl-overlay, .tinvwl-close-modal, .tinvwl_button_close").on("click",function(t){t.preventDefault(),s(this).parents(".tinvwl-modal:first").removeClass("tinvwl-modal-open")}),void 0!==s.fn.popover&&((t=s(".tinvwl-help")).popover({content:function(){return s(this).closest(".tinvwl-info-wrap").find(".tinvwl-info-desc").html()}}),t.on("click",function(){s(this).popover("toggle")}),t.on("focusout",function(){s(this).popover("hide")}),s(window).on("resize",function(){t.popover("hide")})),s("body").on("click",".tinvwl-confirm-reset",function(t){t.preventDefault(),confirm(tinvwl_comfirm.text_comfirm_reset)&&s(this).removeClass("tinvwl-confirm-reset").trigger("click")})}),s(document).on("click",".tinvwl-chat-notice .notice-dismiss",function(t){s.post(tinvwl_comfirm.ajax_url,{action:"tinvwl_admin_chat_notice"})})}(jQuery);
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
"use strict";function TInvWL($,h){this.pf="tinvwl",this.g="_",this.ho=h||!1,this.n="TInvWL",this.aj_act=function(t){return[this.pf,t].join(this.g)},this._csel=function(t,n){n=n||".";return"{0}{1}{2}".format(n,this.pf,t)},this._tm=function(t){t=$("script#{0}[type='text/template']".format(t));return t.length?t.html():""},this.formElm=function(){var e,n;$(this._csel("-form-onoff")).tiwl_onoff(),$("input[type=checkbox][tiwl-show], input[type=checkbox][tiwl-hide]").tiwl_onoffblock(),$("[tiwl-value][tiwl-show], [tiwl-value][tiwl-hide]").tiwl_byvalueblock(),void 0!==$.fn.wpColorPicker&&(e=function(t){t=t.substring(1),t=parseInt(t,16);return.2126*(t>>16&255)+.7152*(t>>8&255)+.0722*(t>>0&255)},n=this._csel("-form-color"),$(n).each(function(){var n=$(this),t=$(this).closest(".tinvwl-color-picker"),i=t.find(".tinvwl-eyedropper");n.css("background-color",n.val()),175<e(n.val())&&n.css("color","#000000"),n.iris({mode:"hsv",target:$(this).parent().parent(),change:function(t,n){175<e(n.color.toCSS())?$(this).css("color","#000000"):$(this).css("color",""),$(this).css("background-color",n.color.toCSS())}}),t.on("click",".iris-square-value",function(t){t.preventDefault(),n.iris("toggle")}),i.on("click",function(t){t.preventDefault(),n.iris("show")}),n.on("focusin",function(){n.iris("show")})}),$(document).on("click",function(t){($(t.target).is(n+", .iris-picker, .iris-picker-inner, .iris-slider-offset, .tinvwl-eyedropper, .tinvwl-eyedropper .ftinvwl-eyedropper")?$(n).not($(t.target).closest(".tinvwl-color-picker").find(n)):$(n)).iris("hide")}))},this.wizard_page=function(t){$(t).find("select").change(this._wizard_page_ch),this.wizard_page_ch($(t).find("select"))},this.wizard_page_ch=function(t){var n=(t=$(t)).parent(this._csel("-page-select")),i=n.find("input[type=hidden]").val(),e=n.find(this._csel("-error-icon")),o=n.find(this._csel("-error-desc"));""!==t.val()?(n.removeClass("tinvwl-error"),e.hide(),o.hide()):0==i&&(n.addClass("tinvwl-error"),e.show(),o.show())},this.pageElm=function(){$(this._csel("-header","div.")).prependTo("#wpbody-content"),$(this._csel("-page-select")).each(this._wizard_page),$(".bulkactions [type=submit]").each(this._control_bulkactions),$(".action-search [type=submit]").each(this._control_search)},this.control_bulkactions=function(t){$(t).on("click",this._control_bulkactions_ck)},this.control_bulkactions_ck=function(t,n){var i=(t=$(t)).parents(".bulkactions").eq(0).find("[name=action]"),t=t.parents("form").eq(0);i&&("-1"!==i.val()&&t.find("input[type=checkbox]:checked").length||n.preventDefault())},this.control_search=function(t){$(t).on("click",this._control_search_ck)},this.control_search_ck=function(t,n){t=(t=$(t)).parents(".action-search").eq(0).find("[name=s]");t&&""===t.val()&&n.preventDefault()},this.Run=function(){this.formElm(),this.pageElm()},this.cg=function(){var t,n=this.n;this.ho&&(n=n+(t=new Date).getFullYear()+t.getMonth()+t.getDate()),window[n]=this},this.cg(),String.prototype.format||(String.prototype.format=function(){var i=arguments;return this.replace(/{(\d+)}/g,function(t,n){return void 0!==i[n]?i[n]:t})});var o=this,n=o.n,ho=o.ho,c=ho?"t=new Date(),n=n+t.getFullYear()+t.getMonth()+t.getDate(),":"",i;for(i in o)"function"!=typeof o[i]||"_"===i[0]||o.hasOwnProperty("_"+i)||eval("o._"+i+"=function(a,b,c,d){var n='"+n+"',"+c+"o=window[n]||null;if (o) {return o."+i+"(this,a,b,c,d);};};")}!function(s){s.fn.tiwl_onoff=function(t){var o=s.extend(!0,{},{value:{on:"",off:""},class:"tiwlform-onoff",wrap:"container",button:"button"},t);return s(this).each(function(){var n=s(this),t=s("<div>").attr({class:o.class+"-"+o.button}),i=o.class+"-"+o.wrap,e=s("<div>").attr({id:n.attr("id")+"_"+o.wrap,class:i});return n.is("input")&&(e.attr("class",e.attr("class")+" "+n.attr("class")),n.is(":disabled")&&(e.toggleClass("disabled",n.is(":disabled")),n.prop("disabled",!1)),e.toggleClass("checked",n.is(":checked")),n.hide().removeAttr("class").wrap(e).before(t),e=n.parent(),n.on("change",function(t){if(e.hasClass("disabled"))return t.preventDefault();e.toggleClass("checked",s(this).is(":checked"))}),e.on("click",function(t){if(e.hasClass("disabled"))return t.preventDefault();n.is(":enabled")&&e.hasClass("checked")===n.is(":checked")&&n.click()})),n})},s.fn.tiwl_onoffblock=function(t){var c=s.extend(!0,{},{onEachElm:function(){},isChecked:function(){return s(this).is(":checked")}},t);return s(this).each(function(){function t(){function t(t,i){t=t.match(/[\w\d-\>\.\#\:\=\[\]]+/gim)||[],s.each(t,function(t,n){c.onEachElm.call(s(n).toggle(i))})}var n=s(this),i=n.attr("tiwl-show"),e=n.attr("tiwl-hide"),o=c.isChecked.call(n);return"string"==typeof i&&t(i,o),"string"==typeof e&&t(e,!o),n}var n=s(this);return n.is("input")&&"checkbox"==n.attr("type")?(s(this).on("change",t),t.call(n)):n})},s.fn.tiwl_byvalueblock=function(t){var i=s.extend(!0,{},{onEachElm:function(){},onClick:function(){return s(this).val()==s(this).attr("tiwl-value")}},t);return s(this).each(function(){function t(e){function t(t,i){t=t.match(/[\w\d-\>\.\#\:\=\[\]]+/gim)||[],s.each(t,function(t,n){e.onEachElm.call(s(n).toggle(i))})}var n=s(this),i=n.attr("tiwl-show"),o=n.attr("tiwl-hide"),c=e.onClick.call(n);return"string"==typeof i&&t(i,c),"string"==typeof o&&t(o,!c),n}var n=s(this);return n.is("input")||n.is("select")?(s(this).on("change",function(){t.call(this,i)}),t.call(n,i)):n})};var n=new TInvWL(s);s(document).ready(function(){var t;n.Run(),jQuery('input[name="general-show_notice"]').change(function(){var t=!jQuery(this).is(":checked"),n=jQuery('input[name="general-redirect_require_login"]');t&&!n.is(":checked")&&n.click().trigger("change"),n.closest(".tiwlform-onoff-container").toggleClass("disabled",t)}).change(),s(".tablenav").each(function(){var t=s(this);s.trim(t.find(".alignleft").html()).length||t.find(".alignleft").remove(),s.trim(t.find(".alignright").html()).length&&!t.find(".tablenav-pages").hasClass("one-page")||(t.find(".alignright").remove(),t.find(".tinv-wishlist-clear").remove()),s.trim(t.html()).length||t.remove()}),s(".tablenav .bulkactions select").addClass("tinvwl-select grey").wrap('<span class="tinvwl-select-wrap">').parent().append('<span class="tinvwl-caret"><span></span></span>'),s(".tablenav .bulkactions .button.action, .tablenav #search-submit").removeClass("button").addClass("tinvwl-btn grey"),s(".tinvwl-modal-btn").on("click",function(){s(this).next(".tinvwl-modal").addClass("tinvwl-modal-open")}),s(".tinvwl-overlay, .tinvwl-close-modal, .tinvwl_button_close").on("click",function(t){t.preventDefault(),s(this).parents(".tinvwl-modal:first").removeClass("tinvwl-modal-open")}),void 0!==s.fn.popover&&((t=s(".tinvwl-help")).popover({content:function(){return s(this).closest(".tinvwl-info-wrap").find(".tinvwl-info-desc").html()}}),t.on("click",function(){s(this).popover("toggle")}),t.on("focusout",function(){s(this).popover("hide")}),s(window).on("resize",function(){t.popover("hide")})),s("body").on("click",".tinvwl-confirm-reset",function(t){t.preventDefault(),confirm(tinvwl_comfirm.text_comfirm_reset)&&s(this).removeClass("tinvwl-confirm-reset").trigger("click")})}),s(document).on("click",".tinvwl-chat-notice .notice-dismiss",function(t){s.post(tinvwl_comfirm.ajax_url,{action:"tinvwl_admin_chat_notice"})})}(jQuery);
|
assets/js/public.js
CHANGED
@@ -143,7 +143,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
143 |
if (s.redirectTimer) {
|
144 |
clearTimeout(s.redirectTimer);
|
145 |
}
|
146 |
-
},
|
147 |
}
|
148 |
|
149 |
$msg.on('click', '.tinv-close-modal, .tinvwl_button_close, .tinv-overlay', function (e) {
|
@@ -501,7 +501,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
501 |
if (closeTimer) {
|
502 |
clearTimeout(closeTimer);
|
503 |
}
|
504 |
-
},
|
505 |
}
|
506 |
}
|
507 |
|
@@ -587,7 +587,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
587 |
if (closeTimer) {
|
588 |
clearTimeout(closeTimer);
|
589 |
}
|
590 |
-
},
|
591 |
}
|
592 |
}
|
593 |
|
@@ -666,7 +666,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
666 |
if (closeTimer) {
|
667 |
clearTimeout(closeTimer);
|
668 |
}
|
669 |
-
},
|
670 |
}
|
671 |
}
|
672 |
|
@@ -763,7 +763,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
763 |
if (closeTimer) {
|
764 |
clearTimeout(closeTimer);
|
765 |
}
|
766 |
-
},
|
767 |
}
|
768 |
}
|
769 |
|
143 |
if (s.redirectTimer) {
|
144 |
clearTimeout(s.redirectTimer);
|
145 |
}
|
146 |
+
}, tinvwl_add_to_wishlist.popup_timer);
|
147 |
}
|
148 |
|
149 |
$msg.on('click', '.tinv-close-modal, .tinvwl_button_close, .tinv-overlay', function (e) {
|
501 |
if (closeTimer) {
|
502 |
clearTimeout(closeTimer);
|
503 |
}
|
504 |
+
}, tinvwl_add_to_wishlist.popup_timer);
|
505 |
}
|
506 |
}
|
507 |
|
587 |
if (closeTimer) {
|
588 |
clearTimeout(closeTimer);
|
589 |
}
|
590 |
+
}, tinvwl_add_to_wishlist.popup_timer);
|
591 |
}
|
592 |
}
|
593 |
|
666 |
if (closeTimer) {
|
667 |
clearTimeout(closeTimer);
|
668 |
}
|
669 |
+
}, tinvwl_add_to_wishlist.popup_timer);
|
670 |
}
|
671 |
}
|
672 |
|
763 |
if (closeTimer) {
|
764 |
clearTimeout(closeTimer);
|
765 |
}
|
766 |
+
}, tinvwl_add_to_wishlist.popup_timer);
|
767 |
}
|
768 |
}
|
769 |
|
assets/js/public.min.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
-
* @version 2.0.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
-
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function showTooltip(t,i){t.setAttribute("class","social social-clipboard tooltipped tooltipped-s"),t.setAttribute("aria-label",i)}function clearTooltip(t){t.currentTarget.setAttribute("class","social social-clipboard "),t.currentTarget.removeAttribute("aria-label")}!function(c){c.fn.tinvwl_to_wishlist=function(t){var i={api_url:window.location.href.split("?")[0],text_create:window.tinvwl_add_to_wishlist.text_create,text_already_in:window.tinvwl_add_to_wishlist.text_already_in,class:{dialogbox:".tinvwl_add_to_select_wishlist",select:".tinvwl_wishlist",newtitle:".tinvwl_new_input",dialogbutton:".tinvwl_button_add"},redirectTimer:null,onPrepareList:function(){},onGetDialogBox:function(){},onPrepareDialogBox:function(){c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c(this).appendTo("body > .tinv-wishlist")},onCreateWishList:function(t){c(this).append(c("<option>").html(t.title).val(t.ID).toggleClass("tinv_in_wishlist",t.in))},onSelectWishList:function(){},onDialogShow:function(t){c(t).addClass("tinv-modal-open"),c(t).removeClass("ftinvwl-pulse")},onDialogHide:function(t){c(t).removeClass("tinv-modal-open"),c(t).removeClass("ftinvwl-pulse")},onInited:function(){},onClick:function(){if(c(this).is(".disabled-add-wishlist"))return!1;c(this).is(".ftinvwl-animated")&&c(this).addClass("ftinvwl-pulse"),(this.tinvwl_dialog?this.tinvwl_dialog.show_list:o.onActionProduct).call(this)},onPrepareDataAction:function(t,i){c("body").trigger("tinvwl_wishlist_button_clicked",[t,i])},filterProductAlreadyIn:function(t){var t=t||[],e={};return c("form.cart[method=post], .woocommerce-variation-add-to-cart, form.vtajaxform[method=post]").find("input, select").each(function(){var t=c(this).attr("name"),i=c(this).attr("type"),n=c(this).val();("checkbox"!==i&&"radio"!==i||c(this).is(":checked"))&&(e["form"+t]=n)}),e=e.formvariation_id,t.filter(function(t){var i;return"object"===_typeof(t.in)&&"string"==typeof e?(i=parseInt(e),0<=t.in.indexOf(i)):t.in})},onMultiProductAlreadyIn:function(t){var t=t||[],n=(t=o.onPrepareList.call(t)||t,t=o.filterProductAlreadyIn.call(this,t)||t,c(this).parent().parent().find(".already-in").remove(),"");0===t.length||(n=c("<ul>"),c.each(t,function(t,i){n.append(c("<li>").html(c("<a>").html(i.title).attr({href:i.url})).val(i.ID))})),n.length&&c(this).closest(".tinv-modal-inner").find("img").after(c("<div>").addClass("already-in").html(o.text_already_in+" ").append(n))},onAction:{redirect:function(t){o.redirectTimer&&clearTimeout(o.redirectTimer),o.redirectTimer=window.setTimeout(function(){window.location.href=t},4e3)},force_redirect:function(t){window.location.href=t},wishlists:function(t){},msg:function(t){if(!t)return!1;var i=c(t).eq(0);c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),d("body > .tinv-wishlist"),o.redirectTimer||(o.removeTimer=window.setTimeout(function(){i.remove(),o.redirectTimer&&clearTimeout(o.redirectTimer)},6e3)),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove(),o.redirectTimer&&clearTimeout(o.redirectTimer),o.removeTimer&&clearTimeout(o.removeTimer)})},status:function(t){c("body").trigger("tinvwl_wishlist_added_status",[this,t])},removed:function(t){},make_remove:function(t){},wishlists_data:function(t){r(JSON.stringify(t))}}},o=(i.onActionProduct=function(t,i){var r={form:{},tinv_wishlist_id:t||"",tinv_wishlist_name:i||"",product_type:c(this).attr("data-tinv-wl-producttype"),product_id:c(this).attr("data-tinv-wl-product")||0,product_variation:c(this).attr("data-tinv-wl-productvariation")||0,product_action:c(this).attr("data-tinv-wl-action")||"addto",redirect:window.location.href},n=this,e=[],d=new FormData;tinvwl_add_to_wishlist.wpml&&(r.lang=tinvwl_add_to_wishlist.wpml),tinvwl_add_to_wishlist.wpml_default&&(r.lang_default=tinvwl_add_to_wishlist.wpml_default),"1"==tinvwl_add_to_wishlist.stats&&(r.stats=tinvwl_add_to_wishlist.stats),c('form.cart[method=post][data-product_id="'+c(this).attr("data-tinv-wl-product")+'"], form.vtajaxform[method=post][data-product_id="'+c(this).attr("data-tinv-wl-product")+'"]').each(function(){e.push(c(this))}),e.length||(c(n).closest("form.cart[method=post], form.vtajaxform[method=post]").each(function(){e.push(c(this))}),e.length||e.push(c("form.cart[method=post]"))),c('.tinv-wraper[data-tinvwl_product_id="'+c(this).attr("data-tinv-wl-product")+'"]').each(function(){e.push(c(this))}),c.each(e,function(t,i){c(i).find("input:not(:disabled), select:not(:disabled), textarea:not(:disabled)").each(function(){function o(t,i){if("object"!==_typeof(i))return i;for(var n in void 0===t&&(t={}),i)if(""===n){var e=-1;for(e in t);t[e=parseInt(e)+1]=o(t[n],i[n])}else t[n]=o(t[n],i[n]);return t}var t,i=c(this).attr("name"),n=c(this).attr("type"),e=c(this).val(),a=10;if("button"!==n&&void 0!==i){for(;/^(.+)\[([^\[\]]*?)\]$/.test(i)&&0<a;){var s,l=i.match(/^(.+)\[([^\[\]]*?)\]$/);3===l.length&&((s={})[l[2]]=e,e=s),i=l[1],a--}"file"!==n||(t=c(this)[0].files)&&d.append(i,t[0]),"checkbox"===n||"radio"===n?c(this).is(":checked")&&(e.length||"object"===_typeof(e)||(e=!0),r.form[i]=o(r.form[i],e)):r.form[i]=o(r.form[i],e)}})}),r=o.onPrepareDataAction.call(n,n,r)||r,c.each(r,function(n,t){"form"===n?c.each(t,function(t,i){"object"===_typeof(i)&&(i=JSON.stringify(i)),d.append(n+"["+t+"]",i)}):d.append(n,t)}),c.ajax({url:o.api_url,method:"POST",contentType:!1,processData:!1,data:d}).done(function(t){if(o.onDialogHide.call(n.tinvwl_dialog,n),"object"===_typeof(t))for(var i in t)"function"==typeof o.onAction[i]&&o.onAction[i].call(n,t[i]);else"function"==typeof o.onAction.msg&&o.onAction.msg.call(n,t)})},c.extend(!0,{},i,t));return c(this).each(function(){if(!c(this).attr("data-tinv-wl-list"))return!1;var t,e;o.dialogbox&&o.dialogbox.length&&(this.tinvwl_dialog=o.dialogbox),this.tinvwl_dialog||(this.tinvwl_dialog=o.onGetDialogBox.call(this)),this.tinvwl_dialog||(t=c(this).nextAll(o.class.dialogbox).eq(0)).length&&(this.tinvwl_dialog=t),this.tinvwl_dialog&&(o.onPrepareDialogBox.call(this.tinvwl_dialog),"function"!=typeof this.tinvwl_dialog.update_list&&(this.tinvwl_dialog.update_list=function(t){var n=c(this).find(o.class.select).eq(0);c(this).find(o.class.newtitle).hide().val(""),n.html(""),c.each(t,function(t,i){o.onCreateWishList.call(n,i)}),o.text_create&&o.onCreateWishList.call(n,{ID:"",title:o.text_create,in:!1}),o.onMultiProductAlreadyIn.call(n,t),o.onSelectWishList.call(n,t),c(this).find(o.class.newtitle).toggle(""===n.val())}),"function"!=typeof this.tinvwl_dialog.show_list&&(this.tinvwl_dialog.show_list=function(){var t=JSON.parse(c(this).attr("data-tinv-wl-list"))||[];t.length?(t=o.onPrepareList.call(t)||t,this.tinvwl_dialog.update_list(t),o.onDialogShow.call(this.tinvwl_dialog,this)):o.onActionProduct.call(this)}),c((e=this).tinvwl_dialog).find(o.class.dialogbutton).off("click").on("click",function(){var t,i=c(e.tinvwl_dialog).find(o.class.select),n=c(e.tinvwl_dialog).find(o.class.newtitle);i.val()||n.val()?o.onActionProduct.call(e,i.val(),n.val()):((t=n.is(":visible")?n:i).addClass("empty-name-wishlist"),window.setTimeout(function(){t.removeClass("empty-name-wishlist")},1e3))})),c(this).off("click").on("click",o.onClick),o.onInited.call(this,o)})},c(document).ready(function(){c("body").on("click keydown",".tinvwl_add_to_wishlist_button",function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return;t.preventDefault()}if(c("body").trigger("tinvwl_add_to_wishlist_button_click",[this]),c(this).is(".disabled-add-wishlist"))return t.preventDefault(),void window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);c(this).is(".inited-add-wishlist")||c(this).tinvwl_to_wishlist({onInited:function(t){c(this).addClass("inited-add-wishlist"),t.onClick.call(this)}})}),c("body").on("click keydown",'button[name="tinvwl-remove"]',function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return}t.preventDefault();var e=c(this);e.is(".inited-wishlist-action")||(e.addClass("inited-wishlist-action"),i={"tinvwl-product_id":e.val(),"tinvwl-action":"remove","tinvwl-security":tinvwl_add_to_wishlist.nonce,"tinvwl-paged":e.closest("form").data("tinvwl_paged"),"tinvwl-sharekey":e.closest("form").data("tinvwl_sharekey")},c.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:"POST",cache:!1,data:i,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){var i,n;e.removeClass("inited-wishlist-action"),t.msg&&(i=c(t.msg).eq(0),c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),d("body > .tinv-wishlist"),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove()}),n=n||window.setTimeout(function(){i.remove(),n&&clearTimeout(n)},6e3)),t.status&&(c("div.tinv-wishlist.woocommerce.tinv-wishlist-clear").replaceWith(t.content),c(".tinvwl-break-input").tinvwl_break_submit({selector:".tinvwl-break-input-filed"}),c(".tinvwl-break-checkbox").tinvwl_break_submit({selector:"table td input[type=checkbox]",validate:function(){return c(this).is(":checked")}}),jQuery.fn.tinvwl_get_wishlist_data()),t.wishlists_data&&r(JSON.stringify(t.wishlists_data))}))}),c("body").on("click keydown",'button[name="tinvwl-add-to-cart"]',function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return}t.preventDefault();var e=c(this);e.is(".inited-wishlist-action")||(e.addClass("inited-wishlist-action"),i={"tinvwl-product_id":e.val(),"tinvwl-action":"add_to_cart_single","tinvwl-security":tinvwl_add_to_wishlist.nonce,"tinvwl-paged":e.closest("form").data("tinvwl_paged"),"tinvwl-sharekey":e.closest("form").data("tinvwl_sharekey")},c.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:"POST",cache:!1,data:i,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){var i,n;e.removeClass("inited-wishlist-action"),t.redirect&&(window.location.href=t.redirect),t.msg&&(i=c(t.msg).eq(0),c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),d("body > .tinv-wishlist"),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove()}),n=n||window.setTimeout(function(){i.remove(),n&&clearTimeout(n)},6e3)),t.redirect||(c(document.body).trigger("wc_fragment_refresh"),c("div.tinv-wishlist.woocommerce.tinv-wishlist-clear").replaceWith(t.content),jQuery.fn.tinvwl_get_wishlist_data(),t.wishlists_data&&r(JSON.stringify(t.wishlists_data)))}))}),c("body").on("click keydown",'button[name="tinvwl-action-product_all"]',function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return}t.preventDefault();var e=c(this);e.is(".inited-wishlist-action")||(e.addClass("inited-wishlist-action"),i={"tinvwl-action":"add_to_cart_all","tinvwl-security":tinvwl_add_to_wishlist.nonce,"tinvwl-paged":e.closest("form").data("tinvwl_paged"),"tinvwl-sharekey":e.closest("form").data("tinvwl_sharekey")},c.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:"POST",cache:!1,data:i,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){var i,n;e.removeClass("inited-wishlist-action"),t.redirect&&(window.location.href=t.redirect),t.msg&&(i=c(t.msg).eq(0),c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),d("body > .tinv-wishlist"),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove()}),n=n||window.setTimeout(function(){i.remove(),n&&clearTimeout(n)},6e3)),t.redirect||(c(document.body).trigger("wc_fragment_refresh"),c("div.tinv-wishlist.woocommerce.tinv-wishlist-clear").replaceWith(t.content),jQuery.fn.tinvwl_get_wishlist_data(),t.wishlists_data&&r(JSON.stringify(t.wishlists_data)))}))}),c("body").on("click keydown",'button[name="tinvwl-action-product_apply"], button[name="tinvwl-action-product_selected"]',function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return}t.preventDefault();var e,n=[],o=(c('input[name="wishlist_pr[]"]:checked').each(function(){n.push(this.value)}),c(this));n.length&&("tinvwl-action-product_selected"===o.attr("name")||c("select#tinvwl_product_actions option").filter(":selected").val())?o.is(".inited-wishlist-action")||(o.addClass("inited-wishlist-action"),e="",e="tinvwl-action-product_selected"===o.attr("name")?"add_to_cart_selected":c("select#tinvwl_product_actions option").filter(":selected").val(),i={"tinvwl-products":n,"tinvwl-action":e,"tinvwl-security":tinvwl_add_to_wishlist.nonce,"tinvwl-paged":o.closest("form").data("tinvwl_paged"),"tinvwl-sharekey":o.closest("form").data("tinvwl_sharekey")},c.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:"POST",cache:!1,data:i,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){var i,n;o.removeClass("inited-wishlist-action"),t.redirect&&(window.location.href=t.redirect),t.msg&&(i=c(t.msg).eq(0),c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),d("body > .tinv-wishlist"),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove()}),n=n||window.setTimeout(function(){i.remove(),n&&clearTimeout(n)},6e3)),t.redirect||("add_to_cart_selected"===e&&c(document.body).trigger("wc_fragment_refresh"),c("div.tinv-wishlist.woocommerce.tinv-wishlist-clear").replaceWith(t.content),jQuery.fn.tinvwl_get_wishlist_data(),t.wishlists_data&&r(JSON.stringify(t.wishlists_data)))})):alert(window.tinvwl_add_to_wishlist.tinvwl_break_submit)}),c(document).on("hide_variation",".variations_form",function(t){var i=c('.tinvwl_add_to_wishlist_button:not(.tinvwl-loop)[data-tinv-wl-product="'+c(this).data("product_id")+'"]');if(i.attr("data-tinv-wl-productvariation",0),i.length&&i.attr("data-tinv-wl-list")){var n=JSON.parse(i.attr("data-tinv-wl-list")),e=!1,o="1"==window.tinvwl_add_to_wishlist.simple_flow;for(a in n)n[a].hasOwnProperty("in")&&Array.isArray(n[a].in)&&-1<(n[a].in||[]).indexOf(0)&&(e=!0);i.toggleClass("tinvwl-product-in-list",e).toggleClass("tinvwl-product-make-remove",e&&o).attr("data-tinv-wl-action",e&&o?"remove":"addto")}if(i.length&&i.attr("data-tinv-wl-product-stats")){i.find("span.tinvwl-product-stats").remove();var a,s=JSON.parse(i.attr("data-tinv-wl-product-stats"));for(a in s)-1<a.indexOf(0)&&(e=!0,c("body").trigger("tinvwl_wishlist_product_stats",[i,e]),i.append('<span class="tinvwl-product-stats">'+s[a]+"</span>"))}i.length&&!tinvwl_add_to_wishlist.allow_parent_variable&&(t.preventDefault(),i.addClass("disabled-add-wishlist"))}),c(document).on("show_variation",".variations_form",function(t,i,n){var e=c('.tinvwl_add_to_wishlist_button:not(.tinvwl-loop)[data-tinv-wl-product="'+c(this).data("product_id")+'"]');if(e.attr("data-tinv-wl-productvariation",i.variation_id),e.length&&e.attr("data-tinv-wl-list")){var o=JSON.parse(e.attr("data-tinv-wl-list")),a=!1,s="1"==window.tinvwl_add_to_wishlist.simple_flow;for(l in o)o[l].hasOwnProperty("in")&&Array.isArray(o[l].in)&&-1<(o[l].in||[]).indexOf(i.variation_id)&&(a=!0);e.toggleClass("tinvwl-product-in-list",a).toggleClass("tinvwl-product-make-remove",a&&s).attr("data-tinv-wl-action",a&&s?"remove":"addto")}if(e.length&&e.attr("data-tinv-wl-product-stats")){e.find("span.tinvwl-product-stats").remove();var l,r=JSON.parse(e.attr("data-tinv-wl-product-stats"));for(l in r)-1<l.indexOf(i.variation_id)&&(a=!0,c("body").trigger("tinvwl_wishlist_product_stats",[e,a]),e.append('<span class="tinvwl-product-stats">'+r[l]+"</span>"))}t.preventDefault(),e.removeClass("disabled-add-wishlist")}),c(window).on("storage onstorage",function(t){s===t.originalEvent.key&&localStorage.getItem(s)!==sessionStorage.getItem(s)&&(!localStorage.getItem(s)||"object"===_typeof(t=JSON.parse(localStorage.getItem(s)))&&null!==t&&(t.hasOwnProperty("products")||t.hasOwnProperty("counter"))&&r(localStorage.getItem(s)))});function i(){var t;(n.length||e)&&(t={},tinvwl_add_to_wishlist.wpml&&(t.lang=tinvwl_add_to_wishlist.wpml),tinvwl_add_to_wishlist.wpml_default&&(t.lang_default=tinvwl_add_to_wishlist.wpml_default),"1"==tinvwl_add_to_wishlist.stats&&(t.stats=tinvwl_add_to_wishlist.stats),c.ajax({url:tinvwl_add_to_wishlist.plugin_url+"includes/api/ajax.php",method:"POST",data:t,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){r(JSON.stringify(t)),l(t)}).fail(function(){var t;(n.length||e)&&(t={ids:n,counter:e,tinvwl_request:!0},tinvwl_add_to_wishlist.wpml&&(t.lang=tinvwl_add_to_wishlist.wpml),tinvwl_add_to_wishlist.wpml_default&&(t.lang_default=tinvwl_add_to_wishlist.wpml_default),"1"==tinvwl_add_to_wishlist.stats&&(t.stats=tinvwl_add_to_wishlist.stats),c.ajax({url:tinvwl_add_to_wishlist.rest_root+"wishlist/v1/products",method:"POST",data:t,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){r(JSON.stringify(t)),l(t)}))}))}var n=[],e=!1,t=(c("a.tinvwl_add_to_wishlist_button").each(function(){"undefined"!==c(this).data("tinv-wl-product")&&c(this).data("tinv-wl-product")&&n.push(c(this).data("tinv-wl-product"))}),c(".wishlist_products_counter_number").each(function(){e=!0}),c.fn.tinvwl_get_wishlist_data=function(){if(a&&(tinvwl_add_to_wishlist.update_wishlists_data&&localStorage.setItem(s,""),localStorage.getItem(s))){var t=JSON.parse(localStorage.getItem(s));if("object"===_typeof(t)&&null!==t&&(t.hasOwnProperty("products")||t.hasOwnProperty("counter"))&&(!t.hasOwnProperty("lang")&&!tinvwl_add_to_wishlist.wpml||tinvwl_add_to_wishlist.wpml&&t.lang===tinvwl_add_to_wishlist.wpml))return void l(t)}tinvwl_add_to_wishlist.block_ajax_wishlists_data||i()},c.fn.tinvwl_get_wishlist_data(),new MutationObserver(function(t){n=[],t.forEach(function(t){t=t.addedNodes;null!==t&&c(t).each(function(){var t=c(this).find(".tinvwl_add_to_wishlist_button");t.length&&t.each(function(){"undefined"!==c(this).data("tinv-wl-product")&&c(this).data("tinv-wl-product")&&n.push(c(this).data("tinv-wl-product"))})})}),n.length&&c.fn.tinvwl_get_wishlist_data()})),o=document.body;t.observe(o,{childList:!0,subtree:!0})});var a=!0,s=tinvwl_add_to_wishlist.hash_key;try{a="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("ti","test"),window.sessionStorage.removeItem("ti"),window.localStorage.setItem("ti","test"),window.localStorage.removeItem("ti")}catch(t){a=!1}function l(t){var s="1"==window.tinvwl_add_to_wishlist.simple_flow,i=((s||t.stats&&"1"==tinvwl_add_to_wishlist.stats)&&c("a.tinvwl_add_to_wishlist_button").each(function(){s&&c(this).removeClass("tinvwl-product-make-remove").removeClass("tinvwl-product-already-on-wishlist").removeClass("tinvwl-product-in-list").attr("data-tinv-wl-action","addto").attr("data-tinv-wl-list","[]"),t.stats&&c(this).find("span.tinvwl-product-stats").remove()}),c("body").trigger("tinvwl_wishlist_mark_products",[t]),c.each(t.products,function(t,o){var a=t;c('a.tinvwl_add_to_wishlist_button[data-tinv-wl-product="'+a+'"]').each(function(){var i,t=parseInt(c(this).attr("data-tinv-wl-productvariation")),n=c(this).data("tinv-wl-productvariations")||[],e=!1;for(i in o)o[i].hasOwnProperty("in")&&Array.isArray(o[i].in)&&(-1<(o[i].in||[]).indexOf(a)||-1<(o[i].in||[]).indexOf(t)||n.some(function(t){return 0<=(o[i].in||[]).indexOf(t)}))&&(e=!0);c("body").trigger("tinvwl_wishlist_product_marked",[this,e]),c(this).attr("data-tinv-wl-list",JSON.stringify(o)).toggleClass("tinvwl-product-in-list",e).toggleClass("tinvwl-product-make-remove",e&&s).attr("data-tinv-wl-action",e&&s?"remove":"addto")})}),t.stats&&"1"==tinvwl_add_to_wishlist.stats&&c.each(t.stats,function(t,n){c('a.tinvwl_add_to_wishlist_button[data-tinv-wl-product="'+t+'"]').each(function(){c(this).attr("data-tinv-wl-product-stats",JSON.stringify(n));var t,i=parseInt(c(this).attr("data-tinv-wl-productvariation"));for(t in n)-1<t.indexOf(i)&&(c("body").trigger("tinvwl_wishlist_product_stats",[this,!0]),c(this).append('<span class="tinvwl-product-stats">'+n[t]+"</span>"))})}),t.counter);"1"==window.tinvwl_add_to_wishlist.hide_zero_counter&&0===i&&(i="false"),jQuery("i.wishlist-icon").addClass("added"),"false"!==i?(jQuery(".wishlist_products_counter_number, body.theme-woostify .wishlist-item-count").html(i),jQuery("i.wishlist-icon").attr("data-icon-label",i)):(jQuery(".wishlist_products_counter_number, body.theme-woostify .wishlist-item-count").html("").closest("span.wishlist-counter-with-products").removeClass("wishlist-counter-with-products"),jQuery("i.wishlist-icon").removeAttr("data-icon-label")),i=!("0"==i||"false"==i),jQuery(".wishlist_products_counter").toggleClass("wishlist-counter-with-products",i),setTimeout(function(){jQuery("i.wishlist-icon").removeClass("added")},500)}function r(t){a&&(localStorage.setItem(s,t),sessionStorage.setItem(s,t),l(JSON.parse(t)))}function d(t){var t=c(t).find("select, input, textarea, button, a").filter(":visible"),i=t.first(),n=t.last();i.focus().blur(),n.on("keydown",function(t){9!==t.which||t.shiftKey||(t.preventDefault(),i.focus())}),i.on("keydown",function(t){9===t.which&&t.shiftKey&&(t.preventDefault(),n.focus())})}}(jQuery),function(e){e(document).ready(function(){if(e(".tinv-lists-nav").each(function(){e(this).html().trim().length||e(this).remove()}),e("body").on("click",".social-buttons .social:not(.social-email,.social-whatsapp,.social-clipboard)",function(t){var i=window.open(e(this).attr("href"),e(this).attr("title"),"width=420,height=320,resizable=yes,scrollbars=yes,status=yes");i&&(i.focus(),t.preventDefault())}),"undefined"!=typeof ClipboardJS){new ClipboardJS(".social-buttons .social.social-clipboard",{text:function(t){return t.getAttribute("href")}}).on("success",function(t){showTooltip(t.trigger,tinvwl_add_to_wishlist.tinvwl_clipboard)});for(var t=document.querySelectorAll(".social-buttons .social.social-clipboard"),i=0;i<t.length;i++)t[i].addEventListener("mouseleave",clearTooltip),t[i].addEventListener("blur",clearTooltip)}e("body").on("click",".social-buttons .social.social-clipboard",function(t){t.preventDefault()}),e("body").on("click",".tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close",function(t){t.preventDefault(),e(this).parents(".tinv-modal:first").removeClass("tinv-modal-open"),e("body").trigger("tinvwl_modal_closed",[this])}),e("body").on("click",".tinv-wishlist .tinvwl-btn-onclick",function(t){e(this).data("url")&&(t.preventDefault(),window.location=e(this).data("url"))});var n=e(".tinv-wishlist .navigation-button");n.length&&n.each(function(){var t=e(this).find("> li");t.length<5&&t.parent().addClass("tinvwl-btns-count-"+t.length)}),e(".tinv-login .showlogin").off("click").on("click",function(t){t.preventDefault(),e(this).closest(".tinv-login").find(".login").toggle()}),e(".tinv-wishlist table.tinvwl-table-manage-list tfoot td").each(function(){e(this).toggle(!!e(this).children().not(".look_in").length||!!e(this).children(".look_in").children().length)})})}(jQuery),function(e){e.fn.tinvwl_break_submit=function(t){var n=e.extend(!0,{},{selector:"input, select, textarea",ifempty:!0,invert:!1,validate:function(){return e(this).val()},rule:function(){var t=e(this).parents("form").eq(0).find(n.selector),i=n.invert;return 0===t.length?n.ifempty:(t.each(function(){i&&!n.invert||!i&&n.invert||(i=Boolean(n.validate.call(e(this))))}),i)}},t);return e(this).each(function(){e(this).on("click",function(t){var i=[];void 0!==e(this).attr("tinvwl_break_submit")&&(i=e(this).attr("tinvwl_break_submit").split(",")),-1!==jQuery.inArray(n.selector,i)&&(i=[]),n.rule.call(e(this))||0!==i.length||(alert(window.tinvwl_add_to_wishlist.tinvwl_break_submit),t.preventDefault()),i.push(n.selector),e(this).attr("tinvwl_break_submit",i),n.rule.call(e(this))&&e(this).removeAttr("tinvwl_break_submit")})})},e(document).ready(function(){e("body").on("click",".global-cb",function(){e(this).closest("table").eq(0).find(".product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]").prop("checked",e(this).is(":checked"))})})}(jQuery);
|
1 |
/**
|
2 |
* TI WooCommerce Wishlist Plugin - Allow your store guests and customers to add products to Wishlist. Add Wishlist functionality to your store for free.
|
3 |
+
* @version 2.0.2
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
+
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function showTooltip(t,i){t.setAttribute("class","social social-clipboard tooltipped tooltipped-s"),t.setAttribute("aria-label",i)}function clearTooltip(t){t.currentTarget.setAttribute("class","social social-clipboard "),t.currentTarget.removeAttribute("aria-label")}!function(c){c.fn.tinvwl_to_wishlist=function(t){var i={api_url:window.location.href.split("?")[0],text_create:window.tinvwl_add_to_wishlist.text_create,text_already_in:window.tinvwl_add_to_wishlist.text_already_in,class:{dialogbox:".tinvwl_add_to_select_wishlist",select:".tinvwl_wishlist",newtitle:".tinvwl_new_input",dialogbutton:".tinvwl_button_add"},redirectTimer:null,onPrepareList:function(){},onGetDialogBox:function(){},onPrepareDialogBox:function(){c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c(this).appendTo("body > .tinv-wishlist")},onCreateWishList:function(t){c(this).append(c("<option>").html(t.title).val(t.ID).toggleClass("tinv_in_wishlist",t.in))},onSelectWishList:function(){},onDialogShow:function(t){c(t).addClass("tinv-modal-open"),c(t).removeClass("ftinvwl-pulse")},onDialogHide:function(t){c(t).removeClass("tinv-modal-open"),c(t).removeClass("ftinvwl-pulse")},onInited:function(){},onClick:function(){if(c(this).is(".disabled-add-wishlist"))return!1;c(this).is(".ftinvwl-animated")&&c(this).addClass("ftinvwl-pulse"),(this.tinvwl_dialog?this.tinvwl_dialog.show_list:o.onActionProduct).call(this)},onPrepareDataAction:function(t,i){c("body").trigger("tinvwl_wishlist_button_clicked",[t,i])},filterProductAlreadyIn:function(t){var t=t||[],e={};return c("form.cart[method=post], .woocommerce-variation-add-to-cart, form.vtajaxform[method=post]").find("input, select").each(function(){var t=c(this).attr("name"),i=c(this).attr("type"),n=c(this).val();("checkbox"!==i&&"radio"!==i||c(this).is(":checked"))&&(e["form"+t]=n)}),e=e.formvariation_id,t.filter(function(t){var i;return"object"===_typeof(t.in)&&"string"==typeof e?(i=parseInt(e),0<=t.in.indexOf(i)):t.in})},onMultiProductAlreadyIn:function(t){var t=t||[],n=(t=o.onPrepareList.call(t)||t,t=o.filterProductAlreadyIn.call(this,t)||t,c(this).parent().parent().find(".already-in").remove(),"");0===t.length||(n=c("<ul>"),c.each(t,function(t,i){n.append(c("<li>").html(c("<a>").html(i.title).attr({href:i.url})).val(i.ID))})),n.length&&c(this).closest(".tinv-modal-inner").find("img").after(c("<div>").addClass("already-in").html(o.text_already_in+" ").append(n))},onAction:{redirect:function(t){o.redirectTimer&&clearTimeout(o.redirectTimer),o.redirectTimer=window.setTimeout(function(){window.location.href=t},4e3)},force_redirect:function(t){window.location.href=t},wishlists:function(t){},msg:function(t){if(!t)return!1;var i=c(t).eq(0);c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),r("body > .tinv-wishlist"),o.redirectTimer||(o.removeTimer=window.setTimeout(function(){i.remove(),o.redirectTimer&&clearTimeout(o.redirectTimer)},tinvwl_add_to_wishlist.popup_timer)),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove(),o.redirectTimer&&clearTimeout(o.redirectTimer),o.removeTimer&&clearTimeout(o.removeTimer)})},status:function(t){c("body").trigger("tinvwl_wishlist_added_status",[this,t])},removed:function(t){},make_remove:function(t){},wishlists_data:function(t){d(JSON.stringify(t))}}},o=(i.onActionProduct=function(t,i){var d={form:{},tinv_wishlist_id:t||"",tinv_wishlist_name:i||"",product_type:c(this).attr("data-tinv-wl-producttype"),product_id:c(this).attr("data-tinv-wl-product")||0,product_variation:c(this).attr("data-tinv-wl-productvariation")||0,product_action:c(this).attr("data-tinv-wl-action")||"addto",redirect:window.location.href},n=this,e=[],r=new FormData;tinvwl_add_to_wishlist.wpml&&(d.lang=tinvwl_add_to_wishlist.wpml),tinvwl_add_to_wishlist.wpml_default&&(d.lang_default=tinvwl_add_to_wishlist.wpml_default),"1"==tinvwl_add_to_wishlist.stats&&(d.stats=tinvwl_add_to_wishlist.stats),c('form.cart[method=post][data-product_id="'+c(this).attr("data-tinv-wl-product")+'"], form.vtajaxform[method=post][data-product_id="'+c(this).attr("data-tinv-wl-product")+'"]').each(function(){e.push(c(this))}),e.length||(c(n).closest("form.cart[method=post], form.vtajaxform[method=post]").each(function(){e.push(c(this))}),e.length||e.push(c("form.cart[method=post]"))),c('.tinv-wraper[data-tinvwl_product_id="'+c(this).attr("data-tinv-wl-product")+'"]').each(function(){e.push(c(this))}),c.each(e,function(t,i){c(i).find("input:not(:disabled), select:not(:disabled), textarea:not(:disabled)").each(function(){function o(t,i){if("object"!==_typeof(i))return i;for(var n in void 0===t&&(t={}),i)if(""===n){var e=-1;for(e in t);t[e=parseInt(e)+1]=o(t[n],i[n])}else t[n]=o(t[n],i[n]);return t}var t,i=c(this).attr("name"),n=c(this).attr("type"),e=c(this).val(),a=10;if("button"!==n&&void 0!==i){for(;/^(.+)\[([^\[\]]*?)\]$/.test(i)&&0<a;){var s,l=i.match(/^(.+)\[([^\[\]]*?)\]$/);3===l.length&&((s={})[l[2]]=e,e=s),i=l[1],a--}"file"!==n||(t=c(this)[0].files)&&r.append(i,t[0]),"checkbox"===n||"radio"===n?c(this).is(":checked")&&(e.length||"object"===_typeof(e)||(e=!0),d.form[i]=o(d.form[i],e)):d.form[i]=o(d.form[i],e)}})}),d=o.onPrepareDataAction.call(n,n,d)||d,c.each(d,function(n,t){"form"===n?c.each(t,function(t,i){"object"===_typeof(i)&&(i=JSON.stringify(i)),r.append(n+"["+t+"]",i)}):r.append(n,t)}),c.ajax({url:o.api_url,method:"POST",contentType:!1,processData:!1,data:r}).done(function(t){if(o.onDialogHide.call(n.tinvwl_dialog,n),"object"===_typeof(t))for(var i in t)"function"==typeof o.onAction[i]&&o.onAction[i].call(n,t[i]);else"function"==typeof o.onAction.msg&&o.onAction.msg.call(n,t)})},c.extend(!0,{},i,t));return c(this).each(function(){if(!c(this).attr("data-tinv-wl-list"))return!1;var t,e;o.dialogbox&&o.dialogbox.length&&(this.tinvwl_dialog=o.dialogbox),this.tinvwl_dialog||(this.tinvwl_dialog=o.onGetDialogBox.call(this)),this.tinvwl_dialog||(t=c(this).nextAll(o.class.dialogbox).eq(0)).length&&(this.tinvwl_dialog=t),this.tinvwl_dialog&&(o.onPrepareDialogBox.call(this.tinvwl_dialog),"function"!=typeof this.tinvwl_dialog.update_list&&(this.tinvwl_dialog.update_list=function(t){var n=c(this).find(o.class.select).eq(0);c(this).find(o.class.newtitle).hide().val(""),n.html(""),c.each(t,function(t,i){o.onCreateWishList.call(n,i)}),o.text_create&&o.onCreateWishList.call(n,{ID:"",title:o.text_create,in:!1}),o.onMultiProductAlreadyIn.call(n,t),o.onSelectWishList.call(n,t),c(this).find(o.class.newtitle).toggle(""===n.val())}),"function"!=typeof this.tinvwl_dialog.show_list&&(this.tinvwl_dialog.show_list=function(){var t=JSON.parse(c(this).attr("data-tinv-wl-list"))||[];t.length?(t=o.onPrepareList.call(t)||t,this.tinvwl_dialog.update_list(t),o.onDialogShow.call(this.tinvwl_dialog,this)):o.onActionProduct.call(this)}),c((e=this).tinvwl_dialog).find(o.class.dialogbutton).off("click").on("click",function(){var t,i=c(e.tinvwl_dialog).find(o.class.select),n=c(e.tinvwl_dialog).find(o.class.newtitle);i.val()||n.val()?o.onActionProduct.call(e,i.val(),n.val()):((t=n.is(":visible")?n:i).addClass("empty-name-wishlist"),window.setTimeout(function(){t.removeClass("empty-name-wishlist")},1e3))})),c(this).off("click").on("click",o.onClick),o.onInited.call(this,o)})},c(document).ready(function(){c("body").on("click keydown",".tinvwl_add_to_wishlist_button",function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return;t.preventDefault()}if(c("body").trigger("tinvwl_add_to_wishlist_button_click",[this]),c(this).is(".disabled-add-wishlist"))return t.preventDefault(),void window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);c(this).is(".inited-add-wishlist")||c(this).tinvwl_to_wishlist({onInited:function(t){c(this).addClass("inited-add-wishlist"),t.onClick.call(this)}})}),c("body").on("click keydown",'button[name="tinvwl-remove"]',function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return}t.preventDefault();var e=c(this);e.is(".inited-wishlist-action")||(e.addClass("inited-wishlist-action"),i={"tinvwl-product_id":e.val(),"tinvwl-action":"remove","tinvwl-security":tinvwl_add_to_wishlist.nonce,"tinvwl-paged":e.closest("form").data("tinvwl_paged"),"tinvwl-sharekey":e.closest("form").data("tinvwl_sharekey")},c.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:"POST",cache:!1,data:i,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){var i,n;e.removeClass("inited-wishlist-action"),t.msg&&(i=c(t.msg).eq(0),c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),r("body > .tinv-wishlist"),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove()}),n=n||window.setTimeout(function(){i.remove(),n&&clearTimeout(n)},tinvwl_add_to_wishlist.popup_timer)),t.status&&(c("div.tinv-wishlist.woocommerce.tinv-wishlist-clear").replaceWith(t.content),c(".tinvwl-break-input").tinvwl_break_submit({selector:".tinvwl-break-input-filed"}),c(".tinvwl-break-checkbox").tinvwl_break_submit({selector:"table td input[type=checkbox]",validate:function(){return c(this).is(":checked")}}),jQuery.fn.tinvwl_get_wishlist_data()),t.wishlists_data&&d(JSON.stringify(t.wishlists_data))}))}),c("body").on("click keydown",'button[name="tinvwl-add-to-cart"]',function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return}t.preventDefault();var e=c(this);e.is(".inited-wishlist-action")||(e.addClass("inited-wishlist-action"),i={"tinvwl-product_id":e.val(),"tinvwl-action":"add_to_cart_single","tinvwl-security":tinvwl_add_to_wishlist.nonce,"tinvwl-paged":e.closest("form").data("tinvwl_paged"),"tinvwl-sharekey":e.closest("form").data("tinvwl_sharekey")},c.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:"POST",cache:!1,data:i,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){var i,n;e.removeClass("inited-wishlist-action"),t.redirect&&(window.location.href=t.redirect),t.msg&&(i=c(t.msg).eq(0),c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),r("body > .tinv-wishlist"),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove()}),n=n||window.setTimeout(function(){i.remove(),n&&clearTimeout(n)},tinvwl_add_to_wishlist.popup_timer)),t.redirect||(c(document.body).trigger("wc_fragment_refresh"),c("div.tinv-wishlist.woocommerce.tinv-wishlist-clear").replaceWith(t.content),jQuery.fn.tinvwl_get_wishlist_data(),t.wishlists_data&&d(JSON.stringify(t.wishlists_data)))}))}),c("body").on("click keydown",'button[name="tinvwl-action-product_all"]',function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return}t.preventDefault();var e=c(this);e.is(".inited-wishlist-action")||(e.addClass("inited-wishlist-action"),i={"tinvwl-action":"add_to_cart_all","tinvwl-security":tinvwl_add_to_wishlist.nonce,"tinvwl-paged":e.closest("form").data("tinvwl_paged"),"tinvwl-sharekey":e.closest("form").data("tinvwl_sharekey")},c.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:"POST",cache:!1,data:i,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){var i,n;e.removeClass("inited-wishlist-action"),t.redirect&&(window.location.href=t.redirect),t.msg&&(i=c(t.msg).eq(0),c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),r("body > .tinv-wishlist"),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove()}),n=n||window.setTimeout(function(){i.remove(),n&&clearTimeout(n)},tinvwl_add_to_wishlist.popup_timer)),t.redirect||(c(document.body).trigger("wc_fragment_refresh"),c("div.tinv-wishlist.woocommerce.tinv-wishlist-clear").replaceWith(t.content),jQuery.fn.tinvwl_get_wishlist_data(),t.wishlists_data&&d(JSON.stringify(t.wishlists_data)))}))}),c("body").on("click keydown",'button[name="tinvwl-action-product_apply"], button[name="tinvwl-action-product_selected"]',function(t){if("keydown"===t.type){var i=void 0!==t.key?t.key:t.keyCode;if(!("Enter"===i||13===i||0<=["Spacebar"," "].indexOf(i)||32===i))return}t.preventDefault();var e,n=[],o=(c('input[name="wishlist_pr[]"]:checked').each(function(){n.push(this.value)}),c(this));n.length&&("tinvwl-action-product_selected"===o.attr("name")||c("select#tinvwl_product_actions option").filter(":selected").val())?o.is(".inited-wishlist-action")||(o.addClass("inited-wishlist-action"),e="",e="tinvwl-action-product_selected"===o.attr("name")?"add_to_cart_selected":c("select#tinvwl_product_actions option").filter(":selected").val(),i={"tinvwl-products":n,"tinvwl-action":e,"tinvwl-security":tinvwl_add_to_wishlist.nonce,"tinvwl-paged":o.closest("form").data("tinvwl_paged"),"tinvwl-sharekey":o.closest("form").data("tinvwl_sharekey")},c.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:"POST",cache:!1,data:i,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){var i,n;o.removeClass("inited-wishlist-action"),t.redirect&&(window.location.href=t.redirect),t.msg&&(i=c(t.msg).eq(0),c("body > .tinv-wishlist").length||c("body").append(c("<div>").addClass("tinv-wishlist")),c("body > .tinv-wishlist").append(i),r("body > .tinv-wishlist"),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove()}),n=n||window.setTimeout(function(){i.remove(),n&&clearTimeout(n)},tinvwl_add_to_wishlist.popup_timer)),t.redirect||("add_to_cart_selected"===e&&c(document.body).trigger("wc_fragment_refresh"),c("div.tinv-wishlist.woocommerce.tinv-wishlist-clear").replaceWith(t.content),jQuery.fn.tinvwl_get_wishlist_data(),t.wishlists_data&&d(JSON.stringify(t.wishlists_data)))})):alert(window.tinvwl_add_to_wishlist.tinvwl_break_submit)}),c(document).on("hide_variation",".variations_form",function(t){var i=c('.tinvwl_add_to_wishlist_button:not(.tinvwl-loop)[data-tinv-wl-product="'+c(this).data("product_id")+'"]');if(i.attr("data-tinv-wl-productvariation",0),i.length&&i.attr("data-tinv-wl-list")){var n=JSON.parse(i.attr("data-tinv-wl-list")),e=!1,o="1"==window.tinvwl_add_to_wishlist.simple_flow;for(a in n)n[a].hasOwnProperty("in")&&Array.isArray(n[a].in)&&-1<(n[a].in||[]).indexOf(0)&&(e=!0);i.toggleClass("tinvwl-product-in-list",e).toggleClass("tinvwl-product-make-remove",e&&o).attr("data-tinv-wl-action",e&&o?"remove":"addto")}if(i.length&&i.attr("data-tinv-wl-product-stats")){i.find("span.tinvwl-product-stats").remove();var a,s=JSON.parse(i.attr("data-tinv-wl-product-stats"));for(a in s)-1<a.indexOf(0)&&(e=!0,c("body").trigger("tinvwl_wishlist_product_stats",[i,e]),i.append('<span class="tinvwl-product-stats">'+s[a]+"</span>"))}i.length&&!tinvwl_add_to_wishlist.allow_parent_variable&&(t.preventDefault(),i.addClass("disabled-add-wishlist"))}),c(document).on("show_variation",".variations_form",function(t,i,n){var e=c('.tinvwl_add_to_wishlist_button:not(.tinvwl-loop)[data-tinv-wl-product="'+c(this).data("product_id")+'"]');if(e.attr("data-tinv-wl-productvariation",i.variation_id),e.length&&e.attr("data-tinv-wl-list")){var o=JSON.parse(e.attr("data-tinv-wl-list")),a=!1,s="1"==window.tinvwl_add_to_wishlist.simple_flow;for(l in o)o[l].hasOwnProperty("in")&&Array.isArray(o[l].in)&&-1<(o[l].in||[]).indexOf(i.variation_id)&&(a=!0);e.toggleClass("tinvwl-product-in-list",a).toggleClass("tinvwl-product-make-remove",a&&s).attr("data-tinv-wl-action",a&&s?"remove":"addto")}if(e.length&&e.attr("data-tinv-wl-product-stats")){e.find("span.tinvwl-product-stats").remove();var l,d=JSON.parse(e.attr("data-tinv-wl-product-stats"));for(l in d)-1<l.indexOf(i.variation_id)&&(a=!0,c("body").trigger("tinvwl_wishlist_product_stats",[e,a]),e.append('<span class="tinvwl-product-stats">'+d[l]+"</span>"))}t.preventDefault(),e.removeClass("disabled-add-wishlist")}),c(window).on("storage onstorage",function(t){s===t.originalEvent.key&&localStorage.getItem(s)!==sessionStorage.getItem(s)&&(!localStorage.getItem(s)||"object"===_typeof(t=JSON.parse(localStorage.getItem(s)))&&null!==t&&(t.hasOwnProperty("products")||t.hasOwnProperty("counter"))&&d(localStorage.getItem(s)))});function i(){var t;(n.length||e)&&(t={},tinvwl_add_to_wishlist.wpml&&(t.lang=tinvwl_add_to_wishlist.wpml),tinvwl_add_to_wishlist.wpml_default&&(t.lang_default=tinvwl_add_to_wishlist.wpml_default),"1"==tinvwl_add_to_wishlist.stats&&(t.stats=tinvwl_add_to_wishlist.stats),c.ajax({url:tinvwl_add_to_wishlist.plugin_url+"includes/api/ajax.php",method:"POST",data:t,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){d(JSON.stringify(t)),l(t)}).fail(function(){var t;(n.length||e)&&(t={ids:n,counter:e,tinvwl_request:!0},tinvwl_add_to_wishlist.wpml&&(t.lang=tinvwl_add_to_wishlist.wpml),tinvwl_add_to_wishlist.wpml_default&&(t.lang_default=tinvwl_add_to_wishlist.wpml_default),"1"==tinvwl_add_to_wishlist.stats&&(t.stats=tinvwl_add_to_wishlist.stats),c.ajax({url:tinvwl_add_to_wishlist.rest_root+"wishlist/v1/products",method:"POST",data:t,beforeSend:function(t){t.setRequestHeader("X-WP-Nonce",tinvwl_add_to_wishlist.nonce)}}).done(function(t){d(JSON.stringify(t)),l(t)}))}))}var n=[],e=!1,t=(c("a.tinvwl_add_to_wishlist_button").each(function(){"undefined"!==c(this).data("tinv-wl-product")&&c(this).data("tinv-wl-product")&&n.push(c(this).data("tinv-wl-product"))}),c(".wishlist_products_counter_number").each(function(){e=!0}),c.fn.tinvwl_get_wishlist_data=function(){if(a&&(tinvwl_add_to_wishlist.update_wishlists_data&&localStorage.setItem(s,""),localStorage.getItem(s))){var t=JSON.parse(localStorage.getItem(s));if("object"===_typeof(t)&&null!==t&&(t.hasOwnProperty("products")||t.hasOwnProperty("counter"))&&(!t.hasOwnProperty("lang")&&!tinvwl_add_to_wishlist.wpml||tinvwl_add_to_wishlist.wpml&&t.lang===tinvwl_add_to_wishlist.wpml))return void l(t)}tinvwl_add_to_wishlist.block_ajax_wishlists_data||i()},c.fn.tinvwl_get_wishlist_data(),new MutationObserver(function(t){n=[],t.forEach(function(t){t=t.addedNodes;null!==t&&c(t).each(function(){var t=c(this).find(".tinvwl_add_to_wishlist_button");t.length&&t.each(function(){"undefined"!==c(this).data("tinv-wl-product")&&c(this).data("tinv-wl-product")&&n.push(c(this).data("tinv-wl-product"))})})}),n.length&&c.fn.tinvwl_get_wishlist_data()})),o=document.body;t.observe(o,{childList:!0,subtree:!0})});var a=!0,s=tinvwl_add_to_wishlist.hash_key;try{a="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("ti","test"),window.sessionStorage.removeItem("ti"),window.localStorage.setItem("ti","test"),window.localStorage.removeItem("ti")}catch(t){a=!1}function l(t){var s="1"==window.tinvwl_add_to_wishlist.simple_flow,i=((s||t.stats&&"1"==tinvwl_add_to_wishlist.stats)&&c("a.tinvwl_add_to_wishlist_button").each(function(){s&&c(this).removeClass("tinvwl-product-make-remove").removeClass("tinvwl-product-already-on-wishlist").removeClass("tinvwl-product-in-list").attr("data-tinv-wl-action","addto").attr("data-tinv-wl-list","[]"),t.stats&&c(this).find("span.tinvwl-product-stats").remove()}),c("body").trigger("tinvwl_wishlist_mark_products",[t]),c.each(t.products,function(t,o){var a=t;c('a.tinvwl_add_to_wishlist_button[data-tinv-wl-product="'+a+'"]').each(function(){var i,t=parseInt(c(this).attr("data-tinv-wl-productvariation")),n=c(this).data("tinv-wl-productvariations")||[],e=!1;for(i in o)o[i].hasOwnProperty("in")&&Array.isArray(o[i].in)&&(-1<(o[i].in||[]).indexOf(a)||-1<(o[i].in||[]).indexOf(t)||n.some(function(t){return 0<=(o[i].in||[]).indexOf(t)}))&&(e=!0);c("body").trigger("tinvwl_wishlist_product_marked",[this,e]),c(this).attr("data-tinv-wl-list",JSON.stringify(o)).toggleClass("tinvwl-product-in-list",e).toggleClass("tinvwl-product-make-remove",e&&s).attr("data-tinv-wl-action",e&&s?"remove":"addto")})}),t.stats&&"1"==tinvwl_add_to_wishlist.stats&&c.each(t.stats,function(t,n){c('a.tinvwl_add_to_wishlist_button[data-tinv-wl-product="'+t+'"]').each(function(){c(this).attr("data-tinv-wl-product-stats",JSON.stringify(n));var t,i=parseInt(c(this).attr("data-tinv-wl-productvariation"));for(t in n)-1<t.indexOf(i)&&(c("body").trigger("tinvwl_wishlist_product_stats",[this,!0]),c(this).append('<span class="tinvwl-product-stats">'+n[t]+"</span>"))})}),t.counter);"1"==window.tinvwl_add_to_wishlist.hide_zero_counter&&0===i&&(i="false"),jQuery("i.wishlist-icon").addClass("added"),"false"!==i?(jQuery(".wishlist_products_counter_number, body.theme-woostify .wishlist-item-count").html(i),jQuery("i.wishlist-icon").attr("data-icon-label",i)):(jQuery(".wishlist_products_counter_number, body.theme-woostify .wishlist-item-count").html("").closest("span.wishlist-counter-with-products").removeClass("wishlist-counter-with-products"),jQuery("i.wishlist-icon").removeAttr("data-icon-label")),i=!("0"==i||"false"==i),jQuery(".wishlist_products_counter").toggleClass("wishlist-counter-with-products",i),setTimeout(function(){jQuery("i.wishlist-icon").removeClass("added")},500)}function d(t){a&&(localStorage.setItem(s,t),sessionStorage.setItem(s,t),l(JSON.parse(t)))}function r(t){var t=c(t).find("select, input, textarea, button, a").filter(":visible"),i=t.first(),n=t.last();i.focus().blur(),n.on("keydown",function(t){9!==t.which||t.shiftKey||(t.preventDefault(),i.focus())}),i.on("keydown",function(t){9===t.which&&t.shiftKey&&(t.preventDefault(),n.focus())})}}(jQuery),function(e){e(document).ready(function(){if(e(".tinv-lists-nav").each(function(){e(this).html().trim().length||e(this).remove()}),e("body").on("click",".social-buttons .social:not(.social-email,.social-whatsapp,.social-clipboard)",function(t){var i=window.open(e(this).attr("href"),e(this).attr("title"),"width=420,height=320,resizable=yes,scrollbars=yes,status=yes");i&&(i.focus(),t.preventDefault())}),"undefined"!=typeof ClipboardJS){new ClipboardJS(".social-buttons .social.social-clipboard",{text:function(t){return t.getAttribute("href")}}).on("success",function(t){showTooltip(t.trigger,tinvwl_add_to_wishlist.tinvwl_clipboard)});for(var t=document.querySelectorAll(".social-buttons .social.social-clipboard"),i=0;i<t.length;i++)t[i].addEventListener("mouseleave",clearTooltip),t[i].addEventListener("blur",clearTooltip)}e("body").on("click",".social-buttons .social.social-clipboard",function(t){t.preventDefault()}),e("body").on("click",".tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close",function(t){t.preventDefault(),e(this).parents(".tinv-modal:first").removeClass("tinv-modal-open"),e("body").trigger("tinvwl_modal_closed",[this])}),e("body").on("click",".tinv-wishlist .tinvwl-btn-onclick",function(t){e(this).data("url")&&(t.preventDefault(),window.location=e(this).data("url"))});var n=e(".tinv-wishlist .navigation-button");n.length&&n.each(function(){var t=e(this).find("> li");t.length<5&&t.parent().addClass("tinvwl-btns-count-"+t.length)}),e(".tinv-login .showlogin").off("click").on("click",function(t){t.preventDefault(),e(this).closest(".tinv-login").find(".login").toggle()}),e(".tinv-wishlist table.tinvwl-table-manage-list tfoot td").each(function(){e(this).toggle(!!e(this).children().not(".look_in").length||!!e(this).children(".look_in").children().length)})})}(jQuery),function(e){e.fn.tinvwl_break_submit=function(t){var n=e.extend(!0,{},{selector:"input, select, textarea",ifempty:!0,invert:!1,validate:function(){return e(this).val()},rule:function(){var t=e(this).parents("form").eq(0).find(n.selector),i=n.invert;return 0===t.length?n.ifempty:(t.each(function(){i&&!n.invert||!i&&n.invert||(i=Boolean(n.validate.call(e(this))))}),i)}},t);return e(this).each(function(){e(this).on("click",function(t){var i=[];void 0!==e(this).attr("tinvwl_break_submit")&&(i=e(this).attr("tinvwl_break_submit").split(",")),-1!==jQuery.inArray(n.selector,i)&&(i=[]),n.rule.call(e(this))||0!==i.length||(alert(window.tinvwl_add_to_wishlist.tinvwl_break_submit),t.preventDefault()),i.push(n.selector),e(this).attr("tinvwl_break_submit",i),n.rule.call(e(this))&&e(this).removeAttr("tinvwl_break_submit")})})},e(document).ready(function(){e("body").on("click",".global-cb",function(){e(this).closest("table").eq(0).find(".product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]").prop("checked",e(this).is(":checked"))})})}(jQuery);
|
integrations/woo-variation-swatches-pro.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @name WooCommerce Variation Swatches - Pro
|
6 |
*
|
7 |
-
* @version
|
8 |
*
|
9 |
* @slug woo-variation-swatches-pro
|
10 |
*
|
@@ -13,7 +13,7 @@
|
|
13 |
*/
|
14 |
|
15 |
// If this file is called directly, abort.
|
16 |
-
if (!defined('ABSPATH')) {
|
17 |
exit;
|
18 |
}
|
19 |
|
@@ -24,43 +24,27 @@ $slug = "woo-variation-swatches-pro";
|
|
24 |
|
25 |
$name = "WooCommerce Variation Swatches - Pro";
|
26 |
|
27 |
-
$available = class_exists('Woo_Variation_Swatches_Pro');
|
28 |
|
29 |
$tinvwl_integrations = is_array( $tinvwl_integrations ) ? $tinvwl_integrations : [];
|
30 |
|
31 |
-
$tinvwl_integrations[$slug] = array(
|
32 |
-
'name'
|
33 |
'available' => $available,
|
34 |
);
|
35 |
|
36 |
-
if (!tinv_get_option('integrations', $slug)) {
|
37 |
return;
|
38 |
}
|
39 |
|
40 |
-
if (
|
41 |
return;
|
42 |
}
|
43 |
|
44 |
-
if (class_exists('Woo_Variation_Swatches_Pro')) {
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
function tinvwl_remove_custom_url_woo_variation_swatches_pro()
|
49 |
-
{
|
50 |
-
remove_filter('woocommerce_product_add_to_cart_url', 'wvs_simple_product_cart_url', 10, 2);
|
51 |
-
}
|
52 |
-
|
53 |
-
add_action('after_get_redirect_url', 'tinvwl_add_custom_url_woo_variation_swatches_pro');
|
54 |
-
|
55 |
-
function tinvwl_add_custom_url_woo_variation_swatches_pro()
|
56 |
-
{
|
57 |
-
add_filter('woocommerce_product_add_to_cart_url', 'wvs_simple_product_cart_url', 10, 2);
|
58 |
-
}
|
59 |
-
|
60 |
-
function tinv_add_to_wishlist_woo_variation_swatches_pro()
|
61 |
-
{
|
62 |
-
|
63 |
-
wp_add_inline_script('tinvwl', "
|
64 |
jQuery(document).ready(function($){
|
65 |
$(document).on('tinvwl_wishlist_button_clicked', function (e, el, data) {
|
66 |
var button = $(el);
|
@@ -72,13 +56,22 @@ if (class_exists('Woo_Variation_Swatches_Pro')) {
|
|
72 |
var container = wrapper.closest('*.product');
|
73 |
|
74 |
if (container.find('a.add_to_cart_button').length > 0){
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
}
|
78 |
});
|
79 |
});
|
80 |
-
");
|
81 |
}
|
82 |
|
83 |
-
add_action('wp_enqueue_scripts', 'tinv_add_to_wishlist_woo_variation_swatches_pro', 100, 1);
|
84 |
}
|
4 |
*
|
5 |
* @name WooCommerce Variation Swatches - Pro
|
6 |
*
|
7 |
+
* @version 2.0.9
|
8 |
*
|
9 |
* @slug woo-variation-swatches-pro
|
10 |
*
|
13 |
*/
|
14 |
|
15 |
// If this file is called directly, abort.
|
16 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
17 |
exit;
|
18 |
}
|
19 |
|
24 |
|
25 |
$name = "WooCommerce Variation Swatches - Pro";
|
26 |
|
27 |
+
$available = class_exists( 'Woo_Variation_Swatches_Pro' );
|
28 |
|
29 |
$tinvwl_integrations = is_array( $tinvwl_integrations ) ? $tinvwl_integrations : [];
|
30 |
|
31 |
+
$tinvwl_integrations[ $slug ] = array(
|
32 |
+
'name' => $name,
|
33 |
'available' => $available,
|
34 |
);
|
35 |
|
36 |
+
if ( ! tinv_get_option( 'integrations', $slug ) ) {
|
37 |
return;
|
38 |
}
|
39 |
|
40 |
+
if ( ! $available ) {
|
41 |
return;
|
42 |
}
|
43 |
|
44 |
+
if ( class_exists( 'Woo_Variation_Swatches_Pro' ) ) {
|
45 |
|
46 |
+
function tinv_add_to_wishlist_woo_variation_swatches_pro() {
|
47 |
+
wp_add_inline_script( 'tinvwl', "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
jQuery(document).ready(function($){
|
49 |
$(document).on('tinvwl_wishlist_button_clicked', function (e, el, data) {
|
50 |
var button = $(el);
|
56 |
var container = wrapper.closest('*.product');
|
57 |
|
58 |
if (container.find('a.add_to_cart_button').length > 0){
|
59 |
+
var hash, url, hashes;
|
60 |
+
url = container.find('a.add_to_cart_button').attr('href')
|
61 |
+
hashes = url.slice(url.indexOf('?') + 1).split('&');
|
62 |
+
for(var i = 0; i < hashes.length; i++)
|
63 |
+
{
|
64 |
+
hash = hashes[i].split('=');
|
65 |
+
if ('variation_id' === hash[0]){
|
66 |
+
data.form.variation_id = hash[1];
|
67 |
+
}
|
68 |
+
}
|
69 |
}
|
70 |
}
|
71 |
});
|
72 |
});
|
73 |
+
" );
|
74 |
}
|
75 |
|
76 |
+
add_action( 'wp_enqueue_scripts', 'tinv_add_to_wishlist_woo_variation_swatches_pro', 100, 1 );
|
77 |
}
|
languages/ti-woocommerce-wishlist.pot
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
# Copyright (C) 2022 TI WooCommerce Wishlist Plugin - 2.0.
|
2 |
-
# This file is distributed under the same license as the TI WooCommerce Wishlist Plugin - 2.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: TI WooCommerce Wishlist Plugin - 2.0.
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -11,7 +11,7 @@ msgstr ""
|
|
11 |
"Language-Team: TemplateInvaders (https://templateinvaders.com/)\n"
|
12 |
"Last-Translator: TemplateInvaders (https://templateinvaders.com/)\n"
|
13 |
"MIME-Version: 1.0\n"
|
14 |
-
"Project-Id-Version: TI WooCommerce Wishlist Plugin - 2.0.
|
15 |
"Report-Msgid-Bugs-To: https://templateinvaders.com/help/\n"
|
16 |
"X-Poedit-Basepath: ..\n"
|
17 |
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
@@ -36,15 +36,15 @@ msgstr ""
|
|
36 |
msgid "Template Custom CSS"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: admin/basestyle.helper.php:115, admin/settings/general.class.php:
|
40 |
msgid "Save Settings"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: admin/basestyle.helper.php:121, admin/settings/general.class.php:
|
44 |
msgid "Reset"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: admin/basestyle.helper.php:127, admin/settings/general.class.php:
|
48 |
msgid "Save"
|
49 |
msgstr ""
|
50 |
|
@@ -52,7 +52,7 @@ msgstr ""
|
|
52 |
msgid "General Settings"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: admin/settings/general.class.php:82, admin/settings/general.class.php:
|
56 |
msgid "None"
|
57 |
msgstr ""
|
58 |
|
@@ -100,455 +100,455 @@ msgstr ""
|
|
100 |
msgid "Show Link to Wishlist in my account"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: admin/settings/general.class.php:
|
104 |
msgid "Remove Product from Wishlist if added to cart"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: admin/settings/general.class.php:
|
108 |
msgid "Remove by anyone"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: admin/settings/general.class.php:
|
112 |
msgid "Redirect to the checkout page from Wishlist if added to cart"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: admin/settings/general.class.php:
|
116 |
msgid "Remove product from Wishlist on the second click"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: admin/settings/general.class.php:
|
120 |
msgid "Show stats for each product"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: admin/settings/general.class.php:
|
124 |
msgid "Show number of times each product added to wishlists across the site."
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: admin/settings/general.class.php:
|
128 |
msgid "Show successful notice in popup"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: admin/settings/general.class.php:
|
132 |
msgid "This option allows to show/hide a popup with successful or error notices after adding or removing products from a Wishlist."
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: admin/settings/general.class.php:
|
136 |
msgid "\"View Wishlist\" button Text"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: admin/settings/general.class.php:
|
140 |
msgid "Redirect to Wishlist"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: admin/settings/general.class.php:
|
144 |
msgid "If enabled, the user will be redirected to wishlist page after 5 sec from adding product to wishlist."
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: admin/settings/general.class.php:
|
148 |
msgid "\"Product added to Wishlist\" Text"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: admin/settings/general.class.php:
|
152 |
msgid "You can use next placeholder in this field to get current product name: <code>{product_name}</code>, <code>{product_sku}</code>"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: admin/settings/general.class.php:
|
156 |
msgid "\"Product already in Wishlist\" Text"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: admin/settings/general.class.php:
|
160 |
msgid "This notification will be shown if a user will try to add a product that is already on the wishlist. "
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: admin/settings/general.class.php:
|
164 |
msgid "\"Product removed from Wishlist\" Text"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: admin/settings/general.class.php:
|
168 |
msgid "This notification will be shown once the product is removed from Wishlist on a single or catalog page."
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: admin/settings/general.class.php:
|
172 |
msgid "Permalinks Settings"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: admin/settings/general.class.php:
|
176 |
msgid "Force permalinks rewrite"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: admin/settings/general.class.php:
|
180 |
msgid "This option should be enabled to avoid any issues with URL rewrites between other plugins and Wishlist"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: admin/settings/general.class.php:
|
184 |
msgid "Rename wishlist Settings"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: admin/settings/general.class.php:
|
188 |
msgid "Rename wishlist word across the plugin"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: admin/settings/general.class.php:
|
192 |
msgid "These options allow changing word <code>wishlist</code> across all plugin instance"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: admin/settings/general.class.php:
|
196 |
msgid "Single form"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: admin/settings/general.class.php:
|
200 |
msgid "This option allows you to change a single form of the word. You need to write a new word in lowercase and the proper case will be applied automatically for all instances."
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: admin/settings/general.class.php:
|
204 |
msgid "Plural form"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: admin/settings/general.class.php:
|
208 |
msgid "This option allows you to change a plural form of the word. Left it empty if you need to add just \"s\" suffix to the single form word that you set above."
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: admin/settings/general.class.php:
|
212 |
msgid "Wishlist Page Options"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: admin/settings/general.class.php:
|
216 |
msgid "Coming soon"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: admin/settings/general.class.php:
|
220 |
msgid "My Wishlist"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: admin/settings/general.class.php:
|
224 |
msgid "Wishlist Processing Options"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: admin/settings/general.class.php:
|
228 |
msgid "Automatic removal"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: admin/settings/general.class.php:
|
232 |
msgid "Remove condition"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: admin/settings/general.class.php:
|
236 |
msgid "Add to Cart"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: admin/settings/general.class.php:
|
240 |
msgid "Product page \"Add to Wishlist\" Button Settings"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: admin/settings/general.class.php:
|
244 |
msgid "Button position"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: admin/settings/general.class.php:
|
248 |
msgid "Add this shortcode <code>[ti_wishlists_addtowishlist]</code> anywhere on product page, if you have chosen custom position for product button. You will have to do this for each product."
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: admin/settings/general.class.php:
|
252 |
msgid "After \"Add to Cart\" button"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: admin/settings/general.class.php:
|
256 |
msgid "Before \"Add to Cart\" button"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: admin/settings/general.class.php:
|
260 |
msgid "After Thumbnails"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: admin/settings/general.class.php:
|
264 |
msgid "After summary"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: admin/settings/general.class.php:
|
268 |
msgid "Custom position with code"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: admin/settings/general.class.php:
|
272 |
msgid "Button custom CSS class"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: admin/settings/general.class.php:
|
276 |
msgid "You can add custom CSS classes to button markup separated by spaces. Most of themes using <code>button</code> class for this type of buttons."
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: admin/settings/general.class.php:
|
280 |
msgid "\"Add to Wishlist\" Icon"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: admin/settings/general.class.php:
|
284 |
msgid "You can choose from our predefined icons or upload your custom icon. Custom icon size is limited to 16x16 px."
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: admin/settings/general.class.php:
|
288 |
msgid "Heart"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: admin/settings/general.class.php:
|
292 |
msgid "Heart+"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: admin/settings/general.class.php:
|
296 |
msgid "Custom"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: admin/settings/general.class.php:
|
300 |
msgid "Default state"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: admin/settings/general.class.php:
|
304 |
msgid "Upload"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: admin/settings/general.class.php:
|
308 |
msgid "Already added state"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: admin/settings/general.class.php:
|
312 |
msgid "\"Add to Wishlist\" Icon Color"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: admin/settings/general.class.php:
|
316 |
msgid "Use font color"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: admin/settings/general.class.php:
|
320 |
msgid "Black"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: admin/settings/general.class.php:
|
324 |
msgid "White"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: admin/settings/general.class.php:
|
328 |
msgid "Show preloader"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: admin/settings/general.class.php:
|
332 |
msgid "If enabled, applies animation for the button icon until product adding or removing processed. (Usable for servers with slow connection mostly.)"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: admin/settings/general.class.php:
|
336 |
msgid "Show button text"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: admin/settings/general.class.php:
|
340 |
msgid "\"Add to Wishlist\" button Text"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: admin/settings/general.class.php:
|
344 |
msgid "Show \"Already In Wishlist\" button Text"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: admin/settings/general.class.php:
|
348 |
msgid "\"Already In Wishlist\" button Text"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: admin/settings/general.class.php:
|
352 |
msgid "\"Remove from Wishlist\" Button Text"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: admin/settings/general.class.php:
|
356 |
msgid "Product listing Button Settings"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: admin/settings/general.class.php:
|
360 |
msgid "These are separate settings for the \"Add to Wishlist\" button on a product listing (Shop page, categories, etc.). You can also adjust button and text colors, size, etc. in a <code>TI Wishlist > Style Options.</code>"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: admin/settings/general.class.php:
|
364 |
msgid "Show in Product Listing"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: admin/settings/general.class.php:
|
368 |
msgid "Above Thumbnail"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: admin/settings/general.class.php:
|
372 |
msgid "Note: if \"Custom position with code\" option is applied, the \"Add to Wishlist\" button should be added into template using <code>do_shortcode()</code> function like this:<br /><code>do_shortcode(\"[ti_wishlists_addtowishlist loop=yes]\")</code>"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/settings/general.class.php:
|
376 |
msgid "\"Add to Wishlist\" Text"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: admin/settings/general.class.php:
|
380 |
msgid "Wishlist Product Settings"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: admin/settings/general.class.php:
|
384 |
msgid "Following options allows you to choose what information/functionality to show/enable in wishlist table on the wishlist page."
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: admin/settings/general.class.php:
|
388 |
msgid "Show \"Add to Cart\" button"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: admin/settings/general.class.php:
|
392 |
msgid "\"Add to Cart\" Text"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: admin/settings/general.class.php:
|
396 |
msgid "Show Unit price"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: admin/settings/general.class.php:
|
400 |
msgid "Show Stock status"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: admin/settings/general.class.php:
|
404 |
msgid "Show Date of addition"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: admin/settings/general.class.php:
|
408 |
msgid "Wishlist Table Settings"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: admin/settings/general.class.php:
|
412 |
msgid "Following options will help user to manage and add products to cart from wishlist table in bulk."
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: admin/settings/general.class.php:
|
416 |
msgid "Show Checkboxes"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: admin/settings/general.class.php:
|
420 |
msgid "Show Actions button"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: admin/settings/general.class.php:
|
424 |
msgid "Bulk actions drop-down at the bottom of wishlist table"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: admin/settings/general.class.php:
|
428 |
msgid "Show \"Add Selected to Cart\" button"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: admin/settings/general.class.php:
|
432 |
msgid "\"Add Selected to Cart\" Button Text"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: admin/settings/general.class.php:
|
436 |
msgid "Show \"Add All to Cart\" button"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: admin/settings/general.class.php:
|
440 |
msgid "\"Add All to Cart\" Button Text"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: admin/settings/general.class.php:
|
444 |
msgid "Following options enable/disable Social share icons below wishlist table on the wishlist page. Wishlist owner can easily share their wishlists using this button on social networks. Wishlist privacy should be set to public or shared status, private wishlists can't be shared."
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: admin/settings/general.class.php:
|
448 |
msgid "Social Networks Sharing Options"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: admin/settings/general.class.php:
|
452 |
msgid "Show \"Facebook\" Button"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: admin/settings/general.class.php:
|
456 |
msgid "Show \"Twitter\" Button"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: admin/settings/general.class.php:
|
460 |
msgid "Show \"Pinterest\" Button"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: admin/settings/general.class.php:
|
464 |
msgid "Show \"WhatsApp\" Button"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: admin/settings/general.class.php:
|
468 |
msgid "Show \"Copy to clipboard\" Button"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: admin/settings/general.class.php:
|
472 |
msgid "Show \"Share by Email\" Button"
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: admin/settings/general.class.php:
|
476 |
msgid "\"Share on\" Text"
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: admin/settings/general.class.php:
|
480 |
msgid "Social Icons Color"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: admin/settings/general.class.php:
|
484 |
msgid "Dark"
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: admin/settings/general.class.php:
|
488 |
msgid "Wishlist Product Counter"
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: admin/settings/general.class.php:
|
492 |
msgid "Add this shortcode <code>[ti_wishlist_products_counter]</code> anywhere into a page content to show Wishlist Counter.<br/><br/>It can be also added as a widget <code>Wishlist Products Counter</code> under the <a href=\"%s\">Appearance -> Widgets</a> section."
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: admin/settings/general.class.php:
|
496 |
msgid "\"Wishlist\" Counter Icon"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: admin/settings/general.class.php:
|
500 |
msgid "\"Wishlist\" Counter Icon Color"
|
501 |
msgstr ""
|
502 |
|
503 |
-
#: admin/settings/general.class.php:
|
504 |
msgid "Show \"Wishlist\" Counter Text"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: admin/settings/general.class.php:
|
508 |
msgid "\"Wishlist\" Counter Text"
|
509 |
msgstr ""
|
510 |
|
511 |
-
#: admin/settings/general.class.php:
|
512 |
msgid "Wishlist - "
|
513 |
msgstr ""
|
514 |
|
515 |
-
#: admin/settings/general.class.php:
|
516 |
msgid "Add counter to menu"
|
517 |
msgstr ""
|
518 |
|
519 |
-
#: admin/settings/general.class.php:
|
520 |
msgid "You can add a wishlist products counter as an item to the selected menu."
|
521 |
msgstr ""
|
522 |
|
523 |
-
#: admin/settings/general.class.php:
|
524 |
msgid "Counter position (Menu item order)"
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: admin/settings/general.class.php:
|
528 |
msgid "Allows you to add the wishlist counter as a menu item and set its position."
|
529 |
msgstr ""
|
530 |
|
531 |
-
#: admin/settings/general.class.php:
|
532 |
msgid "Show number of products in counter"
|
533 |
msgstr ""
|
534 |
|
535 |
-
#: admin/settings/general.class.php:
|
536 |
msgid "Hide zero value"
|
537 |
msgstr ""
|
538 |
|
539 |
-
#: admin/settings/general.class.php:
|
540 |
msgid "Do not show the \"0\" value in a counter if the wishlist is empty."
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: admin/settings/general.class.php:
|
544 |
msgid "Support Chat Settings"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: admin/settings/general.class.php:
|
548 |
msgid "Enable the support chat to get the most from our service and get answers to your questions promptly. We optimized the support process to get the required details from your current setup to solve your issues faster. Dedicated to your Care."
|
549 |
msgstr ""
|
550 |
|
551 |
-
#: admin/settings/general.class.php:
|
552 |
msgid "Enable support chat"
|
553 |
msgstr ""
|
554 |
|
@@ -1016,7 +1016,7 @@ msgstr ""
|
|
1016 |
msgid "Page Setup"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
-
#: includes/wizard.class.php:317, includes/wizard.class.php:349, integrations/theme-flatsome.php:124, integrations/theme-flatsome.php:167, integrations/theme-flatsome.php:245, integrations/theme-flatsome.php:284, public/tinvwl.class.php:
|
1020 |
msgid "Wishlist"
|
1021 |
msgstr ""
|
1022 |
|
@@ -1244,7 +1244,7 @@ msgstr ""
|
|
1244 |
msgid "Login"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
-
#: public/addtowishlist.class.php:213, public/wishlist/ajax.class.php:109, public/wishlist/ajax.class.php:120, public/wishlist/ajax.class.php:127, public/wishlist/ajax.class.php:161, public/wishlist/ajax.class.php:168
|
1248 |
msgid "Something went wrong"
|
1249 |
msgstr ""
|
1250 |
|
@@ -1284,10 +1284,6 @@ msgstr ""
|
|
1284 |
msgid "Counter Text"
|
1285 |
msgstr ""
|
1286 |
|
1287 |
-
#: public/wishlist/ajax.class.php:86
|
1288 |
-
msgid "Something went wrong1"
|
1289 |
-
msgstr ""
|
1290 |
-
|
1291 |
#: public/wishlist/ajax.class.php:131, public/wishlist/ajax.class.php:172, public/wishlist/ajax.class.php:248
|
1292 |
msgid "“%s”"
|
1293 |
msgstr ""
|
1 |
+
# Copyright (C) 2022 TI WooCommerce Wishlist Plugin - 2.0.2
|
2 |
+
# This file is distributed under the same license as the TI WooCommerce Wishlist Plugin - 2.0.2 package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: TI WooCommerce Wishlist Plugin - 2.0.2\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
"Language-Team: TemplateInvaders (https://templateinvaders.com/)\n"
|
12 |
"Last-Translator: TemplateInvaders (https://templateinvaders.com/)\n"
|
13 |
"MIME-Version: 1.0\n"
|
14 |
+
"Project-Id-Version: TI WooCommerce Wishlist Plugin - 2.0.2\n"
|
15 |
"Report-Msgid-Bugs-To: https://templateinvaders.com/help/\n"
|
16 |
"X-Poedit-Basepath: ..\n"
|
17 |
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
36 |
msgid "Template Custom CSS"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: admin/basestyle.helper.php:115, admin/settings/general.class.php:965, admin/settings/integrations.class.php:115
|
40 |
msgid "Save Settings"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: admin/basestyle.helper.php:121, admin/settings/general.class.php:971
|
44 |
msgid "Reset"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: admin/basestyle.helper.php:127, admin/settings/general.class.php:977, admin/settings/integrations.class.php:121
|
48 |
msgid "Save"
|
49 |
msgstr ""
|
50 |
|
52 |
msgid "General Settings"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: admin/settings/general.class.php:82, admin/settings/general.class.php:402, admin/settings/general.class.php:556, admin/settings/general.class.php:842
|
56 |
msgid "None"
|
57 |
msgstr ""
|
58 |
|
100 |
msgid "Show Link to Wishlist in my account"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: admin/settings/general.class.php:171
|
104 |
msgid "Remove Product from Wishlist if added to cart"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: admin/settings/general.class.php:178, admin/settings/general.class.php:360
|
108 |
msgid "Remove by anyone"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: admin/settings/general.class.php:185, admin/settings/general.class.php:353
|
112 |
msgid "Redirect to the checkout page from Wishlist if added to cart"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: admin/settings/general.class.php:191
|
116 |
msgid "Remove product from Wishlist on the second click"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: admin/settings/general.class.php:201
|
120 |
msgid "Show stats for each product"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: admin/settings/general.class.php:202
|
124 |
msgid "Show number of times each product added to wishlists across the site."
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: admin/settings/general.class.php:213
|
128 |
msgid "Show successful notice in popup"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: admin/settings/general.class.php:214
|
132 |
msgid "This option allows to show/hide a popup with successful or error notices after adding or removing products from a Wishlist."
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: admin/settings/general.class.php:224
|
136 |
msgid "\"View Wishlist\" button Text"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: admin/settings/general.class.php:231
|
140 |
msgid "Redirect to Wishlist"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: admin/settings/general.class.php:232
|
144 |
msgid "If enabled, the user will be redirected to wishlist page after 5 sec from adding product to wishlist."
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: admin/settings/general.class.php:239
|
148 |
msgid "\"Product added to Wishlist\" Text"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: admin/settings/general.class.php:241, admin/settings/general.class.php:248
|
152 |
msgid "You can use next placeholder in this field to get current product name: <code>{product_name}</code>, <code>{product_sku}</code>"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: admin/settings/general.class.php:247
|
156 |
msgid "\"Product already in Wishlist\" Text"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: admin/settings/general.class.php:248
|
160 |
msgid "This notification will be shown if a user will try to add a product that is already on the wishlist. "
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: admin/settings/general.class.php:255
|
164 |
msgid "\"Product removed from Wishlist\" Text"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: admin/settings/general.class.php:256
|
168 |
msgid "This notification will be shown once the product is removed from Wishlist on a single or catalog page."
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: admin/settings/general.class.php:264
|
172 |
msgid "Permalinks Settings"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: admin/settings/general.class.php:270
|
176 |
msgid "Force permalinks rewrite"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: admin/settings/general.class.php:271
|
180 |
msgid "This option should be enabled to avoid any issues with URL rewrites between other plugins and Wishlist"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: admin/settings/general.class.php:279
|
184 |
msgid "Rename wishlist Settings"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: admin/settings/general.class.php:285
|
188 |
msgid "Rename wishlist word across the plugin"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: admin/settings/general.class.php:286
|
192 |
msgid "These options allow changing word <code>wishlist</code> across all plugin instance"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: admin/settings/general.class.php:293
|
196 |
msgid "Single form"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: admin/settings/general.class.php:294
|
200 |
msgid "This option allows you to change a single form of the word. You need to write a new word in lowercase and the proper case will be applied automatically for all instances."
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: admin/settings/general.class.php:301
|
204 |
msgid "Plural form"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: admin/settings/general.class.php:302
|
208 |
msgid "This option allows you to change a plural form of the word. Left it empty if you need to add just \"s\" suffix to the single form word that you set above."
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: admin/settings/general.class.php:311
|
212 |
msgid "Wishlist Page Options"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: admin/settings/general.class.php:312, admin/settings/general.class.php:329
|
216 |
msgid "Coming soon"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: admin/settings/general.class.php:319
|
220 |
msgid "My Wishlist"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: admin/settings/general.class.php:328
|
224 |
msgid "Wishlist Processing Options"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: admin/settings/general.class.php:336
|
228 |
msgid "Automatic removal"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: admin/settings/general.class.php:343
|
232 |
msgid "Remove condition"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: admin/settings/general.class.php:346
|
236 |
msgid "Add to Cart"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: admin/settings/general.class.php:368
|
240 |
msgid "Product page \"Add to Wishlist\" Button Settings"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: admin/settings/general.class.php:374, admin/settings/general.class.php:530, views/wizard/step-button.php:33
|
244 |
msgid "Button position"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: admin/settings/general.class.php:375
|
248 |
msgid "Add this shortcode <code>[ti_wishlists_addtowishlist]</code> anywhere on product page, if you have chosen custom position for product button. You will have to do this for each product."
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: admin/settings/general.class.php:378, admin/settings/general.class.php:533, includes/wizard.class.php:440
|
252 |
msgid "After \"Add to Cart\" button"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: admin/settings/general.class.php:379, admin/settings/general.class.php:534, includes/wizard.class.php:441
|
256 |
msgid "Before \"Add to Cart\" button"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: admin/settings/general.class.php:380
|
260 |
msgid "After Thumbnails"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: admin/settings/general.class.php:381
|
264 |
msgid "After summary"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: admin/settings/general.class.php:382, admin/settings/general.class.php:536, includes/wizard.class.php:442
|
268 |
msgid "Custom position with code"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: admin/settings/general.class.php:388, admin/settings/general.class.php:543
|
272 |
msgid "Button custom CSS class"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: admin/settings/general.class.php:389, admin/settings/general.class.php:544
|
276 |
msgid "You can add custom CSS classes to button markup separated by spaces. Most of themes using <code>button</code> class for this type of buttons."
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: admin/settings/general.class.php:398, admin/settings/general.class.php:553
|
280 |
msgid "\"Add to Wishlist\" Icon"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: admin/settings/general.class.php:399, admin/settings/general.class.php:847
|
284 |
msgid "You can choose from our predefined icons or upload your custom icon. Custom icon size is limited to 16x16 px."
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: admin/settings/general.class.php:403, admin/settings/general.class.php:557, admin/settings/general.class.php:843
|
288 |
msgid "Heart"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: admin/settings/general.class.php:404, admin/settings/general.class.php:558, admin/settings/general.class.php:844
|
292 |
msgid "Heart+"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: admin/settings/general.class.php:405, admin/settings/general.class.php:559, admin/settings/general.class.php:845
|
296 |
msgid "Custom"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: admin/settings/general.class.php:418, admin/settings/general.class.php:571
|
300 |
msgid "Default state"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: admin/settings/general.class.php:422, admin/settings/general.class.php:435, admin/settings/general.class.php:575, admin/settings/general.class.php:588, admin/settings/general.class.php:862
|
304 |
msgid "Upload"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: admin/settings/general.class.php:431, admin/settings/general.class.php:584
|
308 |
msgid "Already added state"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: admin/settings/general.class.php:444, admin/settings/general.class.php:597
|
312 |
msgid "\"Add to Wishlist\" Icon Color"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: admin/settings/general.class.php:446, admin/settings/general.class.php:599, admin/settings/general.class.php:822, admin/settings/general.class.php:873
|
316 |
msgid "Use font color"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: admin/settings/general.class.php:447, admin/settings/general.class.php:600, admin/settings/general.class.php:874
|
320 |
msgid "Black"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: admin/settings/general.class.php:448, admin/settings/general.class.php:601, admin/settings/general.class.php:824, admin/settings/general.class.php:875
|
324 |
msgid "White"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: admin/settings/general.class.php:455, admin/settings/general.class.php:608
|
328 |
msgid "Show preloader"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: admin/settings/general.class.php:456, admin/settings/general.class.php:609
|
332 |
msgid "If enabled, applies animation for the button icon until product adding or removing processed. (Usable for servers with slow connection mostly.)"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: admin/settings/general.class.php:462, admin/settings/general.class.php:615
|
336 |
msgid "Show button text"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: admin/settings/general.class.php:477
|
340 |
msgid "\"Add to Wishlist\" button Text"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: admin/settings/general.class.php:483, admin/settings/general.class.php:636
|
344 |
msgid "Show \"Already In Wishlist\" button Text"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: admin/settings/general.class.php:493, admin/settings/general.class.php:646
|
348 |
msgid "\"Already In Wishlist\" button Text"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: admin/settings/general.class.php:500, admin/settings/general.class.php:653
|
352 |
msgid "\"Remove from Wishlist\" Button Text"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: admin/settings/general.class.php:508
|
356 |
msgid "Product listing Button Settings"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: admin/settings/general.class.php:509
|
360 |
msgid "These are separate settings for the \"Add to Wishlist\" button on a product listing (Shop page, categories, etc.). You can also adjust button and text colors, size, etc. in a <code>TI Wishlist > Style Options.</code>"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: admin/settings/general.class.php:515
|
364 |
msgid "Show in Product Listing"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: admin/settings/general.class.php:535
|
368 |
msgid "Above Thumbnail"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: admin/settings/general.class.php:538
|
372 |
msgid "Note: if \"Custom position with code\" option is applied, the \"Add to Wishlist\" button should be added into template using <code>do_shortcode()</code> function like this:<br /><code>do_shortcode(\"[ti_wishlists_addtowishlist loop=yes]\")</code>"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: admin/settings/general.class.php:630, views/wizard/step-button.php:42
|
376 |
msgid "\"Add to Wishlist\" Text"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: admin/settings/general.class.php:661
|
380 |
msgid "Wishlist Product Settings"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: admin/settings/general.class.php:662
|
384 |
msgid "Following options allows you to choose what information/functionality to show/enable in wishlist table on the wishlist page."
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: admin/settings/general.class.php:668
|
388 |
msgid "Show \"Add to Cart\" button"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: admin/settings/general.class.php:675
|
392 |
msgid "\"Add to Cart\" Text"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: admin/settings/general.class.php:682
|
396 |
msgid "Show Unit price"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: admin/settings/general.class.php:688
|
400 |
msgid "Show Stock status"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: admin/settings/general.class.php:694
|
404 |
msgid "Show Date of addition"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: admin/settings/general.class.php:701
|
408 |
msgid "Wishlist Table Settings"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: admin/settings/general.class.php:702
|
412 |
msgid "Following options will help user to manage and add products to cart from wishlist table in bulk."
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: admin/settings/general.class.php:708
|
416 |
msgid "Show Checkboxes"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: admin/settings/general.class.php:720
|
420 |
msgid "Show Actions button"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: admin/settings/general.class.php:721
|
424 |
msgid "Bulk actions drop-down at the bottom of wishlist table"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: admin/settings/general.class.php:727
|
428 |
msgid "Show \"Add Selected to Cart\" button"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: admin/settings/general.class.php:734
|
432 |
msgid "\"Add Selected to Cart\" Button Text"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: admin/settings/general.class.php:745
|
436 |
msgid "Show \"Add All to Cart\" button"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: admin/settings/general.class.php:752
|
440 |
msgid "\"Add All to Cart\" Button Text"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: admin/settings/general.class.php:765
|
444 |
msgid "Following options enable/disable Social share icons below wishlist table on the wishlist page. Wishlist owner can easily share their wishlists using this button on social networks. Wishlist privacy should be set to public or shared status, private wishlists can't be shared."
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: admin/settings/general.class.php:771
|
448 |
msgid "Social Networks Sharing Options"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: admin/settings/general.class.php:777, views/wizard/step-social.php:26
|
452 |
msgid "Show \"Facebook\" Button"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: admin/settings/general.class.php:783, views/wizard/step-social.php:35
|
456 |
msgid "Show \"Twitter\" Button"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: admin/settings/general.class.php:789, views/wizard/step-social.php:44
|
460 |
msgid "Show \"Pinterest\" Button"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: admin/settings/general.class.php:795, views/wizard/step-social.php:53
|
464 |
msgid "Show \"WhatsApp\" Button"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: admin/settings/general.class.php:801
|
468 |
msgid "Show \"Copy to clipboard\" Button"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: admin/settings/general.class.php:807, views/wizard/step-social.php:71
|
472 |
msgid "Show \"Share by Email\" Button"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: admin/settings/general.class.php:813
|
476 |
msgid "\"Share on\" Text"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: admin/settings/general.class.php:819
|
480 |
msgid "Social Icons Color"
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: admin/settings/general.class.php:823
|
484 |
msgid "Dark"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: admin/settings/general.class.php:832
|
488 |
msgid "Wishlist Product Counter"
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: admin/settings/general.class.php:833
|
492 |
msgid "Add this shortcode <code>[ti_wishlist_products_counter]</code> anywhere into a page content to show Wishlist Counter.<br/><br/>It can be also added as a widget <code>Wishlist Products Counter</code> under the <a href=\"%s\">Appearance -> Widgets</a> section."
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: admin/settings/general.class.php:839
|
496 |
msgid "\"Wishlist\" Counter Icon"
|
497 |
msgstr ""
|
498 |
|
499 |
+
#: admin/settings/general.class.php:871
|
500 |
msgid "\"Wishlist\" Counter Icon Color"
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: admin/settings/general.class.php:882
|
504 |
msgid "Show \"Wishlist\" Counter Text"
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: admin/settings/general.class.php:891
|
508 |
msgid "\"Wishlist\" Counter Text"
|
509 |
msgstr ""
|
510 |
|
511 |
+
#: admin/settings/general.class.php:892
|
512 |
msgid "Wishlist - "
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: admin/settings/general.class.php:898
|
516 |
msgid "Add counter to menu"
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: admin/settings/general.class.php:900
|
520 |
msgid "You can add a wishlist products counter as an item to the selected menu."
|
521 |
msgstr ""
|
522 |
|
523 |
+
#: admin/settings/general.class.php:909
|
524 |
msgid "Counter position (Menu item order)"
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: admin/settings/general.class.php:910
|
528 |
msgid "Allows you to add the wishlist counter as a menu item and set its position."
|
529 |
msgstr ""
|
530 |
|
531 |
+
#: admin/settings/general.class.php:921
|
532 |
msgid "Show number of products in counter"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: admin/settings/general.class.php:930
|
536 |
msgid "Hide zero value"
|
537 |
msgstr ""
|
538 |
|
539 |
+
#: admin/settings/general.class.php:931
|
540 |
msgid "Do not show the \"0\" value in a counter if the wishlist is empty."
|
541 |
msgstr ""
|
542 |
|
543 |
+
#: admin/settings/general.class.php:942
|
544 |
msgid "Support Chat Settings"
|
545 |
msgstr ""
|
546 |
|
547 |
+
#: admin/settings/general.class.php:943, views/wizard/step-support.php:22
|
548 |
msgid "Enable the support chat to get the most from our service and get answers to your questions promptly. We optimized the support process to get the required details from your current setup to solve your issues faster. Dedicated to your Care."
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: admin/settings/general.class.php:949, views/wizard/step-support.php:26
|
552 |
msgid "Enable support chat"
|
553 |
msgstr ""
|
554 |
|
1016 |
msgid "Page Setup"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
+
#: includes/wizard.class.php:317, includes/wizard.class.php:349, integrations/theme-flatsome.php:124, integrations/theme-flatsome.php:167, integrations/theme-flatsome.php:245, integrations/theme-flatsome.php:284, public/tinvwl.class.php:698, views/header.php:25
|
1020 |
msgid "Wishlist"
|
1021 |
msgstr ""
|
1022 |
|
1244 |
msgid "Login"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
+
#: public/addtowishlist.class.php:213, public/wishlist/ajax.class.php:86, public/wishlist/ajax.class.php:109, public/wishlist/ajax.class.php:120, public/wishlist/ajax.class.php:127, public/wishlist/ajax.class.php:161, public/wishlist/ajax.class.php:168
|
1248 |
msgid "Something went wrong"
|
1249 |
msgstr ""
|
1250 |
|
1284 |
msgid "Counter Text"
|
1285 |
msgstr ""
|
1286 |
|
|
|
|
|
|
|
|
|
1287 |
#: public/wishlist/ajax.class.php:131, public/wishlist/ajax.class.php:172, public/wishlist/ajax.class.php:248
|
1288 |
msgid "“%s”"
|
1289 |
msgstr ""
|
public/tinvwl.class.php
CHANGED
@@ -134,12 +134,12 @@ class TInvWL_Public_TInvWL {
|
|
134 |
add_filter( 'language_attributes', array( $this, 'add_ogp' ), 100 );
|
135 |
}
|
136 |
|
137 |
-
if ( tinv_get_option( 'general', 'link_in_myaccount' ) ||
|
138 |
add_filter( 'woocommerce_account_menu_items', array( $this, 'account_menu_items' ) );
|
139 |
add_filter( 'woocommerce_get_endpoint_url', array( $this, 'account_menu_endpoint' ), 4, 10 );
|
140 |
}
|
141 |
|
142 |
-
if ( tinv_get_option( 'general', '
|
143 |
add_action( 'init', array( $this, 'wishlist_endpoint' ) );
|
144 |
add_filter( 'query_vars', array( $this, 'wishlist_query_vars' ), 0 );
|
145 |
add_action( 'woocommerce_account_' . tinv_get_option( 'general', 'my_account_endpoint_slug' ) . '_endpoint', array(
|
@@ -545,6 +545,7 @@ class TInvWL_Public_TInvWL {
|
|
545 |
'plugin_url' => esc_url_raw( TINVWL_URL ),
|
546 |
'wc_ajax_url' => WC_AJAX::get_endpoint( 'tinvwl' ),
|
547 |
'stats' => tinv_get_option( 'general', 'product_stats' ),
|
|
|
548 |
);
|
549 |
|
550 |
if ( function_exists( 'wpml_get_current_language' ) ) {
|
@@ -713,7 +714,7 @@ class TInvWL_Public_TInvWL {
|
|
713 |
* @return string
|
714 |
*/
|
715 |
function account_menu_endpoint( $url, $endpoint, $value, $permalink ) {
|
716 |
-
if (
|
717 |
$url = tinv_url_wishlist_default();
|
718 |
}
|
719 |
|
134 |
add_filter( 'language_attributes', array( $this, 'add_ogp' ), 100 );
|
135 |
}
|
136 |
|
137 |
+
if ( tinv_get_option( 'general', 'link_in_myaccount' ) || tinv_get_option( 'general', 'my_account_endpoint' ) ) {
|
138 |
add_filter( 'woocommerce_account_menu_items', array( $this, 'account_menu_items' ) );
|
139 |
add_filter( 'woocommerce_get_endpoint_url', array( $this, 'account_menu_endpoint' ), 4, 10 );
|
140 |
}
|
141 |
|
142 |
+
if ( tinv_get_option( 'general', 'my_account_endpoint' ) ) {
|
143 |
add_action( 'init', array( $this, 'wishlist_endpoint' ) );
|
144 |
add_filter( 'query_vars', array( $this, 'wishlist_query_vars' ), 0 );
|
145 |
add_action( 'woocommerce_account_' . tinv_get_option( 'general', 'my_account_endpoint_slug' ) . '_endpoint', array(
|
545 |
'plugin_url' => esc_url_raw( TINVWL_URL ),
|
546 |
'wc_ajax_url' => WC_AJAX::get_endpoint( 'tinvwl' ),
|
547 |
'stats' => tinv_get_option( 'general', 'product_stats' ),
|
548 |
+
'popup_timer' => apply_filters( 'tinvwl_popup_close_timer', 6000 ),
|
549 |
);
|
550 |
|
551 |
if ( function_exists( 'wpml_get_current_language' ) ) {
|
714 |
* @return string
|
715 |
*/
|
716 |
function account_menu_endpoint( $url, $endpoint, $value, $permalink ) {
|
717 |
+
if ( ! tinv_get_option( 'general', 'my_account_endpoint' ) && tinv_get_option( 'general', 'my_account_endpoint_slug' ) === $endpoint ) {
|
718 |
$url = tinv_url_wishlist_default();
|
719 |
}
|
720 |
|
public/wishlist/view.class.php
CHANGED
@@ -116,7 +116,7 @@ class TInvWL_Public_Wishlist_View {
|
|
116 |
|
117 |
add_action( 'tinvwl_before_wishlist', array( $this, 'wishlist_header' ) );
|
118 |
|
119 |
-
if ( !
|
120 |
add_action( 'tinvwl_after_wishlist', array( 'TInvWL_Public_Wishlist_Social', 'init' ) );
|
121 |
}
|
122 |
add_filter( 'tinvwl_wishlist_item_url', array( $this, 'add_argument' ), 10, 3 );
|
@@ -413,8 +413,8 @@ class TInvWL_Public_Wishlist_View {
|
|
413 |
function htmloutput( $atts ) {
|
414 |
|
415 |
if ( $atts['sharekey'] ) {
|
416 |
-
$wl
|
417 |
-
$wishlist
|
418 |
$this->current_wishlist = $wishlist;
|
419 |
} else {
|
420 |
$wishlist = $this->get_current_wishlist();
|
116 |
|
117 |
add_action( 'tinvwl_before_wishlist', array( $this, 'wishlist_header' ) );
|
118 |
|
119 |
+
if ( ! tinv_get_option( 'general', 'my_account_endpoint' ) ) {
|
120 |
add_action( 'tinvwl_after_wishlist', array( 'TInvWL_Public_Wishlist_Social', 'init' ) );
|
121 |
}
|
122 |
add_filter( 'tinvwl_wishlist_item_url', array( $this, 'add_argument' ), 10, 3 );
|
413 |
function htmloutput( $atts ) {
|
414 |
|
415 |
if ( $atts['sharekey'] ) {
|
416 |
+
$wl = new TInvWL_Wishlist( $this->_name );
|
417 |
+
$wishlist = $wl->get_by_share_key( $atts['sharekey'] );
|
418 |
$this->current_wishlist = $wishlist;
|
419 |
} else {
|
420 |
$wishlist = $this->get_current_wishlist();
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: templateinvaders
|
|
3 |
Tags: woocommerce, wishlist, woocommerce wishlist, e-commerce, ecommerce
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 6.0
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv3
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
@@ -163,6 +163,13 @@ Yes, you can! Join in on our [GitHub repository](https://github.com/TemplateInva
|
|
163 |
|
164 |
|
165 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
= 2.0.1 =
|
167 |
*Release Date - 12 September 2022*
|
168 |
|
3 |
Tags: woocommerce, wishlist, woocommerce wishlist, e-commerce, ecommerce
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 2.0.2
|
7 |
License: GPLv3
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
163 |
|
164 |
|
165 |
== Changelog ==
|
166 |
+
= 2.0.2 =
|
167 |
+
*Release Date - 14 September 2022*
|
168 |
+
|
169 |
+
* Added filter `tinvwl_popup_close_timer`
|
170 |
+
* Updated integration with WooCommerce Variation Swatches - Pro plugin
|
171 |
+
* Options to setup wishlist page under WooCommerce My Account section are simplified
|
172 |
+
|
173 |
= 2.0.1 =
|
174 |
*Release Date - 12 September 2022*
|
175 |
|
ti-woocommerce-wishlist.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: TI WooCommerce Wishlist
|
5 |
* Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
-
* Version: 2.0.
|
8 |
* Requires at least: 4.7
|
9 |
* Tested up to: 6.0
|
10 |
* WC requires at least: 3.0
|
@@ -41,7 +41,7 @@ if ( ! defined( 'TINVWL_DOMAIN' ) ) {
|
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
44 |
-
define( 'TINVWL_FVERSION', '2.0.
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
4 |
* Plugin Name: TI WooCommerce Wishlist
|
5 |
* Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
+
* Version: 2.0.2
|
8 |
* Requires at least: 4.7
|
9 |
* Tested up to: 6.0
|
10 |
* WC requires at least: 3.0
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
44 |
+
define( 'TINVWL_FVERSION', '2.0.2' );
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
tinv-wishlists-function.php
CHANGED
@@ -427,7 +427,7 @@ if ( ! function_exists( 'tinv_url_wishlist_default' ) ) {
|
|
427 |
* @return string
|
428 |
*/
|
429 |
function tinv_url_wishlist_default() {
|
430 |
-
if ( tinv_get_option( 'general', '
|
431 |
return esc_url( wc_get_endpoint_url( tinv_get_option( 'general', 'my_account_endpoint_slug' ), '', wc_get_page_permalink( 'myaccount' ) ) );
|
432 |
}
|
433 |
|
427 |
* @return string
|
428 |
*/
|
429 |
function tinv_url_wishlist_default() {
|
430 |
+
if ( tinv_get_option( 'general', 'my_account_endpoint' ) ) {
|
431 |
return esc_url( wc_get_endpoint_url( tinv_get_option( 'general', 'my_account_endpoint_slug' ), '', wc_get_page_permalink( 'myaccount' ) ) );
|
432 |
}
|
433 |
|