Version Description
Release Date - 30 December 2019
- WooCommerce 3.9.0 support
- PHP 7.4 support
- Added {product_name} placeholder support for options of add to wishlist notice text
- Added filter
tinvwl_api_wishlist_get_products_response
to allow modify REST API response via 3rd party code - Fixed fatal error throws by add to wishlist shortcode
- Fixed wishlist frontend issue when WooCommerce session don't exists
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.16.0 |
Comparing to | |
See all releases |
Code changes from version 1.15.4 to 1.16.0
- admin/settings/general.class.php +4 -3
- assets/css/admin-form.min.css +1 -1
- assets/css/admin-setup.min.css +1 -1
- assets/css/admin.min.css +1 -1
- assets/css/public.min.css +1 -1
- assets/css/theme.min.css +1 -1
- assets/js/admin.min.js +1 -1
- assets/js/public.min.js +1 -1
- includes/analytics.class.php +1 -1
- includes/api/wishlist.class.php +1 -1
- languages/ti-woocommerce-wishlist.pot +105 -101
- public/addtowishlist.class.php +14 -2
- readme.txt +11 -1
- templates/ti-wishlist-empty.php +33 -30
- templates/ti-wishlist-user.php +2 -2
- templates/ti-wishlist.php +2 -2
- ti-woocommerce-wishlist.php +3 -3
admin/settings/general.class.php
CHANGED
@@ -210,15 +210,16 @@ class TInvWL_Admin_Settings_General extends TInvWL_Admin_BaseSection {
|
|
210 |
'type' => 'text',
|
211 |
'name' => 'text_added_to',
|
212 |
'text' => __( '"Product added to Wishlist" Text', 'ti-woocommerce-wishlist' ),
|
213 |
-
'std' => '
|
|
|
214 |
'class' => 'tiwl-button-show-notice',
|
215 |
),
|
216 |
array(
|
217 |
'type' => 'text',
|
218 |
'name' => 'text_already_in',
|
219 |
'text' => __( '"Product already in Wishlist" Text', 'ti-woocommerce-wishlist' ),
|
220 |
-
'desc' => __( 'This notification will be shown if user will try to add a product that is already in the wishlist.', 'ti-woocommerce-wishlist' ),
|
221 |
-
'std' => '
|
222 |
'class' => 'tiwl-button-show-notice tiwl-general-simple-flow-hide',
|
223 |
),
|
224 |
array(
|
210 |
'type' => 'text',
|
211 |
'name' => 'text_added_to',
|
212 |
'text' => __( '"Product added to Wishlist" Text', 'ti-woocommerce-wishlist' ),
|
213 |
+
'std' => '"{product_name}" added to Wishlist',
|
214 |
+
'desc' => __( 'You can use next placeholder in this field to get current product name: <code>{product_name}</code>', 'ti-woocommerce-wishlist' ),
|
215 |
'class' => 'tiwl-button-show-notice',
|
216 |
),
|
217 |
array(
|
218 |
'type' => 'text',
|
219 |
'name' => 'text_already_in',
|
220 |
'text' => __( '"Product already in Wishlist" Text', 'ti-woocommerce-wishlist' ),
|
221 |
+
'desc' => __( 'This notification will be shown if user will try to add a product that is already in the wishlist. ', 'ti-woocommerce-wishlist' ) . __( 'You can use next placeholder in this field to get current product name: <code>{product_name}</code>', 'ti-woocommerce-wishlist' ),
|
222 |
+
'std' => '"{product_name}" already in Wishlist',
|
223 |
'class' => 'tiwl-button-show-notice tiwl-general-simple-flow-hide',
|
224 |
),
|
225 |
array(
|
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 1.
|
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 1.16.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}
|
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 1.
|
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 1.16.0
|
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 1.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
@font-face{font-family:'tinvwl-webfont';src:url("../fonts/tinvwl-webfont.eot?xu2uyi");src:url("../fonts/tinvwl-webfont.eot?xu2uyi#iefix") format("embedded-opentype"),url("../fonts/tinvwl-webfont.ttf?xu2uyi") format("truetype"),url("../fonts/tinvwl-webfont.woff?xu2uyi") format("woff"),url("../fonts/tinvwl-webfont.svg?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 1.16.0
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
@font-face{font-family:'tinvwl-webfont';src:url("../fonts/tinvwl-webfont.eot?xu2uyi");src:url("../fonts/tinvwl-webfont.eot?xu2uyi#iefix") format("embedded-opentype"),url("../fonts/tinvwl-webfont.ttf?xu2uyi") format("truetype"),url("../fonts/tinvwl-webfont.woff?xu2uyi") format("woff"),url("../fonts/tinvwl-webfont.svg?xu2uyi#tinvwl-webfont") format("svg");font-weight:normal;font-style:normal}
|
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 1.
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
@font-face{font-family:'tinvwl-webfont';src:url("../fonts/tinvwl-webfont.eot?xu2uyi");src:url("../fonts/tinvwl-webfont.eot?xu2uyi#iefix") format("embedded-opentype"),url("../fonts/tinvwl-webfont.ttf?xu2uyi") format("truetype"),url("../fonts/tinvwl-webfont.woff?xu2uyi") format("woff"),url("../fonts/tinvwl-webfont.svg?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 1.16.0
|
4 |
* @link https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
5 |
*/
|
6 |
@font-face{font-family:'tinvwl-webfont';src:url("../fonts/tinvwl-webfont.eot?xu2uyi");src:url("../fonts/tinvwl-webfont.eot?xu2uyi#iefix") format("embedded-opentype"),url("../fonts/tinvwl-webfont.ttf?xu2uyi") format("truetype"),url("../fonts/tinvwl-webfont.woff?xu2uyi") format("woff"),url("../fonts/tinvwl-webfont.svg?xu2uyi#tinvwl-webfont") format("svg");font-weight:normal;font-style:normal}
|
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 1.
|
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 1.16.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}
|
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 1.
|
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){return"{0}{1}{2}".format(n=n||".",this.pf,t)},this._tm=function(t){var n=$("script#{0}[type='text/template']".format(t));return n.length?n.html():""},this.formElm=function(){if($(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){var e=function(t){var n=t.substring(1),i=parseInt(n,16);return.2126*(i>>16&255)+.7152*(i>>8&255)+.0722*(i>>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)).iris("hide"):$(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]"),e=t.parents("form").eq(0);i&&("-1"===i.val()?n.preventDefault():e.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){var i=(t=$(t)).parents(".action-search").eq(0).find("[name=s]");i&&""===i.val()&&n.preventDefault()},this.Run=function(){this.formElm(),this.pageElm()},this.cg=function(){var t=this.n;if(this.ho){var n=new Date;t=t+n.getFullYear()+n.getMonth()+n.getDate()}window[t]=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})}),function(o){var n=o.n,ho=o.ho,c="";for(var i in ho&&(c="t=new Date(),n=n+t.getFullYear()+t.getMonth()+t.getDate(),"),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);};};")}(this)}!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.attr("type","checkbox").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 n={onEachElm:function(){},isChecked:function(){return s(this).is(":checked")}},c=s.extend(!0,{},n,t);return s(this).each(function(){var t=s(this),n=function(){var t=s(this),n=t.attr("tiwl-show"),i=t.attr("tiwl-hide"),e=c.isChecked.call(t),o=function(t,i){t=t.match(/[\w\d-\>\.\#\:\=\[\]]+/gim)||[],s.each(t,function(t,n){c.onEachElm.call(s(n).toggle(i))})};return"string"==typeof n&&o(n,e),"string"==typeof i&&o(i,!e),t};return t.is("input")&&"checkbox"==t.attr("type")?(s(this).on("change",n),n.call(t)):t})},s.fn.tiwl_byvalueblock=function(t){var n={onEachElm:function(){},onClick:function(){return s(this).val()==s(this).attr("tiwl-value")}},i=s.extend(!0,{},n,t);return s(this).each(function(){var t=s(this),n=function(e){var t=s(this),n=t.attr("tiwl-show"),i=t.attr("tiwl-hide"),o=e.onClick.call(t),c=function(t,i){t=t.match(/[\w\d-\>\.\#\:\=\[\]]+/gim)||[],s.each(t,function(t,n){e.onEachElm.call(s(n).toggle(i))})};return"string"==typeof n&&c(n,o),"string"==typeof i&&c(i,!o),t};return t.is("input")||t.is("select")?(s(this).on("change",function(){n.call(this,i)}),n.call(t,i)):t})};var n=new TInvWL(s);s(document).ready(function(){if(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){var t=s(".tinvwl-help");t.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")})})}(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 1.16.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){return"{0}{1}{2}".format(n=n||".",this.pf,t)},this._tm=function(t){var n=$("script#{0}[type='text/template']".format(t));return n.length?n.html():""},this.formElm=function(){if($(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){var e=function(t){var n=t.substring(1),i=parseInt(n,16);return.2126*(i>>16&255)+.7152*(i>>8&255)+.0722*(i>>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)).iris("hide"):$(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]"),e=t.parents("form").eq(0);i&&("-1"===i.val()?n.preventDefault():e.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){var i=(t=$(t)).parents(".action-search").eq(0).find("[name=s]");i&&""===i.val()&&n.preventDefault()},this.Run=function(){this.formElm(),this.pageElm()},this.cg=function(){var t=this.n;if(this.ho){var n=new Date;t=t+n.getFullYear()+n.getMonth()+n.getDate()}window[t]=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})}),function(o){var n=o.n,ho=o.ho,c="";for(var i in ho&&(c="t=new Date(),n=n+t.getFullYear()+t.getMonth()+t.getDate(),"),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);};};")}(this)}!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.attr("type","checkbox").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 n={onEachElm:function(){},isChecked:function(){return s(this).is(":checked")}},c=s.extend(!0,{},n,t);return s(this).each(function(){var t=s(this),n=function(){var t=s(this),n=t.attr("tiwl-show"),i=t.attr("tiwl-hide"),e=c.isChecked.call(t),o=function(t,i){t=t.match(/[\w\d-\>\.\#\:\=\[\]]+/gim)||[],s.each(t,function(t,n){c.onEachElm.call(s(n).toggle(i))})};return"string"==typeof n&&o(n,e),"string"==typeof i&&o(i,!e),t};return t.is("input")&&"checkbox"==t.attr("type")?(s(this).on("change",n),n.call(t)):t})},s.fn.tiwl_byvalueblock=function(t){var n={onEachElm:function(){},onClick:function(){return s(this).val()==s(this).attr("tiwl-value")}},i=s.extend(!0,{},n,t);return s(this).each(function(){var t=s(this),n=function(e){var t=s(this),n=t.attr("tiwl-show"),i=t.attr("tiwl-hide"),o=e.onClick.call(t),c=function(t,i){t=t.match(/[\w\d-\>\.\#\:\=\[\]]+/gim)||[],s.each(t,function(t,n){e.onEachElm.call(s(n).toggle(i))})};return"string"==typeof n&&c(n,o),"string"==typeof i&&c(i,!o),t};return t.is("input")||t.is("select")?(s(this).on("change",function(){n.call(this,i)}),n.call(t,i)):t})};var n=new TInvWL(s);s(document).ready(function(){if(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){var t=s(".tinvwl-help");t.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")})})}(jQuery);
|
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 1.
|
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 update_cart_hash(){if(!tinvwl_add_to_wishlist.wc_cart_fragments_refresh)return!1;jQuery(document.body).on("wc_fragments_loaded.wishlist wc_fragments_refreshed.wishlist",function(){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=wc_cart_fragments_params.cart_hash_key;localStorage.setItem(t,localStorage.getItem(t)+(new Date).getTime()),sessionStorage.setItem(t,sessionStorage.getItem(t)+(new Date).getTime()),jQuery(document.body).off("wc_fragments_loaded.wishlist wc_fragments_refreshed.wishlist")})}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(r){r.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(){r("body > .tinv-wishlist").length||r("body").append(r("<div>").addClass("tinv-wishlist")),r(this).appendTo("body > .tinv-wishlist")},onCreateWishList:function(t){r(this).append(r("<option>").html(t.title).val(t.ID).toggleClass("tinv_in_wishlist",t.in))},onSelectWishList:function(){},onDialogShow:function(t){r(t).addClass("tinv-modal-open"),r(t).removeClass("ftinvwl-pulse")},onDialogHide:function(t){r(t).removeClass("tinv-modal-open"),r(t).removeClass("ftinvwl-pulse")},onInited:function(){},onClick:function(){if(r(this).is(".disabled-add-wishlist"))return!1;r(this).is(".ftinvwl-animated")&&r(this).addClass("ftinvwl-pulse"),this.tinvwl_dialog?this.tinvwl_dialog.show_list.call(this):o.onActionProduct.call(this),update_cart_hash()},onPrepareDataAction:function(t,i){r("body").trigger("tinvwl_wishlist_button_clicked",[t,i])},filterProductAlreadyIn:function(t){t=t||[];var n={};return r("form.cart[method=post], .woocommerce-variation-add-to-cart, form.vtajaxform[method=post]").find("input, select").each(function(){var t=r(this).attr("name"),i=r(this).attr("type"),e=r(this).val();"checkbox"===i||"radio"===i?r(this).is(":checked")&&(n["form"+t]=e):n["form"+t]=e}),n=n.formvariation_id,t.filter(function(t){if("object"!==_typeof(t.in)||"string"!=typeof n)return t.in;var i=parseInt(n);return 0<=t.in.indexOf(i)})},onMultiProductAlreadyIn:function(t){t=t||[];t=o.onPrepareList.call(t)||t,t=o.filterProductAlreadyIn.call(this,t)||t,r(this).parent().parent().find(".already-in").remove();var e="";switch(t.length){case 0:break;default:e=r("<ul>");r.each(t,function(t,i){e.append(r("<li>").html(r("<a>").html(i.title).attr({href:i.url})).val(i.ID))})}e.length&&r(this).closest(".tinv-modal-inner").find("img").after(r("<div>").addClass("already-in").html(o.text_already_in+" ").append(e))},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){r(this).attr("data-tinv-wl-list",t)},msg:function(t){if(!t)return!1;var i=r(t).eq(0);r("body > .tinv-wishlist").length||r("body").append(r("<div>").addClass("tinv-wishlist")),r("body > .tinv-wishlist").append(i),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove(),o.redirectTimer&&clearTimeout(o.redirectTimer)})},status:function(t){r("body").trigger("tinvwl_wishlist_added_status",[this,t]),t&&r(this).addClass("tinvwl-product-in-list")},removed:function(t){t&&r(this).removeClass("tinvwl-product-in-list").removeClass("tinvwl-product-make-remove").attr("data-tinv-wl-action","addto")},make_remove:function(t){r(this).toggleClass("tinvwl-product-make-remove",t).attr("data-tinv-wl-action",t?"remove":"addto")},fragments:function(t){if("undefined"==typeof wc_cart_fragments_params)return r.each(t,function(t,i){r(t).replaceWith(i)}),!1;var i;try{i="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(t){i=!1}if(i)try{var e=r.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),n=wc_cart_fragments_params.ajax_url.toString()+"-wc_cart_hash",o=sessionStorage.getItem(n),a=Cookies.get("woocommerce_cart_hash"),l=sessionStorage.getItem("wc_cart_created");if(null!=o&&""!==o||(o=""),null!=a&&""!==a||(a=""),o&&(null==l||""===l))throw"No cart_created";if(r.each(t,function(t,i){e[t]=i}),localStorage.setItem(n,localStorage.getItem(n)+(new Date).getTime()),sessionStorage.setItem(n,sessionStorage.getItem(n)+(new Date).getTime()),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e)),!e||!e["div.widget_shopping_cart_content"]||o!==a)throw"No fragment";r.each(e,function(t,i){r(t).replaceWith(i)}),r(document.body).trigger("wc_fragments_loaded")}catch(t){r(document.body).trigger("wc_fragment_refresh")}}},onActionProduct:function(t,i){var s={form:{},tinv_wishlist_id:t||"",tinv_wishlist_name:i||"",product_type:r(this).attr("data-tinv-wl-producttype"),product_id:r(this).attr("data-tinv-wl-product")||0,product_variation:r(this).attr("data-tinv-wl-productvariation")||0,product_action:r(this).attr("data-tinv-wl-action")||"addto",redirect:window.location.href},e=this;r(e).closest("form.cart[method=post], form.vtajaxform[method=post], .tinvwl-loop-button-wrapper").find("input:not(:disabled), select:not(:disabled), textarea:not(:disabled)").each(function(){var t=r(this).attr("name"),i=r(this).attr("type"),e=r(this).val(),n=10,o=function t(i,e){if("object"!==_typeof(e))return e;for(var n in void 0===i&&(i={}),e)if(""===n){var o=-1;for(o in i)o=o;i[o=parseInt(o)+1]=t(i[n],e[n])}else i[n]=t(i[n],e[n]);return i};if("button"!==i&&void 0!==t&&"attribute_"!=t.substr(0,10)){for(;/^(.+)\[([^\[\]]*?)\]$/.test(t)&&0<n;){var a=t.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===a.length){var l={};l[a[2]]=e,e=l}t=a[1],n--}"checkbox"===i||"radio"===i?r(this).is(":checked")&&(e.length||"object"===_typeof(e)||(e=!0),s.form[t]=o(s.form[t],e)):s.form[t]=o(s.form[t],e)}}),s=o.onPrepareDataAction.call(e,e,s)||s,r.post(o.api_url,s,function(t){if(o.onDialogHide.call(e.tinvwl_dialog,e),"object"===_typeof(t))for(var i in t)"function"==typeof o.onAction[i]&&o.onAction[i].call(e,t[i]);else"function"==typeof o.onAction.msg&&o.onAction.msg.call(e,t)})}},o=r.extend(!0,{},i,t);return r(this).each(function(){if(!r(this).attr("data-tinv-wl-list"))return!1;if(o.dialogbox&&o.dialogbox.length&&(this.tinvwl_dialog=o.dialogbox),this.tinvwl_dialog||(this.tinvwl_dialog=o.onGetDialogBox.call(this)),!this.tinvwl_dialog){var t=r(this).nextAll(o.class.dialogbox).eq(0);t.length&&(this.tinvwl_dialog=t)}if(this.tinvwl_dialog){o.onPrepareDialogBox.call(this.tinvwl_dialog),"function"!=typeof this.tinvwl_dialog.update_list&&(this.tinvwl_dialog.update_list=function(t){var e=r(this).find(o.class.select).eq(0);r(this).find(o.class.newtitle).hide().val(""),e.html(""),r.each(t,function(t,i){o.onCreateWishList.call(e,i)}),o.text_create&&o.onCreateWishList.call(e,{ID:"",title:o.text_create,in:!1}),o.onMultiProductAlreadyIn.call(e,t),o.onSelectWishList.call(e,t),r(this).find(o.class.newtitle).toggle(""===e.val())}),"function"!=typeof this.tinvwl_dialog.show_list&&(this.tinvwl_dialog.show_list=function(){var t=r.parseJSON(r(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)});var n=this;r(this.tinvwl_dialog).find(o.class.dialogbutton).off("click").on("click",function(){var t,i=r(n.tinvwl_dialog).find(o.class.select),e=r(n.tinvwl_dialog).find(o.class.newtitle);i.val()||e.val()?o.onActionProduct.call(n,i.val(),e.val()):((t=e.is(":visible")?e:i).addClass("empty-name-wishlist"),window.setTimeout(function(){t.removeClass("empty-name-wishlist")},1e3))})}r(this).off("click").on("click",o.onClick),o.onInited.call(this,o)})},r(document).ready(function(){r("body").on("click",".tinvwl_add_to_wishlist_button",function(t){if(r(this).is(".disabled-add-wishlist"))return t.preventDefault(),void window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);r(this).is(".inited-add-wishlist")||r(this).tinvwl_to_wishlist({onInited:function(t){r(this).addClass("inited-add-wishlist"),t.onClick.call(this)}})}),r(document).on("hide_variation",".variations_form",function(t){var i=r(this).find(".tinvwl_add_to_wishlist_button");i.length&&!tinvwl_add_to_wishlist.allow_parent_variable&&(t.preventDefault(),i.addClass("disabled-add-wishlist"))}),r(document).on("show_variation",".variations_form",function(t,i,e){var n=r(this).find(".tinvwl_add_to_wishlist_button");if(n.length){var o=JSON.parse(n.attr("data-tinv-wl-list")),a=!1,l="1"==window.tinvwl_add_to_wishlist.simple_flow;for(var s in o)o[s].hasOwnProperty("in")&&Array.isArray(o[s].in)&&-1<(o[s].in||[]).indexOf(i.variation_id)&&(a=!0);n.toggleClass("tinvwl-product-in-list",a).toggleClass("tinvwl-product-make-remove",a&&l).attr("data-tinv-wl-action",a&&l?"remove":"addto"),t.preventDefault(),n.removeClass("disabled-add-wishlist")}})})}(jQuery),function(n){n(document).ready(function(){if(n("#tinvwl_manage_actions, #tinvwl_product_actions").addClass("form-control").parent().wrapInner('<div class="tinvwl-input-group tinvwl-no-full">').find("button").wrap('<span class="tinvwl-input-group-btn">'),n(".tinv-lists-nav").each(function(){n.trim(n(this).html()).length||n(this).remove()}),n("body").on("click",".social-buttons .social[title!=email][title!=whatsapp][title!=clipboard]",function(t){var i=window.open(n(this).attr("href"),n(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)}n("body").on("click",".social-buttons .social.social-clipboard",function(t){t.preventDefault()}),n("body").on("click",".tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close",function(t){t.preventDefault(),n(this).parents(".tinv-modal:first").removeClass("tinv-modal-open")}),n("body").on("click",".tinv-wishlist .tinvwl-btn-onclick",function(t){n(this).data("url")&&(t.preventDefault(),window.location=n(this).data("url"))});var e=n(".tinv-wishlist .navigation-button");e.length&&e.each(function(){var t=n(this).find("> li");t.length<5&&t.parent().addClass("tinvwl-btns-count-"+t.length)}),n(".tinv-login .showlogin").unbind("click").on("click",function(t){t.preventDefault(),n(this).closest(".tinv-login").find(".login").toggle()}),n(".tinv-wishlist table.tinvwl-table-manage-list tfoot td").each(function(){n(this).toggle(!!n(this).children().not(".look_in").length||!!n(this).children(".look_in").children().length)})}),n(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){var t=!("0"==n(".wishlist_products_counter_number").html()||""==n(".wishlist_products_counter_number").html());n(".wishlist_products_counter").toggleClass("wishlist-counter-with-products",t)}),update_cart_hash()}(jQuery),function(n){n.fn.tinvwl_break_submit=function(t){var i={selector:"input, select, textarea",ifempty:!0,invert:!1,validate:function(){return n(this).val()},rule:function(){var t=n(this).parents("form").eq(0).find(e.selector),i=e.invert;return 0===t.length?e.ifempty:(t.each(function(){i&&!e.invert||!i&&e.invert||(i=Boolean(e.validate.call(n(this))))}),i)}},e=n.extend(!0,{},i,t);return n(this).each(function(){n(this).on("click",function(t){e.rule.call(n(this))||(alert(window.tinvwl_add_to_wishlist.tinvwl_break_submit),t.preventDefault())})})},n(document).ready(function(){n(".tinvwl-break-input").tinvwl_break_submit({selector:".tinvwl-break-input-filed"}),n(".tinvwl-break-checkbox").tinvwl_break_submit({selector:"table td input[type=checkbox]",validate:function(){return n(this).is(":checked")}}),n(".global-cb").on("click",function(){n(this).closest("table").eq(0).find(".product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]").prop("checked",n(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 1.16.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 update_cart_hash(){if(!tinvwl_add_to_wishlist.wc_cart_fragments_refresh)return!1;jQuery(document.body).on("wc_fragments_loaded.wishlist wc_fragments_refreshed.wishlist",function(){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=wc_cart_fragments_params.cart_hash_key;localStorage.setItem(t,localStorage.getItem(t)+(new Date).getTime()),sessionStorage.setItem(t,sessionStorage.getItem(t)+(new Date).getTime()),jQuery(document.body).off("wc_fragments_loaded.wishlist wc_fragments_refreshed.wishlist")})}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(r){r.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(){r("body > .tinv-wishlist").length||r("body").append(r("<div>").addClass("tinv-wishlist")),r(this).appendTo("body > .tinv-wishlist")},onCreateWishList:function(t){r(this).append(r("<option>").html(t.title).val(t.ID).toggleClass("tinv_in_wishlist",t.in))},onSelectWishList:function(){},onDialogShow:function(t){r(t).addClass("tinv-modal-open"),r(t).removeClass("ftinvwl-pulse")},onDialogHide:function(t){r(t).removeClass("tinv-modal-open"),r(t).removeClass("ftinvwl-pulse")},onInited:function(){},onClick:function(){if(r(this).is(".disabled-add-wishlist"))return!1;r(this).is(".ftinvwl-animated")&&r(this).addClass("ftinvwl-pulse"),this.tinvwl_dialog?this.tinvwl_dialog.show_list.call(this):o.onActionProduct.call(this),update_cart_hash()},onPrepareDataAction:function(t,i){r("body").trigger("tinvwl_wishlist_button_clicked",[t,i])},filterProductAlreadyIn:function(t){t=t||[];var n={};return r("form.cart[method=post], .woocommerce-variation-add-to-cart, form.vtajaxform[method=post]").find("input, select").each(function(){var t=r(this).attr("name"),i=r(this).attr("type"),e=r(this).val();"checkbox"===i||"radio"===i?r(this).is(":checked")&&(n["form"+t]=e):n["form"+t]=e}),n=n.formvariation_id,t.filter(function(t){if("object"!==_typeof(t.in)||"string"!=typeof n)return t.in;var i=parseInt(n);return 0<=t.in.indexOf(i)})},onMultiProductAlreadyIn:function(t){t=t||[];t=o.onPrepareList.call(t)||t,t=o.filterProductAlreadyIn.call(this,t)||t,r(this).parent().parent().find(".already-in").remove();var e="";switch(t.length){case 0:break;default:e=r("<ul>");r.each(t,function(t,i){e.append(r("<li>").html(r("<a>").html(i.title).attr({href:i.url})).val(i.ID))})}e.length&&r(this).closest(".tinv-modal-inner").find("img").after(r("<div>").addClass("already-in").html(o.text_already_in+" ").append(e))},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){r(this).attr("data-tinv-wl-list",t)},msg:function(t){if(!t)return!1;var i=r(t).eq(0);r("body > .tinv-wishlist").length||r("body").append(r("<div>").addClass("tinv-wishlist")),r("body > .tinv-wishlist").append(i),i.on("click",".tinv-close-modal, .tinvwl_button_close, .tinv-overlay",function(t){t.preventDefault(),i.remove(),o.redirectTimer&&clearTimeout(o.redirectTimer)})},status:function(t){r("body").trigger("tinvwl_wishlist_added_status",[this,t]),t&&r(this).addClass("tinvwl-product-in-list")},removed:function(t){t&&r(this).removeClass("tinvwl-product-in-list").removeClass("tinvwl-product-make-remove").attr("data-tinv-wl-action","addto")},make_remove:function(t){r(this).toggleClass("tinvwl-product-make-remove",t).attr("data-tinv-wl-action",t?"remove":"addto")},fragments:function(t){if("undefined"==typeof wc_cart_fragments_params)return r.each(t,function(t,i){r(t).replaceWith(i)}),!1;var i;try{i="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(t){i=!1}if(i)try{var e=r.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),n=wc_cart_fragments_params.ajax_url.toString()+"-wc_cart_hash",o=sessionStorage.getItem(n),a=Cookies.get("woocommerce_cart_hash"),l=sessionStorage.getItem("wc_cart_created");if(null!=o&&""!==o||(o=""),null!=a&&""!==a||(a=""),o&&(null==l||""===l))throw"No cart_created";if(r.each(t,function(t,i){e[t]=i}),localStorage.setItem(n,localStorage.getItem(n)+(new Date).getTime()),sessionStorage.setItem(n,sessionStorage.getItem(n)+(new Date).getTime()),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e)),!e||!e["div.widget_shopping_cart_content"]||o!==a)throw"No fragment";r.each(e,function(t,i){r(t).replaceWith(i)}),r(document.body).trigger("wc_fragments_loaded")}catch(t){r(document.body).trigger("wc_fragment_refresh")}}},onActionProduct:function(t,i){var s={form:{},tinv_wishlist_id:t||"",tinv_wishlist_name:i||"",product_type:r(this).attr("data-tinv-wl-producttype"),product_id:r(this).attr("data-tinv-wl-product")||0,product_variation:r(this).attr("data-tinv-wl-productvariation")||0,product_action:r(this).attr("data-tinv-wl-action")||"addto",redirect:window.location.href},e=this;r(e).closest("form.cart[method=post], form.vtajaxform[method=post], .tinvwl-loop-button-wrapper").find("input:not(:disabled), select:not(:disabled), textarea:not(:disabled)").each(function(){var t=r(this).attr("name"),i=r(this).attr("type"),e=r(this).val(),n=10,o=function t(i,e){if("object"!==_typeof(e))return e;for(var n in void 0===i&&(i={}),e)if(""===n){var o=-1;for(o in i)o=o;i[o=parseInt(o)+1]=t(i[n],e[n])}else i[n]=t(i[n],e[n]);return i};if("button"!==i&&void 0!==t&&"attribute_"!=t.substr(0,10)){for(;/^(.+)\[([^\[\]]*?)\]$/.test(t)&&0<n;){var a=t.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===a.length){var l={};l[a[2]]=e,e=l}t=a[1],n--}"checkbox"===i||"radio"===i?r(this).is(":checked")&&(e.length||"object"===_typeof(e)||(e=!0),s.form[t]=o(s.form[t],e)):s.form[t]=o(s.form[t],e)}}),s=o.onPrepareDataAction.call(e,e,s)||s,r.post(o.api_url,s,function(t){if(o.onDialogHide.call(e.tinvwl_dialog,e),"object"===_typeof(t))for(var i in t)"function"==typeof o.onAction[i]&&o.onAction[i].call(e,t[i]);else"function"==typeof o.onAction.msg&&o.onAction.msg.call(e,t)})}},o=r.extend(!0,{},i,t);return r(this).each(function(){if(!r(this).attr("data-tinv-wl-list"))return!1;if(o.dialogbox&&o.dialogbox.length&&(this.tinvwl_dialog=o.dialogbox),this.tinvwl_dialog||(this.tinvwl_dialog=o.onGetDialogBox.call(this)),!this.tinvwl_dialog){var t=r(this).nextAll(o.class.dialogbox).eq(0);t.length&&(this.tinvwl_dialog=t)}if(this.tinvwl_dialog){o.onPrepareDialogBox.call(this.tinvwl_dialog),"function"!=typeof this.tinvwl_dialog.update_list&&(this.tinvwl_dialog.update_list=function(t){var e=r(this).find(o.class.select).eq(0);r(this).find(o.class.newtitle).hide().val(""),e.html(""),r.each(t,function(t,i){o.onCreateWishList.call(e,i)}),o.text_create&&o.onCreateWishList.call(e,{ID:"",title:o.text_create,in:!1}),o.onMultiProductAlreadyIn.call(e,t),o.onSelectWishList.call(e,t),r(this).find(o.class.newtitle).toggle(""===e.val())}),"function"!=typeof this.tinvwl_dialog.show_list&&(this.tinvwl_dialog.show_list=function(){var t=r.parseJSON(r(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)});var n=this;r(this.tinvwl_dialog).find(o.class.dialogbutton).off("click").on("click",function(){var t,i=r(n.tinvwl_dialog).find(o.class.select),e=r(n.tinvwl_dialog).find(o.class.newtitle);i.val()||e.val()?o.onActionProduct.call(n,i.val(),e.val()):((t=e.is(":visible")?e:i).addClass("empty-name-wishlist"),window.setTimeout(function(){t.removeClass("empty-name-wishlist")},1e3))})}r(this).off("click").on("click",o.onClick),o.onInited.call(this,o)})},r(document).ready(function(){r("body").on("click",".tinvwl_add_to_wishlist_button",function(t){if(r(this).is(".disabled-add-wishlist"))return t.preventDefault(),void window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);r(this).is(".inited-add-wishlist")||r(this).tinvwl_to_wishlist({onInited:function(t){r(this).addClass("inited-add-wishlist"),t.onClick.call(this)}})}),r(document).on("hide_variation",".variations_form",function(t){var i=r(this).find(".tinvwl_add_to_wishlist_button");i.length&&!tinvwl_add_to_wishlist.allow_parent_variable&&(t.preventDefault(),i.addClass("disabled-add-wishlist"))}),r(document).on("show_variation",".variations_form",function(t,i,e){var n=r(this).find(".tinvwl_add_to_wishlist_button");if(n.length){var o=JSON.parse(n.attr("data-tinv-wl-list")),a=!1,l="1"==window.tinvwl_add_to_wishlist.simple_flow;for(var s in o)o[s].hasOwnProperty("in")&&Array.isArray(o[s].in)&&-1<(o[s].in||[]).indexOf(i.variation_id)&&(a=!0);n.toggleClass("tinvwl-product-in-list",a).toggleClass("tinvwl-product-make-remove",a&&l).attr("data-tinv-wl-action",a&&l?"remove":"addto"),t.preventDefault(),n.removeClass("disabled-add-wishlist")}})})}(jQuery),function(n){n(document).ready(function(){if(n("#tinvwl_manage_actions, #tinvwl_product_actions").addClass("form-control").parent().wrapInner('<div class="tinvwl-input-group tinvwl-no-full">').find("button").wrap('<span class="tinvwl-input-group-btn">'),n(".tinv-lists-nav").each(function(){n.trim(n(this).html()).length||n(this).remove()}),n("body").on("click",".social-buttons .social[title!=email][title!=whatsapp][title!=clipboard]",function(t){var i=window.open(n(this).attr("href"),n(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)}n("body").on("click",".social-buttons .social.social-clipboard",function(t){t.preventDefault()}),n("body").on("click",".tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close",function(t){t.preventDefault(),n(this).parents(".tinv-modal:first").removeClass("tinv-modal-open")}),n("body").on("click",".tinv-wishlist .tinvwl-btn-onclick",function(t){n(this).data("url")&&(t.preventDefault(),window.location=n(this).data("url"))});var e=n(".tinv-wishlist .navigation-button");e.length&&e.each(function(){var t=n(this).find("> li");t.length<5&&t.parent().addClass("tinvwl-btns-count-"+t.length)}),n(".tinv-login .showlogin").unbind("click").on("click",function(t){t.preventDefault(),n(this).closest(".tinv-login").find(".login").toggle()}),n(".tinv-wishlist table.tinvwl-table-manage-list tfoot td").each(function(){n(this).toggle(!!n(this).children().not(".look_in").length||!!n(this).children(".look_in").children().length)})}),n(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){var t=!("0"==n(".wishlist_products_counter_number").html()||""==n(".wishlist_products_counter_number").html());n(".wishlist_products_counter").toggleClass("wishlist-counter-with-products",t)}),update_cart_hash()}(jQuery),function(n){n.fn.tinvwl_break_submit=function(t){var i={selector:"input, select, textarea",ifempty:!0,invert:!1,validate:function(){return n(this).val()},rule:function(){var t=n(this).parents("form").eq(0).find(e.selector),i=e.invert;return 0===t.length?e.ifempty:(t.each(function(){i&&!e.invert||!i&&e.invert||(i=Boolean(e.validate.call(n(this))))}),i)}},e=n.extend(!0,{},i,t);return n(this).each(function(){n(this).on("click",function(t){e.rule.call(n(this))||(alert(window.tinvwl_add_to_wishlist.tinvwl_break_submit),t.preventDefault())})})},n(document).ready(function(){n(".tinvwl-break-input").tinvwl_break_submit({selector:".tinvwl-break-input-filed"}),n(".tinvwl-break-checkbox").tinvwl_break_submit({selector:"table td input[type=checkbox]",validate:function(){return n(this).is(":checked")}}),n(".global-cb").on("click",function(){n(this).closest("table").eq(0).find(".product-cb input[type=checkbox], .wishlist-cb input[type=checkbox]").prop("checked",n(this).is(":checked"))})})}(jQuery);
|
includes/analytics.class.php
CHANGED
@@ -274,7 +274,7 @@ class TInvWL_Analytics {
|
|
274 |
$data['ID'][ $key ] = md5( implode( '|', array(
|
275 |
'wishlist_id' => $wishlist_id,
|
276 |
'product_id' => $id,
|
277 |
-
'variation_id' => $variation_id
|
278 |
) ) );
|
279 |
}
|
280 |
|
274 |
$data['ID'][ $key ] = md5( implode( '|', array(
|
275 |
'wishlist_id' => $wishlist_id,
|
276 |
'product_id' => $id,
|
277 |
+
'variation_id' => $variation_id[ $key ],
|
278 |
) ) );
|
279 |
}
|
280 |
|
includes/api/wishlist.class.php
CHANGED
@@ -241,7 +241,7 @@ class TInvWL_Includes_API_Wishlist {
|
|
241 |
$response[] = $this->prepare_product_data( $product );
|
242 |
}
|
243 |
|
244 |
-
return rest_ensure_response( $response );
|
245 |
}
|
246 |
} catch ( WC_REST_Exception $e ) {
|
247 |
return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
|
241 |
$response[] = $this->prepare_product_data( $product );
|
242 |
}
|
243 |
|
244 |
+
return rest_ensure_response( apply_filters( 'tinvwl_api_wishlist_get_products_response', $response ) );
|
245 |
}
|
246 |
} catch ( WC_REST_Exception $e ) {
|
247 |
return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
|
languages/ti-woocommerce-wishlist.pot
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
# Copyright (C) 2019 TI WooCommerce Wishlist Plugin - 1.
|
2 |
-
# This file is distributed under the same license as the TI WooCommerce Wishlist Plugin - 1.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: TI WooCommerce Wishlist Plugin - 1.
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -32,15 +32,15 @@ msgstr ""
|
|
32 |
msgid "Template Custom CSS"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: admin/basestyle.helper.php:115, admin/settings/general.class.php:
|
36 |
msgid "Save Settings"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: admin/basestyle.helper.php:121, admin/settings/general.class.php:
|
40 |
msgid "Reset"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: admin/basestyle.helper.php:127, admin/settings/general.class.php:
|
44 |
msgid "Save"
|
45 |
msgstr ""
|
46 |
|
@@ -92,11 +92,11 @@ msgstr ""
|
|
92 |
msgid "Remove Product from Wishlist if added to cart"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: admin/settings/general.class.php:159, admin/settings/general.class.php:
|
96 |
msgid "Redirect to the checkout page from Wishlist if added to cart"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: admin/settings/general.class.php:165, admin/settings/general.class.php:
|
100 |
msgid "Remove by anyone"
|
101 |
msgstr ""
|
102 |
|
@@ -128,359 +128,363 @@ msgstr ""
|
|
128 |
msgid "\"Product added to Wishlist\" Text"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: admin/settings/general.class.php:
|
132 |
-
msgid "
|
133 |
msgstr ""
|
134 |
|
135 |
#: admin/settings/general.class.php:220
|
136 |
-
msgid "
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: admin/settings/general.class.php:
|
140 |
-
msgid "
|
141 |
msgstr ""
|
142 |
|
143 |
#: admin/settings/general.class.php:228
|
|
|
|
|
|
|
|
|
144 |
msgid "This notification will be shown once the product is removed from Wishlist on a single or a catalog page."
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: admin/settings/general.class.php:
|
148 |
msgid "Permalinks Settings"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: admin/settings/general.class.php:
|
152 |
msgid "Force permalinks rewrite"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: admin/settings/general.class.php:
|
156 |
msgid "This option should be enabled to avoid any issues with URL rewrites between other plugins and Wishlist"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: admin/settings/general.class.php:
|
160 |
msgid "Wishlist Page Options"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: admin/settings/general.class.php:
|
164 |
msgid "Coming soon"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: admin/settings/general.class.php:
|
168 |
msgid "My Wishlist"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: admin/settings/general.class.php:
|
172 |
msgid "Wishlist Processing Options"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: admin/settings/general.class.php:
|
176 |
msgid "Automatic removal"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: admin/settings/general.class.php:
|
180 |
msgid "Remove condition"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: admin/settings/general.class.php:
|
184 |
msgid "Add to Cart"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: admin/settings/general.class.php:
|
188 |
msgid "Product page \"Add to Wishlist\" Button Settings"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: admin/settings/general.class.php:
|
192 |
msgid "Button position"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: admin/settings/general.class.php:
|
196 |
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."
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: admin/settings/general.class.php:
|
200 |
msgid "After \"Add to Cart\" button"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: admin/settings/general.class.php:
|
204 |
msgid "Before \"Add to Cart\" button"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: admin/settings/general.class.php:
|
208 |
msgid "Custom position with code"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: admin/settings/general.class.php:
|
212 |
msgid "Button custom CSS class"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: admin/settings/general.class.php:
|
216 |
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."
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: admin/settings/general.class.php:
|
220 |
msgid "\"Add to Wishlist\" Icon"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: admin/settings/general.class.php:
|
224 |
msgid "You can choose from our predefined icons or upload your custom icon. Custom icon size is limited to 16x16 px."
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: admin/settings/general.class.php:
|
228 |
msgid "None"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: admin/settings/general.class.php:
|
232 |
msgid "Heart"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: admin/settings/general.class.php:
|
236 |
msgid "Heart+"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: admin/settings/general.class.php:
|
240 |
msgid "Custom"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: admin/settings/general.class.php:
|
244 |
msgid "Upload"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: admin/settings/general.class.php:
|
248 |
msgid "\"Add to Wishlist\" Icon Color"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: admin/settings/general.class.php:
|
252 |
msgid "Use font color"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: admin/settings/general.class.php:
|
256 |
msgid "Black"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: admin/settings/general.class.php:
|
260 |
msgid "White"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: admin/settings/general.class.php:
|
264 |
msgid "Show preloader"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: admin/settings/general.class.php:
|
268 |
msgid "If enabled, applies animation for the button icon until product adding or removing processed. (Usable for servers with slow connection mostly.)"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: admin/settings/general.class.php:
|
272 |
msgid "Show button text"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: admin/settings/general.class.php:
|
276 |
msgid "\"Add to Wishlist\" button Text"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: admin/settings/general.class.php:
|
280 |
msgid "Show \"Already In Wishlist\" button Text"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: admin/settings/general.class.php:
|
284 |
msgid "\"Already In Wishlist\" button Text"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: admin/settings/general.class.php:
|
288 |
msgid "\"Remove from Wishlist\" Button Text"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: admin/settings/general.class.php:
|
292 |
msgid "Product listing Button Settings"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: admin/settings/general.class.php:
|
296 |
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>"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: admin/settings/general.class.php:
|
300 |
msgid "Show in Product Listing"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: admin/settings/general.class.php:
|
304 |
msgid "Above Thumbnail"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: admin/settings/general.class.php:
|
308 |
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>"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: admin/settings/general.class.php:
|
312 |
msgid "\"Add to Wishlist\" Text"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: admin/settings/general.class.php:
|
316 |
msgid "Wishlist Product Settings"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: admin/settings/general.class.php:
|
320 |
msgid "Following options allows you to choose what information/functionality to show/enable in wishlist table on wishlist page."
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: admin/settings/general.class.php:
|
324 |
msgid "Show \"Add to Cart\" button"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: admin/settings/general.class.php:
|
328 |
msgid "\"Add to Cart\" Text"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: admin/settings/general.class.php:
|
332 |
msgid "Show Unit price"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: admin/settings/general.class.php:
|
336 |
msgid "Show Stock status"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: admin/settings/general.class.php:
|
340 |
msgid "Show Date of addition"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: admin/settings/general.class.php:
|
344 |
msgid "Wishlist Table Settings"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: admin/settings/general.class.php:
|
348 |
msgid "Following options will help user to manage and add products to cart from wishlist table in bulk."
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: admin/settings/general.class.php:
|
352 |
msgid "Show Checkboxes"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: admin/settings/general.class.php:
|
356 |
msgid "Show Actions button"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: admin/settings/general.class.php:
|
360 |
msgid "Bulk actions drop down at the bottom of wishlist table"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: admin/settings/general.class.php:
|
364 |
msgid "Show \"Add Selected to Cart\" button"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: admin/settings/general.class.php:
|
368 |
msgid "\"Add Selected to Cart\" Button Text"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: admin/settings/general.class.php:
|
372 |
msgid "Show \"Add All to Cart\" button"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/settings/general.class.php:
|
376 |
msgid "\"Add All to Cart\" Button Text"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: admin/settings/general.class.php:
|
380 |
msgid "Following options enable/disable Social share icons below wishlist table on 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."
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: admin/settings/general.class.php:
|
384 |
msgid "Social Networks Sharing Options"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: admin/settings/general.class.php:
|
388 |
msgid "Show \"Facebook\" Button"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: admin/settings/general.class.php:
|
392 |
msgid "Show \"Twitter\" Button"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: admin/settings/general.class.php:
|
396 |
msgid "Show \"Pinterest\" Button"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: admin/settings/general.class.php:
|
400 |
msgid "Show \"WhatsApp\" Button"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: admin/settings/general.class.php:
|
404 |
msgid "Show \"Copy to clipboard\" Button"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: admin/settings/general.class.php:
|
408 |
msgid "Show \"Share by Email\" Button"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: admin/settings/general.class.php:
|
412 |
msgid "\"Share on\" Text"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: admin/settings/general.class.php:
|
416 |
msgid "Social Icons Color"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: admin/settings/general.class.php:
|
420 |
msgid "Dark"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: admin/settings/general.class.php:
|
424 |
msgid "Wishlist Product Counter"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: admin/settings/general.class.php:
|
428 |
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."
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: admin/settings/general.class.php:
|
432 |
msgid "\"Wishlist\" Counter Icon"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: admin/settings/general.class.php:
|
436 |
msgid "\"Wishlist\" Counter Icon Color"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: admin/settings/general.class.php:
|
440 |
msgid "Show \"Wishlist\" Counter Text"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: admin/settings/general.class.php:
|
444 |
msgid "\"Wishlist\" Counter Text"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: admin/settings/general.class.php:
|
448 |
msgid "Wishlist - "
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: admin/settings/general.class.php:
|
452 |
msgid "Add counter to menu"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: admin/settings/general.class.php:
|
456 |
msgid "You can add a wishlist products counter as item to the selected menu."
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: admin/settings/general.class.php:
|
460 |
msgid "Counter position (Menu item order)"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: admin/settings/general.class.php:
|
464 |
msgid "Allows you to add the wishlist counter as a menu item and apply its position."
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: admin/settings/general.class.php:
|
468 |
msgid "Show number of products in counter"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: admin/settings/general.class.php:
|
472 |
msgid "Hide zero value"
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: admin/settings/general.class.php:
|
476 |
msgid "Do not show the \"0\" value in a counter if wishlist is empty."
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: admin/settings/general.class.php:
|
480 |
msgid "Support chat settings"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: admin/settings/general.class.php:
|
484 |
msgid "Disable support chat"
|
485 |
msgstr ""
|
486 |
|
@@ -1133,15 +1137,15 @@ msgstr ""
|
|
1133 |
msgid "Close"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
-
#: templates/ti-wishlist-empty.php:
|
1137 |
msgid "Your Wishlist is currently empty."
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: templates/ti-wishlist-empty.php:
|
1141 |
msgid "Wishlist is currently empty."
|
1142 |
msgstr ""
|
1143 |
|
1144 |
-
#: templates/ti-wishlist-empty.php:
|
1145 |
msgid "Return To Shop"
|
1146 |
msgstr ""
|
1147 |
|
1 |
+
# Copyright (C) 2019 TI WooCommerce Wishlist Plugin - 1.16.0
|
2 |
+
# This file is distributed under the same license as the TI WooCommerce Wishlist Plugin - 1.16.0 package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: TI WooCommerce Wishlist Plugin - 1.16.0\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
32 |
msgid "Template Custom CSS"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: admin/basestyle.helper.php:115, admin/settings/general.class.php:877
|
36 |
msgid "Save Settings"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: admin/basestyle.helper.php:121, admin/settings/general.class.php:883
|
40 |
msgid "Reset"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: admin/basestyle.helper.php:127, admin/settings/general.class.php:889
|
44 |
msgid "Save"
|
45 |
msgstr ""
|
46 |
|
92 |
msgid "Remove Product from Wishlist if added to cart"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: admin/settings/general.class.php:159, admin/settings/general.class.php:293
|
96 |
msgid "Redirect to the checkout page from Wishlist if added to cart"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: admin/settings/general.class.php:165, admin/settings/general.class.php:300
|
100 |
msgid "Remove by anyone"
|
101 |
msgstr ""
|
102 |
|
128 |
msgid "\"Product added to Wishlist\" Text"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: admin/settings/general.class.php:214, admin/settings/general.class.php:221
|
132 |
+
msgid "You can use next placeholder in this field to get current product name: <code>{product_name}</code>"
|
133 |
msgstr ""
|
134 |
|
135 |
#: admin/settings/general.class.php:220
|
136 |
+
msgid "\"Product already in Wishlist\" Text"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: admin/settings/general.class.php:221
|
140 |
+
msgid "This notification will be shown if user will try to add a product that is already in the wishlist. "
|
141 |
msgstr ""
|
142 |
|
143 |
#: admin/settings/general.class.php:228
|
144 |
+
msgid "\"Product removed from Wishlist\" Text"
|
145 |
+
msgstr ""
|
146 |
+
|
147 |
+
#: admin/settings/general.class.php:229
|
148 |
msgid "This notification will be shown once the product is removed from Wishlist on a single or a catalog page."
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: admin/settings/general.class.php:237
|
152 |
msgid "Permalinks Settings"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: admin/settings/general.class.php:243
|
156 |
msgid "Force permalinks rewrite"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: admin/settings/general.class.php:244
|
160 |
msgid "This option should be enabled to avoid any issues with URL rewrites between other plugins and Wishlist"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: admin/settings/general.class.php:251
|
164 |
msgid "Wishlist Page Options"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: admin/settings/general.class.php:252, admin/settings/general.class.php:269
|
168 |
msgid "Coming soon"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: admin/settings/general.class.php:259, views/wizard/step-page.php:36
|
172 |
msgid "My Wishlist"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: admin/settings/general.class.php:268
|
176 |
msgid "Wishlist Processing Options"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: admin/settings/general.class.php:276
|
180 |
msgid "Automatic removal"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: admin/settings/general.class.php:283
|
184 |
msgid "Remove condition"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: admin/settings/general.class.php:286
|
188 |
msgid "Add to Cart"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: admin/settings/general.class.php:308
|
192 |
msgid "Product page \"Add to Wishlist\" Button Settings"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: admin/settings/general.class.php:314, admin/settings/general.class.php:455, views/wizard/step-button.php:32
|
196 |
msgid "Button position"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: admin/settings/general.class.php:315
|
200 |
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."
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: admin/settings/general.class.php:318, admin/settings/general.class.php:458, includes/wizard.class.php:409
|
204 |
msgid "After \"Add to Cart\" button"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: admin/settings/general.class.php:319, admin/settings/general.class.php:459, includes/wizard.class.php:410
|
208 |
msgid "Before \"Add to Cart\" button"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: admin/settings/general.class.php:320, admin/settings/general.class.php:461, includes/wizard.class.php:411
|
212 |
msgid "Custom position with code"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: admin/settings/general.class.php:326, admin/settings/general.class.php:468
|
216 |
msgid "Button custom CSS class"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: admin/settings/general.class.php:327, admin/settings/general.class.php:469
|
220 |
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."
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: admin/settings/general.class.php:336, admin/settings/general.class.php:478
|
224 |
msgid "\"Add to Wishlist\" Icon"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: admin/settings/general.class.php:337, admin/settings/general.class.php:759
|
228 |
msgid "You can choose from our predefined icons or upload your custom icon. Custom icon size is limited to 16x16 px."
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: admin/settings/general.class.php:340, admin/settings/general.class.php:481, admin/settings/general.class.php:754
|
232 |
msgid "None"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: admin/settings/general.class.php:341, admin/settings/general.class.php:482, admin/settings/general.class.php:755
|
236 |
msgid "Heart"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: admin/settings/general.class.php:342, admin/settings/general.class.php:483, admin/settings/general.class.php:756
|
240 |
msgid "Heart+"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: admin/settings/general.class.php:343, admin/settings/general.class.php:484, admin/settings/general.class.php:757
|
244 |
msgid "Custom"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: admin/settings/general.class.php:360, admin/settings/general.class.php:500, admin/settings/general.class.php:774
|
248 |
msgid "Upload"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: admin/settings/general.class.php:369, admin/settings/general.class.php:509
|
252 |
msgid "\"Add to Wishlist\" Icon Color"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: admin/settings/general.class.php:371, admin/settings/general.class.php:511, admin/settings/general.class.php:734, admin/settings/general.class.php:785
|
256 |
msgid "Use font color"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: admin/settings/general.class.php:372, admin/settings/general.class.php:512, admin/settings/general.class.php:786
|
260 |
msgid "Black"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: admin/settings/general.class.php:373, admin/settings/general.class.php:513, admin/settings/general.class.php:736, admin/settings/general.class.php:787
|
264 |
msgid "White"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: admin/settings/general.class.php:380, admin/settings/general.class.php:520
|
268 |
msgid "Show preloader"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: admin/settings/general.class.php:381, admin/settings/general.class.php:521
|
272 |
msgid "If enabled, applies animation for the button icon until product adding or removing processed. (Usable for servers with slow connection mostly.)"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: admin/settings/general.class.php:387, admin/settings/general.class.php:527
|
276 |
msgid "Show button text"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: admin/settings/general.class.php:402
|
280 |
msgid "\"Add to Wishlist\" button Text"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: admin/settings/general.class.php:408, admin/settings/general.class.php:548
|
284 |
msgid "Show \"Already In Wishlist\" button Text"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: admin/settings/general.class.php:418, admin/settings/general.class.php:558
|
288 |
msgid "\"Already In Wishlist\" button Text"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: admin/settings/general.class.php:425, admin/settings/general.class.php:565
|
292 |
msgid "\"Remove from Wishlist\" Button Text"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: admin/settings/general.class.php:433
|
296 |
msgid "Product listing Button Settings"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: admin/settings/general.class.php:434
|
300 |
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>"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: admin/settings/general.class.php:440
|
304 |
msgid "Show in Product Listing"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: admin/settings/general.class.php:460
|
308 |
msgid "Above Thumbnail"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: admin/settings/general.class.php:463
|
312 |
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>"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: admin/settings/general.class.php:542, views/wizard/step-button.php:41
|
316 |
msgid "\"Add to Wishlist\" Text"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: admin/settings/general.class.php:573
|
320 |
msgid "Wishlist Product Settings"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: admin/settings/general.class.php:574
|
324 |
msgid "Following options allows you to choose what information/functionality to show/enable in wishlist table on wishlist page."
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: admin/settings/general.class.php:580
|
328 |
msgid "Show \"Add to Cart\" button"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: admin/settings/general.class.php:587
|
332 |
msgid "\"Add to Cart\" Text"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: admin/settings/general.class.php:594
|
336 |
msgid "Show Unit price"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: admin/settings/general.class.php:600
|
340 |
msgid "Show Stock status"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: admin/settings/general.class.php:606
|
344 |
msgid "Show Date of addition"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: admin/settings/general.class.php:613
|
348 |
msgid "Wishlist Table Settings"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: admin/settings/general.class.php:614
|
352 |
msgid "Following options will help user to manage and add products to cart from wishlist table in bulk."
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: admin/settings/general.class.php:620
|
356 |
msgid "Show Checkboxes"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: admin/settings/general.class.php:632
|
360 |
msgid "Show Actions button"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: admin/settings/general.class.php:633
|
364 |
msgid "Bulk actions drop down at the bottom of wishlist table"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: admin/settings/general.class.php:639
|
368 |
msgid "Show \"Add Selected to Cart\" button"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: admin/settings/general.class.php:646
|
372 |
msgid "\"Add Selected to Cart\" Button Text"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: admin/settings/general.class.php:657
|
376 |
msgid "Show \"Add All to Cart\" button"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: admin/settings/general.class.php:664
|
380 |
msgid "\"Add All to Cart\" Button Text"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: admin/settings/general.class.php:677
|
384 |
msgid "Following options enable/disable Social share icons below wishlist table on 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."
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: admin/settings/general.class.php:683
|
388 |
msgid "Social Networks Sharing Options"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: admin/settings/general.class.php:689, views/wizard/step-social.php:26
|
392 |
msgid "Show \"Facebook\" Button"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: admin/settings/general.class.php:695, views/wizard/step-social.php:35
|
396 |
msgid "Show \"Twitter\" Button"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: admin/settings/general.class.php:701, views/wizard/step-social.php:44
|
400 |
msgid "Show \"Pinterest\" Button"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: admin/settings/general.class.php:707, views/wizard/step-social.php:53
|
404 |
msgid "Show \"WhatsApp\" Button"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: admin/settings/general.class.php:713
|
408 |
msgid "Show \"Copy to clipboard\" Button"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: admin/settings/general.class.php:719, views/wizard/step-social.php:71
|
412 |
msgid "Show \"Share by Email\" Button"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: admin/settings/general.class.php:725
|
416 |
msgid "\"Share on\" Text"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: admin/settings/general.class.php:731
|
420 |
msgid "Social Icons Color"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: admin/settings/general.class.php:735
|
424 |
msgid "Dark"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: admin/settings/general.class.php:744
|
428 |
msgid "Wishlist Product Counter"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: admin/settings/general.class.php:745
|
432 |
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."
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: admin/settings/general.class.php:751
|
436 |
msgid "\"Wishlist\" Counter Icon"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: admin/settings/general.class.php:783
|
440 |
msgid "\"Wishlist\" Counter Icon Color"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: admin/settings/general.class.php:794
|
444 |
msgid "Show \"Wishlist\" Counter Text"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: admin/settings/general.class.php:803
|
448 |
msgid "\"Wishlist\" Counter Text"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: admin/settings/general.class.php:804
|
452 |
msgid "Wishlist - "
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: admin/settings/general.class.php:810
|
456 |
msgid "Add counter to menu"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: admin/settings/general.class.php:812
|
460 |
msgid "You can add a wishlist products counter as item to the selected menu."
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: admin/settings/general.class.php:821
|
464 |
msgid "Counter position (Menu item order)"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: admin/settings/general.class.php:822
|
468 |
msgid "Allows you to add the wishlist counter as a menu item and apply its position."
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: admin/settings/general.class.php:833
|
472 |
msgid "Show number of products in counter"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: admin/settings/general.class.php:842
|
476 |
msgid "Hide zero value"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: admin/settings/general.class.php:843
|
480 |
msgid "Do not show the \"0\" value in a counter if wishlist is empty."
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: admin/settings/general.class.php:854
|
484 |
msgid "Support chat settings"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: admin/settings/general.class.php:861
|
488 |
msgid "Disable support chat"
|
489 |
msgstr ""
|
490 |
|
1137 |
msgid "Close"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: templates/ti-wishlist-empty.php:21
|
1141 |
msgid "Your Wishlist is currently empty."
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: templates/ti-wishlist-empty.php:23
|
1145 |
msgid "Wishlist is currently empty."
|
1146 |
msgstr ""
|
1147 |
|
1148 |
+
#: templates/ti-wishlist-empty.php:31, templates/ti-wishlist-null.php:21
|
1149 |
msgid "Return To Shop"
|
1150 |
msgstr ""
|
1151 |
|
public/addtowishlist.class.php
CHANGED
@@ -323,7 +323,19 @@ class TInvWL_Public_AddToWishlist {
|
|
323 |
$data['icon'] = $data['status'] ? 'icon_big_heart_check' : 'icon_big_times';
|
324 |
$data['msg'] = array_unique( $data['msg'] );
|
325 |
$data['msg'] = implode( '<br>', $data['msg'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
if ( ! empty( $data['msg'] ) ) {
|
|
|
327 |
$data['msg'] = apply_filters( 'tinvwl_addtowishlist_message_after', $data['msg'], $data, $post, $form, $product );
|
328 |
$data['msg'] = tinv_wishlist_template_html( 'ti-addedtowishlist-dialogbox.php', apply_filters( 'tinvwl_addtowishlist_dialog_box', $data, $post ) );
|
329 |
}
|
@@ -511,7 +523,7 @@ class TInvWL_Public_AddToWishlist {
|
|
511 |
$product_data = wc_get_product( $variation_id ? $variation_id : $product_id );
|
512 |
|
513 |
if ( $product_data && 'trash' !== ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product_data->post->post_status : get_post( $product_data->get_id() )->post_status ) ) {
|
514 |
-
$this->product = $product_data;
|
515 |
} else {
|
516 |
return '';
|
517 |
}
|
@@ -524,7 +536,7 @@ class TInvWL_Public_AddToWishlist {
|
|
524 |
|
525 |
add_action( 'tinvwl_wishlist_addtowishlist_button', array( $this, 'button' ) );
|
526 |
|
527 |
-
if ( $this->is_loop && in_array( ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product->product_type : $product->get_type() ), array(
|
528 |
'variable',
|
529 |
'variable-subscription',
|
530 |
) ) ) {
|
323 |
$data['icon'] = $data['status'] ? 'icon_big_heart_check' : 'icon_big_times';
|
324 |
$data['msg'] = array_unique( $data['msg'] );
|
325 |
$data['msg'] = implode( '<br>', $data['msg'] );
|
326 |
+
|
327 |
+
$msg_placeholders = array(
|
328 |
+
'{product_name}' => is_callable( array(
|
329 |
+
$product,
|
330 |
+
'get_name'
|
331 |
+
) ) ? $product->get_name() : $product->get_title(),
|
332 |
+
);
|
333 |
+
|
334 |
+
$find = array_keys( $msg_placeholders );
|
335 |
+
$replace = array_values( $msg_placeholders );
|
336 |
+
|
337 |
if ( ! empty( $data['msg'] ) ) {
|
338 |
+
$data['msg'] = str_replace( $find, $replace, $data['msg'] );
|
339 |
$data['msg'] = apply_filters( 'tinvwl_addtowishlist_message_after', $data['msg'], $data, $post, $form, $product );
|
340 |
$data['msg'] = tinv_wishlist_template_html( 'ti-addedtowishlist-dialogbox.php', apply_filters( 'tinvwl_addtowishlist_dialog_box', $data, $post ) );
|
341 |
}
|
523 |
$product_data = wc_get_product( $variation_id ? $variation_id : $product_id );
|
524 |
|
525 |
if ( $product_data && 'trash' !== ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $product_data->post->post_status : get_post( $product_data->get_id() )->post_status ) ) {
|
526 |
+
$this->product = apply_filters( 'tinvwl_addtowishlist_out_prepare_product', $product_data );
|
527 |
} else {
|
528 |
return '';
|
529 |
}
|
536 |
|
537 |
add_action( 'tinvwl_wishlist_addtowishlist_button', array( $this, 'button' ) );
|
538 |
|
539 |
+
if ( $this->is_loop && in_array( ( version_compare( WC_VERSION, '3.0.0', '<' ) ? $this->product->product_type : $this->product->get_type() ), array(
|
540 |
'variable',
|
541 |
'variable-subscription',
|
542 |
) ) ) {
|
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: 5.3
|
6 |
-
Stable tag: 1.
|
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/
|
@@ -164,6 +164,16 @@ Yes you can! Join in on our [GitHub repository](https://github.com/TemplateInvad
|
|
164 |
|
165 |
|
166 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
= 1.15.4 =
|
168 |
*Release Date - 16 December 2019*
|
169 |
|
3 |
Tags: woocommerce, wishlist, woocommerce wishlist, e-commerce, ecommerce
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 1.16.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/
|
164 |
|
165 |
|
166 |
== Changelog ==
|
167 |
+
= 1.16.0 =
|
168 |
+
*Release Date - 30 December 2019*
|
169 |
+
|
170 |
+
* WooCommerce 3.9.0 support
|
171 |
+
* PHP 7.4 support
|
172 |
+
* Added {product_name} placeholder support for options of add to wishlist notice text
|
173 |
+
* Added filter `tinvwl_api_wishlist_get_products_response` to allow modify REST API response via 3rd party code
|
174 |
+
* Fixed fatal error throws by add to wishlist shortcode
|
175 |
+
* Fixed wishlist frontend issue when WooCommerce session don't exists
|
176 |
+
|
177 |
= 1.15.4 =
|
178 |
*Release Date - 16 December 2019*
|
179 |
|
templates/ti-wishlist-empty.php
CHANGED
@@ -1,30 +1,33 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* The Template for displaying empty wishlist.
|
4 |
-
*
|
5 |
-
* @version 1.
|
6 |
-
* @package TInvWishlist\Template
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
-
exit; // Exit if accessed directly.
|
11 |
-
}
|
12 |
-
|
13 |
-
?>
|
14 |
-
<div class="tinv-wishlist woocommerce">
|
15 |
-
<?php do_action( 'tinvwl_before_wishlist', $wishlist ); ?>
|
16 |
-
<?php if ( function_exists( 'wc_print_notices' )
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
<?php
|
21 |
-
<?php esc_html_e( 'Wishlist is currently empty.', 'ti-woocommerce-wishlist' ); ?>
|
22 |
-
<?php } ?>
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Template for displaying empty wishlist.
|
4 |
+
*
|
5 |
+
* @version 1.15.5
|
6 |
+
* @package TInvWishlist\Template
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly.
|
11 |
+
}
|
12 |
+
|
13 |
+
?>
|
14 |
+
<div class="tinv-wishlist woocommerce">
|
15 |
+
<?php do_action( 'tinvwl_before_wishlist', $wishlist ); ?>
|
16 |
+
<?php if ( function_exists( 'wc_print_notices' ) && isset( WC()->session ) ) {
|
17 |
+
wc_print_notices();
|
18 |
+
} ?>
|
19 |
+
<p class="cart-empty">
|
20 |
+
<?php if ( get_current_user_id() === $wishlist['author'] ) { ?>
|
21 |
+
<?php esc_html_e( 'Your Wishlist is currently empty.', 'ti-woocommerce-wishlist' ); ?>
|
22 |
+
<?php } else { ?>
|
23 |
+
<?php esc_html_e( 'Wishlist is currently empty.', 'ti-woocommerce-wishlist' ); ?>
|
24 |
+
<?php } ?>
|
25 |
+
</p>
|
26 |
+
|
27 |
+
<?php do_action( 'tinvwl_wishlist_is_empty' ); ?>
|
28 |
+
|
29 |
+
<p class="return-to-shop">
|
30 |
+
<a class="button wc-backward"
|
31 |
+
href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"><?php esc_html_e( 'Return To Shop', 'ti-woocommerce-wishlist' ); ?></a>
|
32 |
+
</p>
|
33 |
+
</div>
|
templates/ti-wishlist-user.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* The Template for displaying wishlist if a current user not an owner.
|
4 |
*
|
5 |
-
* @version 1.
|
6 |
* @package TInvWishlist\Template
|
7 |
*/
|
8 |
|
@@ -13,7 +13,7 @@ wp_enqueue_script( 'tinvwl' );
|
|
13 |
?>
|
14 |
<div class="tinv-wishlist woocommerce tinv-wishlist-clear">
|
15 |
<?php do_action( 'tinvwl_before_wishlist', $wishlist ); ?>
|
16 |
-
<?php if ( function_exists( 'wc_print_notices' ) ) {
|
17 |
wc_print_notices();
|
18 |
} ?>
|
19 |
<?php
|
2 |
/**
|
3 |
* The Template for displaying wishlist if a current user not an owner.
|
4 |
*
|
5 |
+
* @version 1.15.5
|
6 |
* @package TInvWishlist\Template
|
7 |
*/
|
8 |
|
13 |
?>
|
14 |
<div class="tinv-wishlist woocommerce tinv-wishlist-clear">
|
15 |
<?php do_action( 'tinvwl_before_wishlist', $wishlist ); ?>
|
16 |
+
<?php if ( function_exists( 'wc_print_notices' ) && isset( WC()->session ) ) {
|
17 |
wc_print_notices();
|
18 |
} ?>
|
19 |
<?php
|
templates/ti-wishlist.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* The Template for displaying wishlist if a current user is owner.
|
4 |
*
|
5 |
-
* @version 1.
|
6 |
* @package TInvWishlist\Template
|
7 |
*/
|
8 |
|
@@ -13,7 +13,7 @@ wp_enqueue_script( 'tinvwl' );
|
|
13 |
?>
|
14 |
<div class="tinv-wishlist woocommerce tinv-wishlist-clear">
|
15 |
<?php do_action( 'tinvwl_before_wishlist', $wishlist ); ?>
|
16 |
-
<?php if ( function_exists( 'wc_print_notices' ) ) {
|
17 |
wc_print_notices();
|
18 |
} ?>
|
19 |
<?php
|
2 |
/**
|
3 |
* The Template for displaying wishlist if a current user is owner.
|
4 |
*
|
5 |
+
* @version 1.15.5
|
6 |
* @package TInvWishlist\Template
|
7 |
*/
|
8 |
|
13 |
?>
|
14 |
<div class="tinv-wishlist woocommerce tinv-wishlist-clear">
|
15 |
<?php do_action( 'tinvwl_before_wishlist', $wishlist ); ?>
|
16 |
+
<?php if ( function_exists( 'wc_print_notices' ) && isset( WC()->session ) ) {
|
17 |
wc_print_notices();
|
18 |
} ?>
|
19 |
<?php
|
ti-woocommerce-wishlist.php
CHANGED
@@ -4,11 +4,11 @@
|
|
4 |
* Plugin Name: TI WooCommerce Wishlist Plugin
|
5 |
* Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
-
* Version: 1.
|
8 |
* Requires at least: 4.7
|
9 |
* Tested up to: 5.3
|
10 |
* WC requires at least: 2.6
|
11 |
-
* WC tested up to: 3.
|
12 |
* Author: TemplateInvaders
|
13 |
* Author URI: https://templateinvaders.com/
|
14 |
* License: GPL-2.0+
|
@@ -41,7 +41,7 @@ if ( ! defined( 'TINVWL_DOMAIN' ) ) {
|
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
44 |
-
define( 'TINVWL_FVERSION', '1.
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
4 |
* Plugin Name: TI WooCommerce Wishlist Plugin
|
5 |
* Plugin URI: https://wordpress.org/plugins/ti-woocommerce-wishlist/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
+
* Version: 1.16.0
|
8 |
* Requires at least: 4.7
|
9 |
* Tested up to: 5.3
|
10 |
* WC requires at least: 2.6
|
11 |
+
* WC tested up to: 3.9.0
|
12 |
* Author: TemplateInvaders
|
13 |
* Author URI: https://templateinvaders.com/
|
14 |
* License: GPL-2.0+
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
44 |
+
define( 'TINVWL_FVERSION', '1.16.0' );
|
45 |
}
|
46 |
|
47 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|