YITH WooCommerce Wishlist - Version 2.0.13

Version Description

  • Added check over adding_to_cart event data existance in js procedures
  • Added 'yith_wcwl_added_to_cart_message' filter, to customize added to cart message in wishlist page
  • Added nofollow to "Add to Wishlist" links, where missing
  • Added 'yith_wcwl_email_share_subject' filter to customize share by email subject
  • Added 'yith_wcwl_email_share_body' filter to customize share by email body
  • Added function "yith_wcwl_count_all_products"
  • Fixed plugin-fw loading
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Wishlist
Version 2.0.13
Comparing to
See all releases

Code changes from version 2.0.12 to 2.0.13

Files changed (87) hide show
  1. README.txt +361 -348
  2. assets/css/admin.css +62 -62
  3. assets/css/style.css +587 -587
  4. assets/js/admin/yith-wcwl.js +4 -4
  5. assets/js/jquery.yith-wcwl.js +19 -19
  6. assets/js/unminified/admin/yith-wcwl.js +72 -72
  7. assets/js/unminified/jquery.yith-wcwl.js +603 -603
  8. includes/class.yith-wcwl-admin-init.php +1494 -1511
  9. includes/class.yith-wcwl-init.php +498 -479
  10. includes/class.yith-wcwl-install.php +260 -260
  11. includes/class.yith-wcwl-shortcode.php +373 -373
  12. includes/class.yith-wcwl-ui.php +223 -223
  13. includes/class.yith-wcwl.php +1457 -1457
  14. includes/functions.yith-wcwl.php +12 -0
  15. init.php +148 -146
  16. languages/yith-woocommerce-wishlist-de_DE.mo +0 -0
  17. languages/yith-woocommerce-wishlist-de_DE.po +139 -131
  18. languages/yith-woocommerce-wishlist-es_AR.mo +0 -0
  19. languages/yith-woocommerce-wishlist-es_AR.po +139 -131
  20. languages/yith-woocommerce-wishlist-es_ES.mo +0 -0
  21. languages/yith-woocommerce-wishlist-es_ES.po +142 -134
  22. languages/yith-woocommerce-wishlist-es_MX.mo +0 -0
  23. languages/yith-woocommerce-wishlist-es_MX.po +139 -131
  24. languages/yith-woocommerce-wishlist-fa_IR.mo +0 -0
  25. languages/yith-woocommerce-wishlist-fa_IR.po +142 -134
  26. languages/yith-woocommerce-wishlist-fr_FR.mo +0 -0
  27. languages/yith-woocommerce-wishlist-fr_FR.po +139 -131
  28. languages/yith-woocommerce-wishlist-he_IL.mo +0 -0
  29. languages/yith-woocommerce-wishlist-he_IL.po +139 -131
  30. languages/yith-woocommerce-wishlist-it_IT.mo +0 -0
  31. languages/yith-woocommerce-wishlist-it_IT.po +142 -134
  32. languages/yith-woocommerce-wishlist-pl_PL.mo +0 -0
  33. languages/yith-woocommerce-wishlist-pl_PL.po +141 -133
  34. languages/yith-woocommerce-wishlist-pt_BR.mo +0 -0
  35. languages/yith-woocommerce-wishlist-pt_BR.po +139 -131
  36. languages/yith-woocommerce-wishlist-pt_PT.mo +0 -0
  37. languages/yith-woocommerce-wishlist-pt_PT.po +139 -131
  38. languages/yith-woocommerce-wishlist-ru_RU.mo +0 -0
  39. languages/yith-woocommerce-wishlist-ru_RU.po +139 -131
  40. languages/yith-woocommerce-wishlist-sv_SE.mo +0 -0
  41. languages/yith-woocommerce-wishlist-sv_SE.po +142 -134
  42. languages/yith-woocommerce-wishlist-tr_TR.mo +0 -0
  43. languages/yith-woocommerce-wishlist-tr_TR.po +139 -131
  44. languages/yith-woocommerce-wishlist-uk_UA.mo +0 -0
  45. languages/yith-woocommerce-wishlist-uk_UA.po +139 -131
  46. languages/yith-woocommerce-wishlist-zh_CN.mo +0 -0
  47. languages/yith-woocommerce-wishlist-zh_CN.po +139 -131
  48. languages/yith-woocommerce-wishlist-zh_TW.mo +0 -0
  49. languages/yith-woocommerce-wishlist-zh_TW.po +139 -131
  50. languages/yith-woocommerce-wishlist.pot +138 -130
  51. plugin-fw/assets/css/metaboxes.css +21 -0
  52. plugin-fw/assets/css/yit-plugin-panel.css +11 -0
  53. plugin-fw/assets/js/yit-plugin-panel.js +10 -0
  54. plugin-fw/assets/js/yit-plugin-panel.min.js +10 -1
  55. plugin-fw/init.php +13 -15
  56. plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
  57. plugin-fw/languages/yith-plugin-fw-it_IT.po +223 -133
  58. plugin-fw/languages/yith-plugin-fw.pot +148 -108
  59. plugin-fw/lib/yit-plugin-panel-wc.php +8 -3
  60. plugin-fw/lib/yit-plugin-panel.php +23 -14
  61. plugin-fw/lib/yit-plugin-subpanel.php +12 -9
  62. plugin-fw/lib/yit-upgrade.php +9 -25
  63. plugin-fw/licence/assets/css/yit-licence.css +112 -23
  64. plugin-fw/licence/assets/js/yit-licence.js +82 -25
  65. plugin-fw/licence/lib/yit-licence.php +201 -54
  66. plugin-fw/licence/lib/yit-plugin-licence.php +17 -15
  67. plugin-fw/licence/lib/yit-theme-licence.php +61 -24
  68. plugin-fw/licence/templates/panel/activation/activation-panel.php +127 -54
  69. plugin-fw/templates/metaboxes/types/number.php +14 -1
  70. plugin-fw/templates/panel/types/upload.php +2 -1
  71. plugin-fw/yit-functions.php +261 -236
  72. plugin-options/colors-options.php +25 -25
  73. plugin-options/premium-options.php +20 -20
  74. plugin-options/settings-options.php +21 -21
  75. templates/add-to-wishlist-button.php +16 -16
  76. templates/add-to-wishlist.php +45 -45
  77. templates/admin/wishlist-panel-premium.php +389 -389
  78. templates/share.php +43 -43
  79. templates/wishlist-view.php +331 -331
  80. templates/wishlist.php +14 -14
  81. uninstall.php +28 -28
  82. wpml-config.xml +18 -18
  83. yit-common/assets/css/yith-panel.css +77 -77
  84. yit-common/assets/js/yith-panel.js +302 -302
  85. yit-common/google_fonts.php +67 -67
  86. yit-common/yit-functions.php +232 -232
  87. yit-common/yith-panel.php +508 -508
README.txt CHANGED
@@ -1,348 +1,361 @@
1
- === YITH WooCommerce Wishlist ===
2
-
3
- Contributors: yithemes
4
- Tags: wishlist, woocommerce, products, themes, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, woocommerce 2.3 ready, shop wishlist
5
- Requires at least: 4.0
6
- Tested up to: 4.3.1
7
- Stable tag: 2.0.12
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- YITH WooCommerce Wishlist add all Wishlist features to your website. Needs WooCommerce to work.
12
- WooCommerce 2.4.x compatible.
13
-
14
-
15
- == Description ==
16
-
17
- What can really make the difference in conversions and amount of sales is without a doubt the freedom to share your own wishlist, even on social networks, increasing indirect sales: can you imagine the sales volume you can generate during holidays or birthdays, when relatives and friends will be looking for the wishlist of your clients to buy a gift?
18
-
19
- Offer to your visitors a chance to add the products of your woocommerce store to a wishlist page. With YITH WooCommerce Wishlist you can add a link in each product detail page,
20
- in order to add the products to the wishlist page. The plugin will create you the specific page and the products will be added in this page and
21
- afterwards add them to the cart or remove them.
22
-
23
- Working demo are available:
24
-
25
- **[LIVE DEMO 1](http://preview.yithemes.com/room09/product/africa-style/)** - **[LIVE DEMO 2](http://preview.yithemes.com/bazar/shop/ankle-shoes/)**
26
-
27
- Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woocommerce-wishlist).
28
-
29
- This plugin is 100% compatible with [WPML](http://wpml.org/?aid=24889&affiliate_key=Qn1wDeBNTcZV)
30
-
31
- = Available Languages =
32
-
33
- **NOTE: The translation process of this plugin has been changed by WordPress. Please, read the correlated FAQ to be updated about the news changes.**
34
-
35
- * Chinese - CHINA
36
- * Chinese - TAIWAN
37
- * English - UNITED KINGDOM (Default)
38
- * French - FRANCE
39
- * German - GERMANY
40
- * Hebrew - ISRAEL
41
- * Italian - ITALY
42
- * Persian - IRAN, ISLAMIC REPUBLIC OF
43
- * Polish - POLAND
44
- * Portuguese - BRAZIL
45
- * Portuguese - PORTUGAL
46
- * Russian - RUSSIAN FEDERATION
47
- * Spanish - ARGENTINA
48
- * Spanish - SPAIN
49
- * Spanish - MEXICO
50
- * Swedish - SWEDEN
51
- * Turkish - TURKEY
52
- * Ukrainian - UKRAINE
53
-
54
- == Installation ==
55
-
56
- 1. Unzip the downloaded zip file.
57
- 2. Upload the plugin folder into the `wp-content/plugins/` directory of your WordPress site.
58
- 3. Activate `YITH WooCommerce Wishlist` from Plugins page
59
-
60
- YITH WooCommerce Wishlist will add a new submenu called "Wishlist" under "YIT Plugins" menu. Here you are able to configure all the plugin settings.
61
-
62
- == Frequently Asked Questions ==
63
-
64
- = Can I customize the wishlist page? =
65
- Yes, the page is a simple template and you can override it by putting the file template "wishlist.php" inside the "woocommerce" folder of the theme folder.
66
-
67
- = Can I move the position of "Add to wishlist" button? =
68
- Yes, you can move the button to another default position or you can also use the shortcode inside your theme code.
69
-
70
- = Can I change the style of "Add to wishlist" button? =
71
- Yes, you can change the colors of background, text and border or apply a custom css. You can also use a link or a button for the "Add to wishlist" feature.
72
-
73
- = Wishlist page returns a 404 error? =
74
- Try to regenerate permalinks from Settings -> Permalinks by simply saving them again.
75
-
76
- = Did icons of your theme disappear after update to Wishlist 2.0.x? =
77
- It might be a compatibility problem with the old version of font-awesome, which has been solved with version 2.0.2 of the plugin. Be sure that you are using a plugin version that is greater or equal to 2.0.2. If, after update, you cannot see icons in your theme yet, save again options of YITH WooCommerce Wishlist plugin (that you can find in YIT Plugin -> Wishlist).
78
-
79
- = Have you encountered anomalies after plugin update, that did not exist in the previous version? =
80
- This might depend on the fact that your theme overrides plugin templates. Check if the developer of your theme has released a compatibility update with version 2.0 or later of YITH WooCommerce Wishlist. As an alternative you can try the plugin in WordPress default theme to leave out any possible influences by the theme.
81
-
82
- = I am currently using Wishlist plugin with Catalog Mode enabled in my site. Prices for products should disappear, yet they still appear in the wishlist page. Can I remove them? =
83
- Yes, of course you can. To avoid Wishlist page to show product prices, you can hide price column from wishlist table. Go to YIT plugins -> wishlist -> settings and disable option "Show Unit price".
84
-
85
- = What are the main changes in plugin translation? =
86
- Recently YITH WooCommerce Wishlist has been selected to be included in the "translate.wordpress.org" translate programme.
87
- In order to import correctly the plugin strings in the new system, we had to change the text domain from 'yit' to 'yith-woocommerce-wishlist'.
88
- Once the plugin is imported into the translate.wordpress.org system, the translations of other languages will be downloadable directly from WordPress, without using any .po and .mo files. Moreover, users will be able to participate in a more direct way to plugin translations, suggesting texts in their languages in the dedicated tab on translate.wordpress.org.
89
- During this transition step, .po and .mo files will be used as usual, but in order to be recognized by WordPress, they must have a new nomenclature and be renamed as:
90
- yith-woocommerce-wishlist-<WORDPRESS LOCALE>.po
91
- yith-woocommerce-wishlist-<WORDPRESS LOCALE>.mo
92
- If your theme overrides plugin templates, it might happen that they are still using the old textdomain ('yit'), which is no longer used as reference for translation.
93
- If you are experiencing problems with translation of your YITH WooCommerce Wishlist and the theme you are using includes wishlist templates (such as add-to-wishlist.php,
94
- add-to-wishlist-button.php, wishlist-view,php), you could try to update them with the most recent version included in the plugin
95
- (never forget to make a copy of your project before you apply any change).
96
- If you want to keep customisations applied by the theme to wishlist templates (still using the old textdomain), then,
97
- you should ask theme developers to update custom templates and replace the old textdomain with the most recent one.
98
-
99
- == Screenshots ==
100
-
101
- 1. The page with "Add to wishlist" button
102
- 2. The wishlist page
103
- 3. The Wishlist settings page
104
- 4. The Wishlist settings page
105
-
106
- == Changelog ==
107
-
108
- = 2.0.12 =
109
-
110
- * Added: method to count all products in wishlist
111
- * Tweak: Added wishlist js handling on 'yith_wcwl_init' triggered on document
112
- * Tweak: Performance improved with new plugin core 2.0
113
- * Fixed: occasional fatal error for users with outdated version of plugin-fw on their theme
114
-
115
- = 2.0.11 =
116
-
117
- * Added: spanish translation (thanks to Arman S.)
118
- * Added: polish translation (thanks to Roan)
119
- * Added: swedish translation (thanks to Lallex)
120
- * Updated: changed text domain from yit to yith-woocommerce-wishlist
121
- * Updated: changed all language file for the new text domain
122
-
123
- = 2.0.10 =
124
-
125
- * Added: Compatibility with WC 2.4.2
126
- * Tweak: added nonce field to wishlist-view form
127
- * Tweak: added yith_wcwl_custom_add_to_cart_text and yith_wcwl_ask_an_estimate_text filters
128
- * Tweak: added check for presence of required function in wishlist script
129
- * Fixed: admin colorpicker field (for WC 2.4.x compatibility)
130
-
131
- = 2.0.9 =
132
-
133
- * Added: russian translation
134
- * Added: WooCommerce class to wishlist view form
135
- * Added: spinner to plugin assets
136
- * Added: check on "user_logged_in" for sub-templates in wishlist-view
137
- * Added: WordPress 4.2.3 compatibility
138
- * Added: WPML 3.2.2 compatibility (removed deprecated function)
139
- * Added: new check on is_product_in_wishlist (for unlogged users/default wishlist)
140
- * Tweak: escaped urls on share template
141
- * Tweak: removed new line between html attributes, to improve themes compatibility
142
- * Fixed: WPML 3.2.2 compatibility (fix suggested by Konrad)
143
- * Fixed: regex used to find class attr in "Add to Cart" button
144
- * Fixed: usage of product_id for add_to_wishlist shortcode, when global $product is not defined
145
- * Fixed: icon attribute for yith_wcwl_add_to_wishlist shortcode
146
-
147
- = 2.0.8 =
148
-
149
- * Added: support WP 4.2.2
150
- * Added: Persian translation
151
- * Added: check on cookie content
152
- * Added: Frequently Bought Together integration
153
- * Tweak: moved cookie update before first cookie usage
154
- * Updated: Italian translation
155
- * Removed: login_redirect_url variable
156
-
157
- = 2.0.7 =
158
-
159
- * Added: WP 4.2.1 support
160
- * Added: WC 2.3.8 support
161
- * Added: "Added to cart" message in wishlist page
162
- * Added: Portuguese translation
163
- * Updated: revision of all templates
164
- * Fixed: vulnerability for unserialize of cookie content (Warning: in this way all the old serialized plugins will be deleted and all the wishlists of the non-logged users will be lost)
165
- * Fixed: Escaped add_query_arg() and remove_query_arg()
166
- * Removed: use of pretty permalinks if WPML enabled
167
-
168
- = 2.0.6 =
169
-
170
- * Added: system to overwrite wishlist js
171
- * Added: trailingslashit() to wishlist permalink
172
- * Added: chinese translation
173
- * Added: "show_empty" filter to get_wishlists() method
174
- * Fixed: count wishlist items
175
- * Fixed: problem with price inclusive of tax
176
- * Fixed: remove from wishlist for not logged user
177
- * Fixed: twitter share summary
178
-
179
- = 2.0.5 =
180
-
181
- * Added: icl_object_id to wishlist page id, to translate pages
182
- * Tweak: updated rewrite rules, to include child pages as wishlist pages
183
- * Tweak: moved WC notices from wishlist template to yith_wcwl_before_wishlist_title hook
184
- * Tweak: added wishlist table id to .load(), to update only that part of template
185
- * Fixed: yith_wcwl_locate_template causing 500 Internal Server Error
186
-
187
- = 2.0.4 =
188
-
189
- * Added: Options for browse wishlist/already in wishlist/product added strings
190
- * Added: rel nofollow to add to wishlist button
191
- * Tweak: moved wishlist response popup handling to separate js file
192
- * Updated: WPML xml configuration
193
- * Updated: string revision
194
-
195
- = 2.0.3 =
196
-
197
- * Tweak: set correct protocol for admin-ajax requests
198
- * Tweak: used wc core function to set cookie
199
- * Tweak: let customization of add_to_wishlist shortcodes
200
- * Fixed: show add to cart column when stock status disabled
201
- * Fixed: product existing in wishlist
202
-
203
- = 2.0.2 =
204
-
205
- * Updated: font-awesome library
206
- * Fixed: option with old font-awesome classes
207
-
208
- = 2.0.1 =
209
-
210
- * Added: spinner image on loading
211
- * Added: flush rewrite rules on database upgrade
212
- * Fixed: wc_add_to_cart_params not defined issue
213
-
214
- = 2.0.0 =
215
-
216
- * Added: Support to woocommerce 2.3
217
- * Added: New color options
218
- * Tweak: Add to cart button from woocommerce template
219
- * Tweak: Share links on template
220
- * Tweak: Code revision
221
- * Tweak: Use wordpress API in ajax call instead of custom script
222
- * Updated: Plugin core framework
223
-
224
-
225
- = 1.1.7 =
226
-
227
- * Added: Support to WooCommerce Endpoints (@use yit_wcwl_add_to_cart_redirect_url filter)
228
- * Added: Filter to shortcode html
229
- * Added: Title to share
230
-
231
- = 1.1.6 =
232
-
233
- * Updated: Plugin Core Framework
234
- * Updated: Languages file
235
- * Tweek: WPML Support Improved
236
-
237
- = 1.1.5 =
238
-
239
- * Added: Share wishlist by email
240
-
241
- = 1.1.4 =
242
-
243
- * Fixed: wrong string for inline js on remove link
244
- * Fixed: wrong string for inline js on add to cart link
245
-
246
- = 1.1.3 =
247
-
248
- * Added: Options Tabs Filter
249
- * Fixed: Various Bugs
250
-
251
- = 1.1.2 =
252
-
253
- * Fixed: Warnings when Show Stock Status is disabled
254
- * Fixed: Restored page options on WooCommerce 2.1.x
255
-
256
- = 1.1.1 =
257
-
258
- * Fixed: Inability to unistall plugin
259
- * Fixed: Redirect to cart page from wishlist page
260
-
261
- = 1.1.0 =
262
-
263
- * Added: Support to WooCommerce 2.1.x
264
- * Added: Spanish (Mexico) translation by Gabriel Dzul
265
- * Added: French translation by Virginie Garcin
266
- * Fixed: Revision Italian Language po/mo files
267
-
268
- = 1.0.6 =
269
-
270
- * Added: Spanish (Argentina) partial translation by Sebastian Jeremias
271
- * Added: Portuguese (Brazil) translation by Lincoln Lemos
272
- * Fixed: Share buttons show also when not logged in
273
- * Fixed: Price shows including or excluding tax based on WooCommerce settings
274
- * Fixed: Better compatibility for WPML
275
- * Fixed: Price shows "Free!" if the product is without price
276
- * Fixed: DB Table creation on plugin activation
277
-
278
- = 1.0.5 =
279
-
280
- * Added: Shared wishlists can be seens also by not logged in users
281
- * Added: Support for WPML String translation
282
- * Updated: German translation by Stephanie Schlieske
283
- * Fixed: Add to cart button does not appear if the product is out of stock
284
-
285
- = 1.0.4 =
286
-
287
- * Added: partial Ukrainian translation
288
- * Added: complete German translation. Thanks to Stephanie Schliesk
289
- * Added: options to show/hide button add to cart, unit price and stock status in the wishlist page
290
- * Added: Hebrew language (thanks to Gery Grinvald)
291
-
292
- = 1.0.3 =
293
-
294
- * Fixed: Minor bugs fixes
295
-
296
- = 1.0.2 =
297
-
298
- * Fixed: Fatal error to yit_debug with yit themes
299
-
300
- = 1.0.1 =
301
-
302
- * Tweak: Optimized images
303
- * Updated: internal framework
304
-
305
- = 1.0.0 =
306
-
307
- * Initial release
308
-
309
- == Suggestions ==
310
-
311
- If you have suggestions about how to improve YITH WooCommerce Wishlist, you can [write us](mailto:plugins@yithemes.com "Your Inspiration Themes") so we can bundle them into YITH WooCommerce Wishlist.
312
-
313
- == Translators ==
314
-
315
- = Available Languages =
316
- * Chinese - CHINA
317
- * Chinese - TAIWAN
318
- * English - UNITED KINGDOM (Default)
319
- * German - GERMANY
320
- * Spanish - ARGENTINA
321
- * Spanish - SPAIN
322
- * Spanish - MEXICO
323
- * French - FRANCE
324
- * Hebrew - ISRAEL
325
- * Italian - ITALY
326
- * Persian - IRAN, ISLAMIC REPUBLIC OF
327
- * Portuguese - BRAZIL
328
- * Portuguese - PORTUGAL
329
- * Russian - RUSSIAN FEDERATION
330
- * Turkish - TURKEY
331
- * Ukrainian - UKRAINE
332
-
333
- Some of these translations are not complete.
334
- If you want to contribute to the translation of the plugin, please [go to WordPress official translator platform](https://translate.wordpress.org/ "Translating WordPress") and translate the strings in your own language. In this way, we will be able to increase the languages available for YITH WooCommerce Wishlist.
335
-
336
-
337
- == Documentation ==
338
-
339
- Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woocommerce-wishlist).
340
-
341
- == Upgrade notice ==
342
-
343
- = 2.0.12 =
344
-
345
- * Added: method to count all products in wishlist
346
- * Tweak: Added wishlist js handling on 'yith_wcwl_init' triggered on document
347
- * Tweak: Performance improved with new plugin core 2.0
348
- * Fixed: occasional fatal error for users with outdated version of plugin-fw on their theme
1
+ === YITH WooCommerce Wishlist ===
2
+
3
+ Contributors: yithemes
4
+ Tags: wishlist, woocommerce, products, themes, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, woocommerce 2.3 ready, shop wishlist
5
+ Requires at least: 4.0
6
+ Tested up to: 4.4
7
+ Stable tag: 2.0.13
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ YITH WooCommerce Wishlist add all Wishlist features to your website. Needs WooCommerce to work.
12
+ WooCommerce 2.4.x compatible.
13
+
14
+
15
+ == Description ==
16
+
17
+ What can really make the difference in conversions and amount of sales is without a doubt the freedom to share your own wishlist, even on social networks, increasing indirect sales: can you imagine the sales volume you can generate during holidays or birthdays, when relatives and friends will be looking for the wishlist of your clients to buy a gift?
18
+
19
+ Offer to your visitors a chance to add the products of your woocommerce store to a wishlist page. With YITH WooCommerce Wishlist you can add a link in each product detail page,
20
+ in order to add the products to the wishlist page. The plugin will create you the specific page and the products will be added in this page and
21
+ afterwards add them to the cart or remove them.
22
+
23
+ Working demo are available:
24
+
25
+ **[LIVE DEMO 1](http://preview.yithemes.com/room09/product/africa-style/)** - **[LIVE DEMO 2](http://preview.yithemes.com/bazar/shop/ankle-shoes/)**
26
+
27
+ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woocommerce-wishlist).
28
+
29
+ This plugin is 100% compatible with [WPML](http://wpml.org/?aid=24889&affiliate_key=Qn1wDeBNTcZV)
30
+
31
+ = Available Languages =
32
+
33
+ **NOTE: The translation process of this plugin has been changed by WordPress. Please, read the correlated FAQ to be updated about the news changes.**
34
+
35
+ * Chinese - CHINA
36
+ * Chinese - TAIWAN
37
+ * English - UNITED KINGDOM (Default)
38
+ * French - FRANCE
39
+ * German - GERMANY
40
+ * Hebrew - ISRAEL
41
+ * Italian - ITALY
42
+ * Persian - IRAN, ISLAMIC REPUBLIC OF
43
+ * Polish - POLAND
44
+ * Portuguese - BRAZIL
45
+ * Portuguese - PORTUGAL
46
+ * Russian - RUSSIAN FEDERATION
47
+ * Spanish - ARGENTINA
48
+ * Spanish - SPAIN
49
+ * Spanish - MEXICO
50
+ * Swedish - SWEDEN
51
+ * Turkish - TURKEY
52
+ * Ukrainian - UKRAINE
53
+
54
+ == Installation ==
55
+
56
+ 1. Unzip the downloaded zip file.
57
+ 2. Upload the plugin folder into the `wp-content/plugins/` directory of your WordPress site.
58
+ 3. Activate `YITH WooCommerce Wishlist` from Plugins page
59
+
60
+ YITH WooCommerce Wishlist will add a new submenu called "Wishlist" under "YIT Plugins" menu. Here you are able to configure all the plugin settings.
61
+
62
+ == Frequently Asked Questions ==
63
+
64
+ = Can I customize the wishlist page? =
65
+ Yes, the page is a simple template and you can override it by putting the file template "wishlist.php" inside the "woocommerce" folder of the theme folder.
66
+
67
+ = Can I move the position of "Add to wishlist" button? =
68
+ Yes, you can move the button to another default position or you can also use the shortcode inside your theme code.
69
+
70
+ = Can I change the style of "Add to wishlist" button? =
71
+ Yes, you can change the colors of background, text and border or apply a custom css. You can also use a link or a button for the "Add to wishlist" feature.
72
+
73
+ = Wishlist page returns a 404 error? =
74
+ Try to regenerate permalinks from Settings -> Permalinks by simply saving them again.
75
+
76
+ = Did icons of your theme disappear after update to Wishlist 2.0.x? =
77
+ It might be a compatibility problem with the old version of font-awesome, which has been solved with version 2.0.2 of the plugin. Be sure that you are using a plugin version that is greater or equal to 2.0.2. If, after update, you cannot see icons in your theme yet, save again options of YITH WooCommerce Wishlist plugin (that you can find in YIT Plugin -> Wishlist).
78
+
79
+ = Have you encountered anomalies after plugin update, that did not exist in the previous version? =
80
+ This might depend on the fact that your theme overrides plugin templates. Check if the developer of your theme has released a compatibility update with version 2.0 or later of YITH WooCommerce Wishlist. As an alternative you can try the plugin in WordPress default theme to leave out any possible influences by the theme.
81
+
82
+ = I am currently using Wishlist plugin with Catalog Mode enabled in my site. Prices for products should disappear, yet they still appear in the wishlist page. Can I remove them? =
83
+ Yes, of course you can. To avoid Wishlist page to show product prices, you can hide price column from wishlist table. Go to YIT plugins -> wishlist -> settings and disable option "Show Unit price".
84
+
85
+ = What are the main changes in plugin translation? =
86
+ Recently YITH WooCommerce Wishlist has been selected to be included in the "translate.wordpress.org" translate programme.
87
+ In order to import correctly the plugin strings in the new system, we had to change the text domain from 'yit' to 'yith-woocommerce-wishlist'.
88
+ Once the plugin is imported into the translate.wordpress.org system, the translations of other languages will be downloadable directly from WordPress, without using any .po and .mo files. Moreover, users will be able to participate in a more direct way to plugin translations, suggesting texts in their languages in the dedicated tab on translate.wordpress.org.
89
+ During this transition step, .po and .mo files will be used as usual, but in order to be recognized by WordPress, they must have a new nomenclature and be renamed as:
90
+ yith-woocommerce-wishlist-<WORDPRESS LOCALE>.po
91
+ yith-woocommerce-wishlist-<WORDPRESS LOCALE>.mo
92
+ If your theme overrides plugin templates, it might happen that they are still using the old textdomain ('yit'), which is no longer used as reference for translation.
93
+ If you are experiencing problems with translation of your YITH WooCommerce Wishlist and the theme you are using includes wishlist templates (such as add-to-wishlist.php,
94
+ add-to-wishlist-button.php, wishlist-view,php), you could try to update them with the most recent version included in the plugin
95
+ (never forget to make a copy of your project before you apply any change).
96
+ If you want to keep customisations applied by the theme to wishlist templates (still using the old textdomain), then,
97
+ you should ask theme developers to update custom templates and replace the old textdomain with the most recent one.
98
+
99
+ == Screenshots ==
100
+
101
+ 1. The page with "Add to wishlist" button
102
+ 2. The wishlist page
103
+ 3. The Wishlist settings page
104
+ 4. The Wishlist settings page
105
+
106
+ == Changelog ==
107
+
108
+ = 2.0.13 =
109
+
110
+ * Added check over adding_to_cart event data existance in js procedures
111
+ * Added 'yith_wcwl_added_to_cart_message' filter, to customize added to cart message in wishlist page
112
+ * Added nofollow to "Add to Wishlist" links, where missing
113
+ * Added 'yith_wcwl_email_share_subject' filter to customize share by email subject
114
+ * Added 'yith_wcwl_email_share_body' filter to customize share by email body
115
+ * Added function "yith_wcwl_count_all_products"
116
+ * Fixed plugin-fw loading
117
+
118
+ = 2.0.12 =
119
+
120
+ * Added: method to count all products in wishlist
121
+ * Tweak: Added wishlist js handling on 'yith_wcwl_init' triggered on document
122
+ * Tweak: Performance improved with new plugin core 2.0
123
+ * Fixed: occasional fatal error for users with outdated version of plugin-fw on their theme
124
+
125
+ = 2.0.11 =
126
+
127
+ * Added: spanish translation (thanks to Arman S.)
128
+ * Added: polish translation (thanks to Roan)
129
+ * Added: swedish translation (thanks to Lallex)
130
+ * Updated: changed text domain from yit to yith-woocommerce-wishlist
131
+ * Updated: changed all language file for the new text domain
132
+
133
+ = 2.0.10 =
134
+
135
+ * Added: Compatibility with WC 2.4.2
136
+ * Tweak: added nonce field to wishlist-view form
137
+ * Tweak: added yith_wcwl_custom_add_to_cart_text and yith_wcwl_ask_an_estimate_text filters
138
+ * Tweak: added check for presence of required function in wishlist script
139
+ * Fixed: admin colorpicker field (for WC 2.4.x compatibility)
140
+
141
+ = 2.0.9 =
142
+
143
+ * Added: russian translation
144
+ * Added: WooCommerce class to wishlist view form
145
+ * Added: spinner to plugin assets
146
+ * Added: check on "user_logged_in" for sub-templates in wishlist-view
147
+ * Added: WordPress 4.2.3 compatibility
148
+ * Added: WPML 3.2.2 compatibility (removed deprecated function)
149
+ * Added: new check on is_product_in_wishlist (for unlogged users/default wishlist)
150
+ * Tweak: escaped urls on share template
151
+ * Tweak: removed new line between html attributes, to improve themes compatibility
152
+ * Fixed: WPML 3.2.2 compatibility (fix suggested by Konrad)
153
+ * Fixed: regex used to find class attr in "Add to Cart" button
154
+ * Fixed: usage of product_id for add_to_wishlist shortcode, when global $product is not defined
155
+ * Fixed: icon attribute for yith_wcwl_add_to_wishlist shortcode
156
+
157
+ = 2.0.8 =
158
+
159
+ * Added: support WP 4.2.2
160
+ * Added: Persian translation
161
+ * Added: check on cookie content
162
+ * Added: Frequently Bought Together integration
163
+ * Tweak: moved cookie update before first cookie usage
164
+ * Updated: Italian translation
165
+ * Removed: login_redirect_url variable
166
+
167
+ = 2.0.7 =
168
+
169
+ * Added: WP 4.2.1 support
170
+ * Added: WC 2.3.8 support
171
+ * Added: "Added to cart" message in wishlist page
172
+ * Added: Portuguese translation
173
+ * Updated: revision of all templates
174
+ * Fixed: vulnerability for unserialize of cookie content (Warning: in this way all the old serialized plugins will be deleted and all the wishlists of the non-logged users will be lost)
175
+ * Fixed: Escaped add_query_arg() and remove_query_arg()
176
+ * Removed: use of pretty permalinks if WPML enabled
177
+
178
+ = 2.0.6 =
179
+
180
+ * Added: system to overwrite wishlist js
181
+ * Added: trailingslashit() to wishlist permalink
182
+ * Added: chinese translation
183
+ * Added: "show_empty" filter to get_wishlists() method
184
+ * Fixed: count wishlist items
185
+ * Fixed: problem with price inclusive of tax
186
+ * Fixed: remove from wishlist for not logged user
187
+ * Fixed: twitter share summary
188
+
189
+ = 2.0.5 =
190
+
191
+ * Added: icl_object_id to wishlist page id, to translate pages
192
+ * Tweak: updated rewrite rules, to include child pages as wishlist pages
193
+ * Tweak: moved WC notices from wishlist template to yith_wcwl_before_wishlist_title hook
194
+ * Tweak: added wishlist table id to .load(), to update only that part of template
195
+ * Fixed: yith_wcwl_locate_template causing 500 Internal Server Error
196
+
197
+ = 2.0.4 =
198
+
199
+ * Added: Options for browse wishlist/already in wishlist/product added strings
200
+ * Added: rel nofollow to add to wishlist button
201
+ * Tweak: moved wishlist response popup handling to separate js file
202
+ * Updated: WPML xml configuration
203
+ * Updated: string revision
204
+
205
+ = 2.0.3 =
206
+
207
+ * Tweak: set correct protocol for admin-ajax requests
208
+ * Tweak: used wc core function to set cookie
209
+ * Tweak: let customization of add_to_wishlist shortcodes
210
+ * Fixed: show add to cart column when stock status disabled
211
+ * Fixed: product existing in wishlist
212
+
213
+ = 2.0.2 =
214
+
215
+ * Updated: font-awesome library
216
+ * Fixed: option with old font-awesome classes
217
+
218
+ = 2.0.1 =
219
+
220
+ * Added: spinner image on loading
221
+ * Added: flush rewrite rules on database upgrade
222
+ * Fixed: wc_add_to_cart_params not defined issue
223
+
224
+ = 2.0.0 =
225
+
226
+ * Added: Support to woocommerce 2.3
227
+ * Added: New color options
228
+ * Tweak: Add to cart button from woocommerce template
229
+ * Tweak: Share links on template
230
+ * Tweak: Code revision
231
+ * Tweak: Use wordpress API in ajax call instead of custom script
232
+ * Updated: Plugin core framework
233
+
234
+
235
+ = 1.1.7 =
236
+
237
+ * Added: Support to WooCommerce Endpoints (@use yit_wcwl_add_to_cart_redirect_url filter)
238
+ * Added: Filter to shortcode html
239
+ * Added: Title to share
240
+
241
+ = 1.1.6 =
242
+
243
+ * Updated: Plugin Core Framework
244
+ * Updated: Languages file
245
+ * Tweek: WPML Support Improved
246
+
247
+ = 1.1.5 =
248
+
249
+ * Added: Share wishlist by email
250
+
251
+ = 1.1.4 =
252
+
253
+ * Fixed: wrong string for inline js on remove link
254
+ * Fixed: wrong string for inline js on add to cart link
255
+
256
+ = 1.1.3 =
257
+
258
+ * Added: Options Tabs Filter
259
+ * Fixed: Various Bugs
260
+
261
+ = 1.1.2 =
262
+
263
+ * Fixed: Warnings when Show Stock Status is disabled
264
+ * Fixed: Restored page options on WooCommerce 2.1.x
265
+
266
+ = 1.1.1 =
267
+
268
+ * Fixed: Inability to unistall plugin
269
+ * Fixed: Redirect to cart page from wishlist page
270
+
271
+ = 1.1.0 =
272
+
273
+ * Added: Support to WooCommerce 2.1.x
274
+ * Added: Spanish (Mexico) translation by Gabriel Dzul
275
+ * Added: French translation by Virginie Garcin
276
+ * Fixed: Revision Italian Language po/mo files
277
+
278
+ = 1.0.6 =
279
+
280
+ * Added: Spanish (Argentina) partial translation by Sebastian Jeremias
281
+ * Added: Portuguese (Brazil) translation by Lincoln Lemos
282
+ * Fixed: Share buttons show also when not logged in
283
+ * Fixed: Price shows including or excluding tax based on WooCommerce settings
284
+ * Fixed: Better compatibility for WPML
285
+ * Fixed: Price shows "Free!" if the product is without price
286
+ * Fixed: DB Table creation on plugin activation
287
+
288
+ = 1.0.5 =
289
+
290
+ * Added: Shared wishlists can be seens also by not logged in users
291
+ * Added: Support for WPML String translation
292
+ * Updated: German translation by Stephanie Schlieske
293
+ * Fixed: Add to cart button does not appear if the product is out of stock
294
+
295
+ = 1.0.4 =
296
+
297
+ * Added: partial Ukrainian translation
298
+ * Added: complete German translation. Thanks to Stephanie Schliesk
299
+ * Added: options to show/hide button add to cart, unit price and stock status in the wishlist page
300
+ * Added: Hebrew language (thanks to Gery Grinvald)
301
+
302
+ = 1.0.3 =
303
+
304
+ * Fixed: Minor bugs fixes
305
+
306
+ = 1.0.2 =
307
+
308
+ * Fixed: Fatal error to yit_debug with yit themes
309
+
310
+ = 1.0.1 =
311
+
312
+ * Tweak: Optimized images
313
+ * Updated: internal framework
314
+
315
+ = 1.0.0 =
316
+
317
+ * Initial release
318
+
319
+ == Suggestions ==
320
+
321
+ If you have suggestions about how to improve YITH WooCommerce Wishlist, you can [write us](mailto:plugins@yithemes.com "Your Inspiration Themes") so we can bundle them into YITH WooCommerce Wishlist.
322
+
323
+ == Translators ==
324
+
325
+ = Available Languages =
326
+ * Chinese - CHINA
327
+ * Chinese - TAIWAN
328
+ * English - UNITED KINGDOM (Default)
329
+ * German - GERMANY
330
+ * Spanish - ARGENTINA
331
+ * Spanish - SPAIN
332
+ * Spanish - MEXICO
333
+ * French - FRANCE
334
+ * Hebrew - ISRAEL
335
+ * Italian - ITALY
336
+ * Persian - IRAN, ISLAMIC REPUBLIC OF
337
+ * Portuguese - BRAZIL
338
+ * Portuguese - PORTUGAL
339
+ * Russian - RUSSIAN FEDERATION
340
+ * Turkish - TURKEY
341
+ * Ukrainian - UKRAINE
342
+
343
+ Some of these translations are not complete.
344
+ If you want to contribute to the translation of the plugin, please [go to WordPress official translator platform](https://translate.wordpress.org/ "Translating WordPress") and translate the strings in your own language. In this way, we will be able to increase the languages available for YITH WooCommerce Wishlist.
345
+
346
+
347
+ == Documentation ==
348
+
349
+ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woocommerce-wishlist).
350
+
351
+ == Upgrade notice ==
352
+
353
+ = 2.0.13 =
354
+
355
+ * Added check over adding_to_cart event data existance in js procedures
356
+ * Added 'yith_wcwl_added_to_cart_message' filter, to customize added to cart message in wishlist page
357
+ * Added nofollow to "Add to Wishlist" links, where missing
358
+ * Added 'yith_wcwl_email_share_subject' filter to customize share by email subject
359
+ * Added 'yith_wcwl_email_share_body' filter to customize share by email body
360
+ * Added function "yith_wcwl_count_all_products"
361
+ * Fixed plugin-fw loading
assets/css/admin.css CHANGED
@@ -1,63 +1,63 @@
1
- /**
2
- * Admin YITH WooCommerce Wishlist CSS
3
- *
4
- * @author Your Inspiration Themes
5
- * @package YITH WooCommerce Wishlist
6
- * @version 1.1.5
7
- */
8
-
9
- h2.nav-tab-wrapper{
10
- margin-bottom: 15px;
11
- }
12
-
13
- #yith_wcwl_panel_colors .color-panel{
14
- background: #ffffff;
15
- padding: 20px;
16
- }
17
-
18
- #yith_wcwl_panel_colors .color_box {
19
- border: 1px solid #CCC;
20
- box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
21
- -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
22
- -moz-box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
23
- -webkit-border-radius: 3px;
24
- -moz-border-radius: 3px;
25
- border-radius: 3px;
26
- padding: 4px 6px;
27
- float: left;
28
- width: 250px;
29
- margin: 0 10px 0 0;
30
- }
31
-
32
- #yith_wcwl_panel_colors .color_box strong {
33
- text-align: left;
34
- display: block;
35
- padding: 0 0 2px;
36
- font-size: .92em;
37
- }
38
-
39
- #yith_wcwl_panel_colors .color_box strong img {
40
- float: right;
41
- margin: 1px 0 0 0;
42
- }
43
-
44
- #yith_wcwl_panel_colors .color_box input {
45
- width: 100%;
46
- margin: 0;
47
- font-family: monospace;
48
- -webkit-box-sizing: border-box;
49
- -moz-box-sizing: border-box;
50
- box-sizing: border-box;
51
- }
52
-
53
- #yith_wcwl_panel_colors .color_box .colorpickdiv {
54
- z-index: 100;
55
- background: #EEE;
56
- border: 1px solid #CCC;
57
- position: absolute;
58
- display: none;
59
- }
60
-
61
- .woocommerce_page_wishlist #TB_window img#TB_Image{
62
- border: none;
63
}
1
+ /**
2
+ * Admin YITH WooCommerce Wishlist CSS
3
+ *
4
+ * @author Your Inspiration Themes
5
+ * @package YITH WooCommerce Wishlist
6
+ * @version 1.1.5
7
+ */
8
+
9
+ h2.nav-tab-wrapper{
10
+ margin-bottom: 15px;
11
+ }
12
+
13
+ #yith_wcwl_panel_colors .color-panel{
14
+ background: #ffffff;
15
+ padding: 20px;
16
+ }
17
+
18
+ #yith_wcwl_panel_colors .color_box {
19
+ border: 1px solid #CCC;
20
+ box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
21
+ -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
22
+ -moz-box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
23
+ -webkit-border-radius: 3px;
24
+ -moz-border-radius: 3px;
25
+ border-radius: 3px;
26
+ padding: 4px 6px;
27
+ float: left;
28
+ width: 250px;
29
+ margin: 0 10px 0 0;
30
+ }
31
+
32
+ #yith_wcwl_panel_colors .color_box strong {
33
+ text-align: left;
34
+ display: block;
35
+ padding: 0 0 2px;
36
+ font-size: .92em;
37
+ }
38
+
39
+ #yith_wcwl_panel_colors .color_box strong img {
40
+ float: right;
41
+ margin: 1px 0 0 0;
42
+ }
43
+
44
+ #yith_wcwl_panel_colors .color_box input {
45
+ width: 100%;
46
+ margin: 0;
47
+ font-family: monospace;
48
+ -webkit-box-sizing: border-box;
49
+ -moz-box-sizing: border-box;
50
+ box-sizing: border-box;
51
+ }
52
+
53
+ #yith_wcwl_panel_colors .color_box .colorpickdiv {
54
+ z-index: 100;
55
+ background: #EEE;
56
+ border: 1px solid #CCC;
57
+ position: absolute;
58
+ display: none;
59
+ }
60
+
61
+ .woocommerce_page_wishlist #TB_window img#TB_Image{
62
+ border: none;
63
}
assets/css/style.css CHANGED
@@ -1,588 +1,588 @@
1
- /**
2
- * Main YITH WooCommerce Wishlist CSS
3
- *
4
- * @author Your Inspiration Themes
5
- * @package YITH WooCommerce Wishlist
6
- * @version 1.1.5
7
- */
8
-
9
- .summary .product_meta { margin-top: 45px; }
10
-
11
- /* Selectbox style */
12
- .woocommerce a.selectBox{
13
- background: #ffffff;
14
- min-width: 100px;
15
- margin-right: 10px;
16
- color: inherit;
17
- }
18
-
19
- .woocommerce a.selectBox,
20
- .woocommerce a.selectBox:hover{
21
- border-bottom: 1px solid #bbb!important;
22
- }
23
-
24
- .woocommerce a.selectBox:hover{
25
- color: inherit;
26
- }
27
-
28
- .woocommerce a.selectBox:focus{
29
- border: 1px solid #ccc;
30
- }
31
-
32
- .selectBox-dropdown .selectBox-label{
33
- vertical-align: middle;
34
- padding: 3px 8px;
35
- }
36
-
37
- .selectBox-dropdown .selectBox-arrow{
38
- border: none;
39
- background: url(../images/jquery.selectBox-arrow.png) center right no-repeat;
40
- }
41
-
42
- .selectBox-dropdown.selectBox-menuShowing .selectBox-arrow{
43
- background: url(../images/jquery.selectBox-arrow.png) center left no-repeat;
44
- }
45
-
46
- .selectBox-dropdown-menu{
47
- border-bottom-left-radius: 3px;
48
- border-bottom-right-radius: 3px;
49
- padding: 5px;
50
- font-size: 80%;
51
- }
52
-
53
- .selectBox-label.public-visibility:before,
54
- .selectBox-dropdown-menu li.public-visibility a:before{
55
- font-family: FontAwesome;
56
- display: inline-block;
57
- content: "\f0ac";
58
- margin-right: 5px;
59
- }
60
-
61
- .selectBox-label.shared-visibility:before,
62
- .selectBox-dropdown-menu li.shared-visibility a:before{
63
- font-family: FontAwesome;
64
- display: inline-block;
65
- content: "\f0c1";
66
- margin-right: 5px;
67
- }
68
-
69
- .selectBox-label.private-visibility:before,
70
- .selectBox-dropdown-menu li.private-visibility a:before{
71
- font-family: FontAwesome;
72
- display: inline-block;
73
- content: "\f023";
74
- margin-right: 5px;
75
- }
76
-
77
- .selectBox-dropdown-menu li a{
78
- color: inherit;
79
- padding: 5px 8px;
80
- border-radius: 3px;
81
- }
82
-
83
- .selectBox-dropdown-menu a:hover{
84
- color: inherit;
85
- text-decoration: none;
86
- }
87
-
88
- /* Wishlist table */
89
- .woocommerce .wishlist_table td.product-add-to-cart a{
90
- display: block!important;
91
- margin: 0;
92
- margin-bottom: 5px;
93
- text-align: center;
94
- }
95
- .woocommerce .wishlist_table td.product-add-to-cart span.dateadded{
96
- display: block;
97
- }
98
-
99
- /* Popup add to wishlist */
100
- .yith-wcwl-add-button a.open-pretty-photo{
101
- display: none;
102
- }
103
- .yes-js .yith-wcwl-add-button a.open-pretty-photo{
104
- display: inline-block;
105
- }
106
- .yes-js .yith-wcwl-popup{
107
- display: none;
108
- text-align: center;
109
- }
110
- .yes-js .yith-wcwl-popup-content{
111
-
112
- }
113
- .yes-js .yith-wcwl-popup-content{
114
- display: table;
115
- width: 100%;
116
- }
117
- .yes-js .yith-wcwl-popup-content .yith-wcwl-first-row{
118
- display: table-header-group;
119
- }
120
- .yes-js .yith-wcwl-popup-content .yith-wcwl-second-row{
121
- display: none;
122
- }
123
- .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-select-container,
124
- .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-thumb,
125
- .yes-js .yith-wcwl-popup-content .yith-wcwl-popup-new,
126
- .yes-js .yith-wcwl-popup-content .yith-wcwl-visibility{
127
- display: table-cell;
128
- vertical-align: bottom;
129
- }
130
- .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-select-container{
131
- width: 80%;
132
- padding-bottom: 20px;
133
- }
134
- .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-select-container select,
135
- .yes-js .yith-wcwl-popup-content .yith-wcwl-visibility select,
136
- .yes-js .yith-wcwl-popup-content .yith-wcwl-popup-new input{
137
- border: 1px solid #ccc;
138
- height: 35px;
139
- border-radius: 3px;
140
- }
141
- .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-select-container select{
142
- width: 100%;
143
- font-weight: 700;
144
- padding-left: 10px;
145
- }
146
- .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-thumb{
147
- width: 20%;
148
- padding-bottom: 20px;
149
- }
150
- .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-thumb img{
151
- float: right;
152
- border: 1px solid #ccc;
153
- border-radius: 3px;
154
- }
155
- .yes-js .yith-wcwl-popup-content .yith-wcwl-popup-new{
156
- text-align: right;
157
- }
158
- .yes-js .yith-wcwl-popup-content .yith-wcwl-popup-new label{
159
- font-weight: 700;
160
- }
161
- .yes-js .yith-wcwl-popup-content .yith-wcwl-visibility select{
162
- float: right;
163
- min-width: 90px;
164
- }
165
- .yes-js .yith-wcwl-popup-footer{
166
- border-top: 1px solid #CCC;
167
- padding: 20px 20px 0 20px;
168
- margin: 20px -20px 0;
169
- text-align: right;
170
- }
171
-
172
- /* Popup message */
173
- #yith-wcwl-popup-message {
174
- background: white;
175
- border: 1px solid #CCC;
176
- border-radius: 5px;
177
- -webkit-border-radius: 5px;
178
- -moz-border-radius: 5px;
179
- line-height: 50px;
180
- padding: 15px;
181
- position: fixed;
182
- text-align: center;
183
- top: 50%;
184
- left: 50%;
185
- z-index: 10000; /* Thanks WP -.- */
186
- }
187
-
188
- /*Wishlist title form*/
189
- .wishlist-title{
190
- display: inline-block;
191
- }
192
- .wishlist-title h2{
193
- display: inline-block;
194
- padding: 5px;
195
- }
196
- .wishlist-title.wishlist-title-with-form h2:hover{
197
- background: #efefef;
198
- }
199
- .wishlist-title a.show-title-form{
200
- cursor: pointer;
201
- visibility: hidden;
202
- }
203
- .wishlist-title:hover a.show-title-form{
204
- visibility: visible;
205
- }
206
- .yes-js #yith-wcwl-form .hidden-title-form{
207
- display: none;
208
- margin: 25px 0 39px;
209
- }
210
-
211
- /* Wishlist table template */
212
-
213
- .woocommerce table.wishlist_table{
214
- font-size: 80%;
215
- }
216
-
217
- .woocommerce table.wishlist_table thead th{
218
- border-top: 1px solid;
219
- padding: 16px 12px;
220
- }
221
-
222
- .woocommerce table.wishlist_table tbody td{
223
- padding: 16px 12px;
224
- }
225
-
226
- .woocommerce table.wishlist_table thead th,
227
- .woocommerce table.wishlist_table tbody td{
228
- border-color: #e7e7e7;
229
- }
230
-
231
- .wishlist_table tr td, .wishlist_table tr th.wishlist-delete, .wishlist_table tr th.product-checkbox { text-align: center; }
232
- .wishlist_table tr th.product-checkbox { vertical-align: middle; width: 40px; }
233
- .wishlist_table tr th.product-remove { vertical-align: middle; width: 40px; }
234
- .wishlist_table tr th.product-thumbnail{ width: 80px; }
235
- .wishlist_table tr td.product-thumbnail, .wishlist_table tr td.product-name, .wishlist_table tr td.wishlist-name, .wishlist_table tr td.wishlist-privacy, .woocommerce table.wishlist_table tfoot td { text-align: left; }
236
- .woocommerce table.wishlist_table tr td.product-remove { padding: 16px 0 }
237
- .wishlist_table tr td.product-thumbnail a { display: block; border: none; max-width: 80px; }
238
- .wishlist_table tr td.product-thumbnail a img { width: 100%; }
239
- .wishlist_table tr td.product-stock-status span.wishlist-in-stock { color: #297E29; }
240
- .wishlist_table tr td.product-stock-status span.wishlist-out-of-stock { color: #F00; }
241
- .wishlist_table tr td a.button { white-space: normal; }
242
-
243
- /* Wishlist buttons */
244
- a.add_to_wishlist{
245
- cursor: pointer;
246
- }
247
-
248
- .summary .single_add_to_wishlist.button,
249
- div.product .woocommerce-price-and-add .single_add_to_wishlist.button {
250
- margin: 0px;
251
- }
252
-
253
- .wishlist_table .add_to_cart.button{
254
- padding: 7px 12px;
255
- line-height: normal;
256
- }
257
-
258
- .yith-wcwl-add-to-wishlist {
259
- margin-top: 10px;
260
- }
261
-
262
- .yith-wcwl-add-button > a i,
263
- .wishlist_table .add_to_cart.button i,
264
- .wishlist_table .ask-an-estimate-button i,
265
- .wishlist-title a.show-title-form i,
266
- .hidden-title-form a.hide-title-form i,
267
- .hidden-title-form button i,
268
- .yith-wcwl-wishlist-new button i,
269
- .wishlist_manage_table tfoot button.submit-wishlist-changes i,
270
- .wishlist_manage_table tfoot a.create-new-wishlist i,
271
- .yith-wcwl-wishlist-search-form button.wishlist-search-button i{
272
- margin-right: 10px;
273
- }
274
-
275
- .wishlist_table .add_to_cart.button,
276
- .yith-wcwl-add-button a.add_to_wishlist,
277
- .yith-wcwl-popup-button a.add_to_wishlist,
278
- .wishlist_table a.ask-an-estimate-button,
279
- .wishlist-title a.show-title-form,
280
- .hidden-title-form a.hide-title-form,
281
- .woocommerce .yith-wcwl-wishlist-new button,
282
- .wishlist_manage_table a.create-new-wishlist,
283
- .wishlist_manage_table button.submit-wishlist-changes,
284
- .yith-wcwl-wishlist-search-form button.wishlist-search-button{
285
- margin: 0px;
286
- box-shadow: none;
287
- text-shadow: none;
288
- border-radius: 3px;
289
- }
290
-
291
- /* Wishlist title */
292
- .woocommerce .wishlist-title h2{
293
- vertical-align: middle;
294
- }
295
-
296
- .woocommerce .wishlist-title a.show-title-form{
297
- vertical-align: middle;
298
- margin-left: 15px;
299
- }
300
-
301
- .woocommerce .hidden-title-form input[type="text"]{
302
- border: 1px solid #ccc;
303
- border-radius: 3px;
304
- height: 35px;
305
- min-width: 250px;
306
- vertical-align: middle;
307
- }
308
-
309
- .woocommerce .hidden-title-form button{
310
- padding: 7px 24px;
311
- vertical-align: middle;
312
- border: none;
313
- position: relative;
314
- }
315
-
316
- .woocommerce .hidden-title-form button:active{
317
- top: 1px;
318
- }
319
-
320
- .woocommerce .hidden-title-form a.hide-title-form{
321
- vertical-align: middle;
322
- line-height: normal;
323
- }
324
-
325
- /* Remove buttons */
326
- .woocommerce #content table.wishlist_table.cart a.remove{
327
- color: #c3c3c3;
328
- margin: 0 auto;
329
- }
330
-
331
- .woocommerce #content table.wishlist_table.cart a.remove:hover{
332
- background-color: #c3c3c3;
333
- color: #fff;
334
- }
335
-
336
- /* Share buttons */
337
- .yith-wcwl-share{
338
- margin-bottom: 35px;
339
- }
340
-
341
- .yith-wcwl-share h4.yith-wcwl-share-title{
342
- margin: 10px 0;
343
- }
344
-
345
- .yith-wcwl-share ul {
346
- margin: 5px 0;
347
- padding: 0;
348
- }
349
-
350
- .yith-wcwl-share ul, .yith-wcwl-share li { height: 21px; }
351
- .yith-wcwl-share li, .entry-content .yith-wcwl-share li { margin-left: 0px; margin-right: 0px; }
352
-
353
- .yith-wcwl-share li a {
354
- background-position: left top;
355
- display: inline-block;
356
- width: 21px;
357
- height: 21px;
358
- border: none;
359
- }
360
-
361
- .yith-wcwl-share li a:hover { background-position: left bottom; }
362
- .yith-wcwl-share li a.facebook { background-image: url(../images/facebook.png ); }
363
- .yith-wcwl-share li a.twitter { background-image: url(../images/twitter.png ); }
364
- .yith-wcwl-share li a.pinterest { background-image: url(../images/pinterest.jpg ); }
365
- .yith-wcwl-share li a.googleplus { background-image: url(../images/googleplus.jpg ); }
366
- .yith-wcwl-share li a.email { background-image: url(../images/email.jpg ); }
367
-
368
- /* Ask an estimate button */
369
- .woocommerce .wishlist_table.cart .ask-an-estimate-button,
370
- .woocommerce .wishlist_table.cart #custom_add_to_cart{
371
- margin: 10px 0;
372
- display: inline-block;
373
- }
374
-
375
- .woocommerce .wishlist_table.cart .ask-an-estimate-button{
376
- padding: 7px 12px;
377
- line-height: normal;
378
- }
379
-
380
- #ask_an_estimate_popup{
381
- display: none;
382
- }
383
-
384
- .ask-an-estimate-button-popup{
385
- margin-top: 30px!important;
386
- float: right;
387
- text-transform: none;
388
- }
389
-
390
- #additional_notes{
391
- min-height: 150px;
392
- }
393
-
394
- /* Create new wishlist*/
395
- .yith-wcwl-wishlist-new{
396
- padding: 20px 30px;
397
- border-bottom: 1px solid #e7e7e7;
398
- }
399
-
400
- .yith-wcwl-wishlist-new label{
401
- vertical-align: middle;
402
- margin-right: 20px;
403
- }
404
-
405
- .yith-wcwl-wishlist-new input{
406
- min-width: 190px;
407
- }
408
-
409
- .yith-wcwl-wishlist-new input[type="text"],
410
- .yith-wcwl-wishlist-new select{
411
- border: 1px solid #ccc;
412
- border-radius: 3px;
413
- height: 35px;
414
- vertical-align: middle;
415
- margin-right: 10px;
416
- }
417
-
418
- .woocommerce .yith-wcwl-wishlist-new button{
419
- padding: 7px 24px;
420
- vertical-align: middle;
421
- border: 1px solid;
422
- position: relative;
423
- }
424
-
425
- .woocommerce .yith-wcwl-wishlist-new button:active{
426
- top: 1px;
427
- }
428
-
429
- /* Manage wishlists */
430
- .woocommerce .wishlist_manage_table select{
431
- border: 1px solid #ccc;
432
- border-radius: 3px;
433
- height: 35px;
434
- vertical-align: middle;
435
- margin-right: 10px;
436
- }
437
-
438
- .woocommerce table.wishlist_manage_table tfoot td{
439
- text-align: right;
440
- padding: 24px 12px;
441
- }
442
-
443
- .woocommerce .wishlist_manage_table tfoot button.submit-wishlist-changes{
444
- padding: 7px 24px;
445
- vertical-align: middle;
446
- border: 1px solid;
447
- border-radius: 3px;
448
- position: relative;
449
- line-height: normal;
450
- }
451
-
452
- .woocommerce .wishlist_manage_table tfoot button.submit-wishlist-changes:active{
453
- top: 1px;
454
- }
455
-
456
- .woocommerce .wishlist_manage_table tfoot a.create-new-wishlist{
457
- vertical-align: middle;
458
- line-height: normal;
459
- padding: 7px 24px;
460
- }
461
-
462
- /* Search wishlist */
463
- .woocommerce .yith-wcwl-wishlist-search-form{
464
- padding: 20px 80px;
465
- border-bottom: 1px solid #e7e7e7;
466
- }
467
-
468
- .woocommerce .yith-wcwl-wishlist-search-form:after{
469
- content: '';
470
- display: block;
471
- clear: both;
472
- }
473
-
474
- .woocommerce .yith-wcwl-wishlist-search-form #wishlist_search{
475
- min-width: 300px;
476
- border: 1px solid #ccc;
477
- border-radius: 3px;
478
- height: 35px;
479
- vertical-align: middle;
480
- float: left;
481
- }
482
-
483
- .woocommerce .yith-wcwl-wishlist-search-form button.wishlist-search-button{
484
- padding: 7px 24px;
485
- vertical-align: middle;
486
- border: 1px solid;
487
- border-radius: 3px;
488
- position: relative;
489
- line-height: normal;
490
- float: right;
491
- }
492
-
493
- .woocommerce p.yith-wcwl-empty-search-result{
494
- padding: 50px 0;
495
- text-align: center;
496
- }
497
-
498
- .woocommerce .yith-wcwl-wishlist-search-form button.wishlist-search-button:active{
499
- top: 1px;
500
- }
501
-
502
- .woocommerce ul.yith-wcwl-search-results,
503
- .woocommerce ul.user-wishlists{
504
- list-style: none;
505
- margin: 0;
506
- padding: 0;
507
- }
508
-
509
- .woocommerce ul.yith-wcwl-search-results > li{
510
- padding: 50px 80px;
511
- border-bottom: 1px solid #e7e7e7;
512
- }
513
-
514
- .woocommerce ul.yith-wcwl-search-results > li:after{
515
- content: '';
516
- display: block;
517
- clear: both;
518
- }
519
-
520
- .woocommerce ul.yith-wcwl-search-results .thumb{
521
- float: left;
522
- margin-right: 15px;
523
- }
524
-
525
- .woocommerce ul.yith-wcwl-search-results .user-details{
526
- overflow: hidden;
527
- padding-top: 15px;
528
- }
529
-
530
- .woocommerce ul.yith-wcwl-search-results .user-details span{
531
- display: block;
532
- }
533
-
534
- .woocommerce ul.yith-wcwl-search-results .user-details span.name{
535
- font-weight: 700;
536
- }
537
-
538
- .woocommerce ul.yith-wcwl-search-results .reuslt-details{
539
- float: left;
540
- width: 50%;
541
- }
542
-
543
- .woocommerce ul.yith-wcwl-search-results .result-wishlists{
544
- float: right;
545
- max-width: 50%;
546
- padding-top: 15px;
547
- }
548
-
549
- .woocommerce .yith-wcwl-search-pagination{
550
- padding: 5px 0;
551
- text-align: center;
552
- }
553
-
554
- /* AJAX loading gif */
555
- .yith-wcwl-add-to-wishlist .ajax-loading {
556
- box-shadow: none !important;
557
- -moz-box-shadow: none !important;
558
- -webkit-box-shadow: none !important;
559
- display: inline !important;
560
- margin-left: 5px;
561
- vertical-align: middle;
562
- visibility: hidden;
563
- width: 16px !important;
564
- height: 16px !important;
565
- }
566
-
567
- /* Widget wishlist */
568
- .widget_yith-wcwl-lists ul.dropdown li{
569
- padding: 0;
570
- }
571
-
572
- .widget_yith-wcwl-lists ul.dropdown > li a,
573
- .widget_yith-wcwl-lists ul.dropdown ul.lists > li a{
574
- display: block;
575
- padding: 5px 15px;
576
- }
577
-
578
- .widget_yith-wcwl-lists ul.dropdown ul.lists > li a{
579
- padding: 5px 25px;
580
- }
581
-
582
- .widget_yith-wcwl-lists ul.dropdown > li.lists-section{
583
- border-bottom: 1px solid #e7e7e7;
584
- }
585
-
586
- .widget_yith-wcwl-lists ul.dropdown ul.lists{
587
- margin: 0;
588
}
1
+ /**
2
+ * Main YITH WooCommerce Wishlist CSS
3
+ *
4
+ * @author Your Inspiration Themes
5
+ * @package YITH WooCommerce Wishlist
6
+ * @version 1.1.5
7
+ */
8
+
9
+ .summary .product_meta { margin-top: 45px; }
10
+
11
+ /* Selectbox style */
12
+ .woocommerce a.selectBox{
13
+ background: #ffffff;
14
+ min-width: 100px;
15
+ margin-right: 10px;
16
+ color: inherit;
17
+ }
18
+
19
+ .woocommerce a.selectBox,
20
+ .woocommerce a.selectBox:hover{
21
+ border-bottom: 1px solid #bbb!important;
22
+ }
23
+
24
+ .woocommerce a.selectBox:hover{
25
+ color: inherit;
26
+ }
27
+
28
+ .woocommerce a.selectBox:focus{
29
+ border: 1px solid #ccc;
30
+ }
31
+
32
+ .selectBox-dropdown .selectBox-label{
33
+ vertical-align: middle;
34
+ padding: 3px 8px;
35
+ }
36
+
37
+ .selectBox-dropdown .selectBox-arrow{
38
+ border: none;
39
+ background: url(../images/jquery.selectBox-arrow.png) center right no-repeat;
40
+ }
41
+
42
+ .selectBox-dropdown.selectBox-menuShowing .selectBox-arrow{
43
+ background: url(../images/jquery.selectBox-arrow.png) center left no-repeat;
44
+ }
45
+
46
+ .selectBox-dropdown-menu{
47
+ border-bottom-left-radius: 3px;
48
+ border-bottom-right-radius: 3px;
49
+ padding: 5px;
50
+ font-size: 80%;
51
+ }
52
+
53
+ .selectBox-label.public-visibility:before,
54
+ .selectBox-dropdown-menu li.public-visibility a:before{
55
+ font-family: FontAwesome;
56
+ display: inline-block;
57
+ content: "\f0ac";
58
+ margin-right: 5px;
59
+ }
60
+
61
+ .selectBox-label.shared-visibility:before,
62
+ .selectBox-dropdown-menu li.shared-visibility a:before{
63
+ font-family: FontAwesome;
64
+ display: inline-block;
65
+ content: "\f0c1";
66
+ margin-right: 5px;
67
+ }
68
+
69
+ .selectBox-label.private-visibility:before,
70
+ .selectBox-dropdown-menu li.private-visibility a:before{
71
+ font-family: FontAwesome;
72
+ display: inline-block;
73
+ content: "\f023";
74
+ margin-right: 5px;
75
+ }
76
+
77
+ .selectBox-dropdown-menu li a{
78
+ color: inherit;
79
+ padding: 5px 8px;
80
+ border-radius: 3px;
81
+ }
82
+
83
+ .selectBox-dropdown-menu a:hover{
84
+ color: inherit;
85
+ text-decoration: none;
86
+ }
87
+
88
+ /* Wishlist table */
89
+ .woocommerce .wishlist_table td.product-add-to-cart a{
90
+ display: block!important;
91
+ margin: 0;
92
+ margin-bottom: 5px;
93
+ text-align: center;
94
+ }
95
+ .woocommerce .wishlist_table td.product-add-to-cart span.dateadded{
96
+ display: block;
97
+ }
98
+
99
+ /* Popup add to wishlist */
100
+ .yith-wcwl-add-button a.open-pretty-photo{
101
+ display: none;
102
+ }
103
+ .yes-js .yith-wcwl-add-button a.open-pretty-photo{
104
+ display: inline-block;
105
+ }
106
+ .yes-js .yith-wcwl-popup{
107
+ display: none;
108
+ text-align: center;
109
+ }
110
+ .yes-js .yith-wcwl-popup-content{
111
+
112
+ }
113
+ .yes-js .yith-wcwl-popup-content{
114
+ display: table;
115
+ width: 100%;
116
+ }
117
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-first-row{
118
+ display: table-header-group;
119
+ }
120
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-second-row{
121
+ display: none;
122
+ }
123
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-select-container,
124
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-thumb,
125
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-popup-new,
126
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-visibility{
127
+ display: table-cell;
128
+ vertical-align: bottom;
129
+ }
130
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-select-container{
131
+ width: 80%;
132
+ padding-bottom: 20px;
133
+ }
134
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-select-container select,
135
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-visibility select,
136
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-popup-new input{
137
+ border: 1px solid #ccc;
138
+ height: 35px;
139
+ border-radius: 3px;
140
+ }
141
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-select-container select{
142
+ width: 100%;
143
+ font-weight: 700;
144
+ padding-left: 10px;
145
+ }
146
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-thumb{
147
+ width: 20%;
148
+ padding-bottom: 20px;
149
+ }
150
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-wishlist-thumb img{
151
+ float: right;
152
+ border: 1px solid #ccc;
153
+ border-radius: 3px;
154
+ }
155
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-popup-new{
156
+ text-align: right;
157
+ }
158
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-popup-new label{
159
+ font-weight: 700;
160
+ }
161
+ .yes-js .yith-wcwl-popup-content .yith-wcwl-visibility select{
162
+ float: right;
163
+ min-width: 90px;
164
+ }
165
+ .yes-js .yith-wcwl-popup-footer{
166
+ border-top: 1px solid #CCC;
167
+ padding: 20px 20px 0 20px;
168
+ margin: 20px -20px 0;
169
+ text-align: right;
170
+ }
171
+
172
+ /* Popup message */
173
+ #yith-wcwl-popup-message {
174
+ background: white;
175
+ border: 1px solid #CCC;
176
+ border-radius: 5px;
177
+ -webkit-border-radius: 5px;
178
+ -moz-border-radius: 5px;
179
+ line-height: 50px;
180
+ padding: 15px;
181
+ position: fixed;
182
+ text-align: center;
183
+ top: 50%;
184
+ left: 50%;
185
+ z-index: 10000; /* Thanks WP -.- */
186
+ }
187
+
188
+ /*Wishlist title form*/
189
+ .wishlist-title{
190
+ display: inline-block;
191
+ }
192
+ .wishlist-title h2{
193
+ display: inline-block;
194
+ padding: 5px;
195
+ }
196
+ .wishlist-title.wishlist-title-with-form h2:hover{
197
+ background: #efefef;
198
+ }
199
+ .wishlist-title a.show-title-form{
200
+ cursor: pointer;
201
+ visibility: hidden;
202
+ }
203
+ .wishlist-title:hover a.show-title-form{
204
+ visibility: visible;
205
+ }
206
+ .yes-js #yith-wcwl-form .hidden-title-form{
207
+ display: none;
208
+ margin: 25px 0 39px;
209
+ }
210
+
211
+ /* Wishlist table template */
212
+
213
+ .woocommerce table.wishlist_table{
214
+ font-size: 80%;
215
+ }
216
+
217
+ .woocommerce table.wishlist_table thead th{
218
+ border-top: 1px solid;
219
+ padding: 16px 12px;
220
+ }
221
+
222
+ .woocommerce table.wishlist_table tbody td{
223
+ padding: 16px 12px;
224
+ }
225
+
226
+ .woocommerce table.wishlist_table thead th,
227
+ .woocommerce table.wishlist_table tbody td{
228
+ border-color: #e7e7e7;
229
+ }
230
+
231
+ .wishlist_table tr td, .wishlist_table tr th.wishlist-delete, .wishlist_table tr th.product-checkbox { text-align: center; }
232
+ .wishlist_table tr th.product-checkbox { vertical-align: middle; width: 40px; }
233
+ .wishlist_table tr th.product-remove { vertical-align: middle; width: 40px; }
234
+ .wishlist_table tr th.product-thumbnail{ width: 80px; }
235
+ .wishlist_table tr td.product-thumbnail, .wishlist_table tr td.product-name, .wishlist_table tr td.wishlist-name, .wishlist_table tr td.wishlist-privacy, .woocommerce table.wishlist_table tfoot td { text-align: left; }
236
+ .woocommerce table.wishlist_table tr td.product-remove { padding: 16px 0 }
237
+ .wishlist_table tr td.product-thumbnail a { display: block; border: none; max-width: 80px; }
238
+ .wishlist_table tr td.product-thumbnail a img { width: 100%; }
239
+ .wishlist_table tr td.product-stock-status span.wishlist-in-stock { color: #297E29; }
240
+ .wishlist_table tr td.product-stock-status span.wishlist-out-of-stock { color: #F00; }
241
+ .wishlist_table tr td a.button { white-space: normal; }
242
+
243
+ /* Wishlist buttons */
244
+ a.add_to_wishlist{
245
+ cursor: pointer;
246
+ }
247
+
248
+ .summary .single_add_to_wishlist.button,
249
+ div.product .woocommerce-price-and-add .single_add_to_wishlist.button {
250
+ margin: 0px;
251
+ }
252
+
253
+ .wishlist_table .add_to_cart.button{
254
+ padding: 7px 12px;
255
+ line-height: normal;
256
+ }
257
+
258
+ .yith-wcwl-add-to-wishlist {
259
+ margin-top: 10px;
260
+ }
261
+
262
+ .yith-wcwl-add-button > a i,
263
+ .wishlist_table .add_to_cart.button i,
264
+ .wishlist_table .ask-an-estimate-button i,
265
+ .wishlist-title a.show-title-form i,
266
+ .hidden-title-form a.hide-title-form i,
267
+ .hidden-title-form button i,
268
+ .yith-wcwl-wishlist-new button i,
269
+ .wishlist_manage_table tfoot button.submit-wishlist-changes i,
270
+ .wishlist_manage_table tfoot a.create-new-wishlist i,
271
+ .yith-wcwl-wishlist-search-form button.wishlist-search-button i{
272
+ margin-right: 10px;
273
+ }
274
+
275
+ .wishlist_table .add_to_cart.button,
276
+ .yith-wcwl-add-button a.add_to_wishlist,
277
+ .yith-wcwl-popup-button a.add_to_wishlist,
278
+ .wishlist_table a.ask-an-estimate-button,
279
+ .wishlist-title a.show-title-form,
280
+ .hidden-title-form a.hide-title-form,
281
+ .woocommerce .yith-wcwl-wishlist-new button,
282
+ .wishlist_manage_table a.create-new-wishlist,
283
+ .wishlist_manage_table button.submit-wishlist-changes,
284
+ .yith-wcwl-wishlist-search-form button.wishlist-search-button{
285
+ margin: 0px;
286
+ box-shadow: none;
287
+ text-shadow: none;
288
+ border-radius: 3px;
289
+ }
290
+
291
+ /* Wishlist title */
292
+ .woocommerce .wishlist-title h2{
293
+ vertical-align: middle;
294
+ }
295
+
296
+ .woocommerce .wishlist-title a.show-title-form{
297
+ vertical-align: middle;
298
+ margin-left: 15px;
299
+ }
300
+
301
+ .woocommerce .hidden-title-form input[type="text"]{
302
+ border: 1px solid #ccc;
303
+ border-radius: 3px;
304
+ height: 35px;
305
+ min-width: 250px;
306
+ vertical-align: middle;
307
+ }
308
+
309
+ .woocommerce .hidden-title-form button{
310
+ padding: 7px 24px;
311
+ vertical-align: middle;
312
+ border: none;
313
+ position: relative;
314
+ }
315
+
316
+ .woocommerce .hidden-title-form button:active{
317
+ top: 1px;
318
+ }
319
+
320
+ .woocommerce .hidden-title-form a.hide-title-form{
321
+ vertical-align: middle;
322
+ line-height: normal;
323
+ }
324
+
325
+ /* Remove buttons */
326
+ .woocommerce #content table.wishlist_table.cart a.remove{
327
+ color: #c3c3c3;
328
+ margin: 0 auto;
329
+ }
330
+
331
+ .woocommerce #content table.wishlist_table.cart a.remove:hover{
332
+ background-color: #c3c3c3;
333
+ color: #fff;
334
+ }
335
+
336
+ /* Share buttons */
337
+ .yith-wcwl-share{
338
+ margin-bottom: 35px;
339
+ }
340
+
341
+ .yith-wcwl-share h4.yith-wcwl-share-title{
342
+ margin: 10px 0;
343
+ }
344
+
345
+ .yith-wcwl-share ul {
346
+ margin: 5px 0;
347
+ padding: 0;
348
+ }
349
+
350
+ .yith-wcwl-share ul, .yith-wcwl-share li { height: 21px; }
351
+ .yith-wcwl-share li, .entry-content .yith-wcwl-share li { margin-left: 0px; margin-right: 0px; }
352
+
353
+ .yith-wcwl-share li a {
354
+ background-position: left top;
355
+ display: inline-block;
356
+ width: 21px;
357
+ height: 21px;
358
+ border: none;
359
+ }
360
+
361
+ .yith-wcwl-share li a:hover { background-position: left bottom; }
362
+ .yith-wcwl-share li a.facebook { background-image: url(../images/facebook.png ); }
363
+ .yith-wcwl-share li a.twitter { background-image: url(../images/twitter.png ); }
364
+ .yith-wcwl-share li a.pinterest { background-image: url(../images/pinterest.jpg ); }
365
+ .yith-wcwl-share li a.googleplus { background-image: url(../images/googleplus.jpg ); }
366
+ .yith-wcwl-share li a.email { background-image: url(../images/email.jpg ); }
367
+
368
+ /* Ask an estimate button */
369
+ .woocommerce .wishlist_table.cart .ask-an-estimate-button,
370
+ .woocommerce .wishlist_table.cart #custom_add_to_cart{
371
+ margin: 10px 0;
372
+ display: inline-block;
373
+ }
374
+
375
+ .woocommerce .wishlist_table.cart .ask-an-estimate-button{
376
+ padding: 7px 12px;
377
+ line-height: normal;
378
+ }
379
+
380
+ #ask_an_estimate_popup{
381
+ display: none;
382
+ }
383
+
384
+ .ask-an-estimate-button-popup{
385
+ margin-top: 30px!important;
386
+ float: right;
387
+ text-transform: none;
388
+ }
389
+
390
+ #additional_notes{
391
+ min-height: 150px;
392
+ }
393
+
394
+ /* Create new wishlist*/
395
+ .yith-wcwl-wishlist-new{
396
+ padding: 20px 30px;
397
+ border-bottom: 1px solid #e7e7e7;
398
+ }
399
+
400
+ .yith-wcwl-wishlist-new label{
401
+ vertical-align: middle;
402
+ margin-right: 20px;
403
+ }
404
+
405
+ .yith-wcwl-wishlist-new input{
406
+ min-width: 190px;
407
+ }
408
+
409
+ .yith-wcwl-wishlist-new input[type="text"],
410
+ .yith-wcwl-wishlist-new select{
411
+ border: 1px solid #ccc;
412
+ border-radius: 3px;
413
+ height: 35px;
414
+ vertical-align: middle;
415
+ margin-right: 10px;
416
+ }
417
+
418
+ .woocommerce .yith-wcwl-wishlist-new button{
419
+ padding: 7px 24px;
420
+ vertical-align: middle;
421
+ border: 1px solid;
422
+ position: relative;
423
+ }
424
+
425
+ .woocommerce .yith-wcwl-wishlist-new button:active{
426
+ top: 1px;
427
+ }
428
+
429
+ /* Manage wishlists */
430
+ .woocommerce .wishlist_manage_table select{
431
+ border: 1px solid #ccc;
432
+ border-radius: 3px;
433
+ height: 35px;
434
+ vertical-align: middle;
435
+ margin-right: 10px;
436
+ }
437
+
438
+ .woocommerce table.wishlist_manage_table tfoot td{
439
+ text-align: right;
440
+ padding: 24px 12px;
441
+ }
442
+
443
+ .woocommerce .wishlist_manage_table tfoot button.submit-wishlist-changes{
444
+ padding: 7px 24px;
445
+ vertical-align: middle;
446
+ border: 1px solid;
447
+ border-radius: 3px;
448
+ position: relative;
449
+ line-height: normal;
450
+ }
451
+
452
+ .woocommerce .wishlist_manage_table tfoot button.submit-wishlist-changes:active{
453
+ top: 1px;
454
+ }
455
+
456
+ .woocommerce .wishlist_manage_table tfoot a.create-new-wishlist{
457
+ vertical-align: middle;
458
+ line-height: normal;
459
+ padding: 7px 24px;
460
+ }
461
+
462
+ /* Search wishlist */
463
+ .woocommerce .yith-wcwl-wishlist-search-form{
464
+ padding: 20px 80px;
465
+ border-bottom: 1px solid #e7e7e7;
466
+ }
467
+
468
+ .woocommerce .yith-wcwl-wishlist-search-form:after{
469
+ content: '';
470
+ display: block;
471
+ clear: both;
472
+ }
473
+
474
+ .woocommerce .yith-wcwl-wishlist-search-form #wishlist_search{
475
+ min-width: 300px;
476
+ border: 1px solid #ccc;
477
+ border-radius: 3px;
478
+ height: 35px;
479
+ vertical-align: middle;
480
+ float: left;
481
+ }
482
+
483
+ .woocommerce .yith-wcwl-wishlist-search-form button.wishlist-search-button{
484
+ padding: 7px 24px;
485
+ vertical-align: middle;
486
+ border: 1px solid;
487
+ border-radius: 3px;
488
+ position: relative;
489
+ line-height: normal;
490
+ float: right;
491
+ }
492
+
493
+ .woocommerce p.yith-wcwl-empty-search-result{
494
+ padding: 50px 0;
495
+ text-align: center;
496
+ }
497
+
498
+ .woocommerce .yith-wcwl-wishlist-search-form button.wishlist-search-button:active{
499
+ top: 1px;
500
+ }
501
+
502
+ .woocommerce ul.yith-wcwl-search-results,
503
+ .woocommerce ul.user-wishlists{
504
+ list-style: none;
505
+ margin: 0;
506
+ padding: 0;
507
+ }
508
+
509
+ .woocommerce ul.yith-wcwl-search-results > li{
510
+ padding: 50px 80px;
511
+ border-bottom: 1px solid #e7e7e7;
512
+ }
513
+
514
+ .woocommerce ul.yith-wcwl-search-results > li:after{
515
+ content: '';
516
+ display: block;
517
+ clear: both;
518
+ }
519
+
520
+ .woocommerce ul.yith-wcwl-search-results .thumb{
521
+ float: left;
522
+ margin-right: 15px;
523
+ }
524
+
525
+ .woocommerce ul.yith-wcwl-search-results .user-details{
526
+ overflow: hidden;
527
+ padding-top: 15px;
528
+ }
529
+
530
+ .woocommerce ul.yith-wcwl-search-results .user-details span{
531
+ display: block;
532
+ }
533
+
534
+ .woocommerce ul.yith-wcwl-search-results .user-details span.name{
535
+ font-weight: 700;
536
+ }
537
+
538
+ .woocommerce ul.yith-wcwl-search-results .reuslt-details{
539
+ float: left;
540
+ width: 50%;
541
+ }
542
+
543
+ .woocommerce ul.yith-wcwl-search-results .result-wishlists{
544
+ float: right;
545
+ max-width: 50%;
546
+ padding-top: 15px;
547
+ }
548
+
549
+ .woocommerce .yith-wcwl-search-pagination{
550
+ padding: 5px 0;
551
+ text-align: center;
552
+ }
553
+
554
+ /* AJAX loading gif */
555
+ .yith-wcwl-add-to-wishlist .ajax-loading {
556
+ box-shadow: none !important;
557
+ -moz-box-shadow: none !important;
558
+ -webkit-box-shadow: none !important;
559
+ display: inline !important;
560
+ margin-left: 5px;
561
+ vertical-align: middle;
562
+ visibility: hidden;
563
+ width: 16px !important;
564
+ height: 16px !important;
565
+ }
566
+
567
+ /* Widget wishlist */
568
+ .widget_yith-wcwl-lists ul.dropdown li{
569
+ padding: 0;
570
+ }
571
+
572
+ .widget_yith-wcwl-lists ul.dropdown > li a,
573
+ .widget_yith-wcwl-lists ul.dropdown ul.lists > li a{
574
+ display: block;
575
+ padding: 5px 15px;
576
+ }
577
+
578
+ .widget_yith-wcwl-lists ul.dropdown ul.lists > li a{
579
+ padding: 5px 25px;
580
+ }
581
+
582
+ .widget_yith-wcwl-lists ul.dropdown > li.lists-section{
583
+ border-bottom: 1px solid #e7e7e7;
584
+ }
585
+
586
+ .widget_yith-wcwl-lists ul.dropdown ul.lists{
587
+ margin: 0;
588
}
assets/js/admin/yith-wcwl.js CHANGED
@@ -1,5 +1,5 @@
1
- jQuery(document).ready(function(a){a("input#yith_wcwl_frontend_css").on("change",function(){a(this).is(":checked")?(a("#yith_wcwl_styles_colors").hide(),a("#yith_wcwl_rounded_corners").parents("tr").hide(),a("#yith_wcwl_add_to_wishlist_icon").parents("tr").hide(),a("#yith_wcwl_add_to_cart_icon").parents("tr").hide()):(a("#yith_wcwl_styles_colors").show(),a("#yith_wcwl_use_button").is(":checked")&&(a("#yith_wcwl_rounded_corners").parents("tr").show(),a("#yith_wcwl_add_to_wishlist_icon").parents("tr").show(),
2
- a("#yith_wcwl_add_to_cart_icon").parents("tr").show()))}).change();a("input#yith_wcwl_use_button").on("change",function(){a(this).is(":checked")&&!a("#yith_wcwl_frontend_css").is(":checked")?(a("#yith_wcwl_rounded_corners").parents("tr").show(),a("#yith_wcwl_add_to_wishlist_icon").parents("tr").show(),a("#yith_wcwl_add_to_cart_icon").parents("tr").show()):(a("#yith_wcwl_rounded_corners").parents("tr").hide(),a("#yith_wcwl_add_to_wishlist_icon").parents("tr").hide(),a("#yith_wcwl_add_to_cart_icon").parents("tr").hide())}).change();
3
- a("#yith_wcwl_multi_wishlist_enable").on("change",function(){a(this).is(":checked")?(a("#yith_wcwl_wishlist_create_title").parents("tr").show(),a("#yith_wcwl_wishlist_manage_title").parents("tr").show()):(a("#yith_wcwl_wishlist_create_title").parents("tr").hide(),a("#yith_wcwl_wishlist_manage_title").parents("tr").hide())}).change();a("input#yith_wcwl_disable_wishlist_for_unauthenticated_users").on("change",function(){a(this).is(":checked")?(a("#yith_wcwl_show_login_notice").parents("tr").hide(),
4
- a("#yith_wcwl_login_anchor_text").parents("tr").hide()):(a("#yith_wcwl_show_login_notice").parents("tr").show(),a("#yith_wcwl_login_anchor_text").parents("tr").show())}).change();a("input#yith_wcwl_show_estimate_button").on("change",function(){if(a(this).is(":checked")){var b=a("#yith_wcwl_show_additional_info_textarea");b.parents("tr").show();b.on("change",function(){a(this).is(":checked")?a("#yith_wcwl_additional_info_textarea_label").parents("tr").show():a("#yith_wcwl_additional_info_textarea_label").parents("tr").hide()}).change()}else a("#yith_wcwl_show_additional_info_textarea").parents("tr").hide(),
5
a("#yith_wcwl_additional_info_textarea_label").parents("tr").hide()}).change()});
1
+ jQuery(document).ready(function(a){a("input#yith_wcwl_frontend_css").on("change",function(){a(this).is(":checked")?(a("#yith_wcwl_styles_colors").hide(),a("#yith_wcwl_rounded_corners").parents("tr").hide(),a("#yith_wcwl_add_to_wishlist_icon").parents("tr").hide(),a("#yith_wcwl_add_to_cart_icon").parents("tr").hide()):(a("#yith_wcwl_styles_colors").show(),a("#yith_wcwl_use_button").is(":checked")&&(a("#yith_wcwl_rounded_corners").parents("tr").show(),a("#yith_wcwl_add_to_wishlist_icon").parents("tr").show(),
2
+ a("#yith_wcwl_add_to_cart_icon").parents("tr").show()))}).change();a("input#yith_wcwl_use_button").on("change",function(){a(this).is(":checked")&&!a("#yith_wcwl_frontend_css").is(":checked")?(a("#yith_wcwl_rounded_corners").parents("tr").show(),a("#yith_wcwl_add_to_wishlist_icon").parents("tr").show(),a("#yith_wcwl_add_to_cart_icon").parents("tr").show()):(a("#yith_wcwl_rounded_corners").parents("tr").hide(),a("#yith_wcwl_add_to_wishlist_icon").parents("tr").hide(),a("#yith_wcwl_add_to_cart_icon").parents("tr").hide())}).change();
3
+ a("#yith_wcwl_multi_wishlist_enable").on("change",function(){a(this).is(":checked")?(a("#yith_wcwl_wishlist_create_title").parents("tr").show(),a("#yith_wcwl_wishlist_manage_title").parents("tr").show()):(a("#yith_wcwl_wishlist_create_title").parents("tr").hide(),a("#yith_wcwl_wishlist_manage_title").parents("tr").hide())}).change();a("input#yith_wcwl_disable_wishlist_for_unauthenticated_users").on("change",function(){a(this).is(":checked")?(a("#yith_wcwl_show_login_notice").parents("tr").hide(),
4
+ a("#yith_wcwl_login_anchor_text").parents("tr").hide()):(a("#yith_wcwl_show_login_notice").parents("tr").show(),a("#yith_wcwl_login_anchor_text").parents("tr").show())}).change();a("input#yith_wcwl_show_estimate_button").on("change",function(){if(a(this).is(":checked")){var b=a("#yith_wcwl_show_additional_info_textarea");b.parents("tr").show();b.on("change",function(){a(this).is(":checked")?a("#yith_wcwl_additional_info_textarea_label").parents("tr").show():a("#yith_wcwl_additional_info_textarea_label").parents("tr").hide()}).change()}else a("#yith_wcwl_show_additional_info_textarea").parents("tr").hide(),
5
a("#yith_wcwl_additional_info_textarea_label").parents("tr").hide()}).change()});
assets/js/jquery.yith-wcwl.js CHANGED
@@ -1,19 +1,19 @@
1
- jQuery(document).ready(function(b){function l(){"undefined"!=typeof b.prettyPhoto&&b('a[data-rel="prettyPhoto[ask_an_estimate]"]').prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1});h.off("change");h=b('.wishlist_table tbody input[type="checkbox"]');"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox();k()}function r(){var a=b(".woocommerce-message");0==a.length?b("#yith-wcwl-form").prepend(yith_wcwl_l10n.labels.added_to_cart_message):
2
- a.fadeOut(300,function(){b(this).replaceWith(yith_wcwl_l10n.labels.added_to_cart_message).fadeIn()})}function t(a){var c=a.data("product-id"),d=b(".add-to-wishlist-"+c),c={add_to_wishlist:c,product_type:a.data("product-type"),action:yith_wcwl_l10n.actions.add_to_wishlist_action};if(yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in){var e=a.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content"),f=e.find(".wishlist-select"),g=e.find(".wishlist-name"),e=e.find(".wishlist-visibility");
3
- c.wishlist_id=f.val();c.wishlist_name=g.val();c.wishlist_visibility=e.val()}p()?b.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:c,dataType:"json",beforeSend:function(){a.siblings(".ajax-loading").css("visibility","visible")},complete:function(){a.siblings(".ajax-loading").css("visibility","hidden")},success:function(a){var c=b("#yith-wcwl-popup-message"),e=a.result,f=a.message;if(yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in){var g=b("select.wishlist-select");"undefined"!=typeof b.prettyPhoto&&
4
- b.prettyPhoto.close();g.each(function(d){d=b(this);var c=d.find("option"),c=c.slice(1,c.length-1);c.remove();if("undefined"!=typeof a.user_wishlists)for(c in c=0,a.user_wishlists)"1"!=a.user_wishlists[c].is_default&&b("<option>").val(a.user_wishlists[c].ID).html(a.user_wishlists[c].wishlist_name).insertBefore(d.find("option:last-child"))})}b("#yith-wcwl-message").html(f);c.css("margin-left","-"+b(c).width()+"px").fadeIn();window.setTimeout(function(){c.fadeOut()},2E3);"true"==e?((!yith_wcwl_l10n.multi_wishlist||
5
- !yith_wcwl_l10n.is_user_logged_in||yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&yith_wcwl_l10n.hide_add_button)&&d.find(".yith-wcwl-add-button").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistexistsbrowse").hide().removeClass("show").addClass("hide").find("a").attr("href",a.wishlist_url),d.find(".yith-wcwl-wishlistaddedbrowse").show().removeClass("hide").addClass("show").find("a").attr("href",a.wishlist_url)):"exists"==e?((!yith_wcwl_l10n.multi_wishlist||
6
- !yith_wcwl_l10n.is_user_logged_in||yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&yith_wcwl_l10n.hide_add_button)&&d.find(".yith-wcwl-add-button").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistexistsbrowse").show().removeClass("hide").addClass("show").find("a").attr("href",a.wishlist_url),d.find(".yith-wcwl-wishlistaddedbrowse").hide().removeClass("show").addClass("hide").find("a").attr("href",a.wishlist_url)):(d.find(".yith-wcwl-add-button").show().removeClass("hide").addClass("show"),
7
- d.find(".yith-wcwl-wishlistexistsbrowse").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistaddedbrowse").hide().removeClass("show").addClass("hide"));b("body").trigger("added_to_wishlist")}}):alert(yith_wcwl_l10n.labels.cookie_disabled)}function u(a){var c=a.parents(".cart.wishlist_table"),d=c.data("pagination"),e=c.data("per-page"),f=c.data("page");a=a.parents("tr");c.find(".pagination-row");a=a.data("row-id");var g=c.data("id"),m=c.data("token"),d={action:yith_wcwl_l10n.actions.remove_from_wishlist_action,
8
- remove_from_wishlist:a,pagination:d,per_page:e,current_page:f,wishlist_id:g,wishlist_token:m};b("#yith-wcwl-message").html("&nbsp;");"undefined"!=typeof b.fn.block&&c.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}});b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+" #yith-wcwl-form",d,function(){"undefined"!=typeof b.fn.unblock&&c.stop(!0).css("opacity","1").unblock();l();
9
- b("body").trigger("removed_from_wishlist")})}function v(a,c){var d=a.data("product-id"),e=b(document).find(".cart.wishlist_table"),f=e.data("pagination"),g=e.data("per-page"),m=e.data("id"),h=e.data("token"),d={action:yith_wcwl_l10n.actions.reload_wishlist_and_adding_elem_action,pagination:f,per_page:g,wishlist_id:m,wishlist_token:h,add_to_wishlist:d,product_type:a.data("product-type")};p()?b.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:d,dataType:"html",beforeSend:function(){"undefined"!=typeof b.fn.block&&
10
- e.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}})},success:function(a){a=b(a).find("#yith-wcwl-form");c.replaceWith(a);l()}}):alert(yith_wcwl_l10n.labels.cookie_disabled)}function w(a){var c=a.parents(".cart.wishlist_table"),d=c.data("token"),e=c.data("id"),f=a.parents("tr").data("row-id");a=a.val();var g=c.data("pagination"),h=c.data("per-page"),k=c.data("page"),d={action:yith_wcwl_l10n.actions.move_to_another_wishlist_action,
11
- wishlist_token:d,wishlist_id:e,destination_wishlist_token:a,item_id:f,pagination:g,per_page:h,current_page:k};""!=a&&("undefined"!=typeof b.fn.block&&c.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+" #yith-wcwl-form",d,function(){"undefined"!=typeof b.fn.unblock&&c.stop(!0).css("opacity","1").unblock();l();b("body").trigger("moved_to_another_wishlist")}))}
12
- function q(a){var c=b(this);a.preventDefault();c.parents(".wishlist-title").next().show();c.parents(".wishlist-title").hide()}function x(a){var c=b(this);a.preventDefault();c.parents(".hidden-title-form").hide();c.parents(".hidden-title-form").prev().show()}function p(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var a=-1!=document.cookie.indexOf("cookietest=");document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";return a}function y(){if(0!=b(".yith-wcwl-add-to-wishlist").length&&
13
- 0==b("#yith-wcwl-popup-message").length){var a=b("<div>").attr("id","yith-wcwl-message"),a=b("<div>").attr("id","yith-wcwl-popup-message").html(a).hide();b("body").prepend(a)}}function k(){h.on("change",function(){var a="",c=b(this).parents(".cart.wishlist_table"),d=c.data("id"),c=c.data("token"),e=document.URL;h.filter(":checked").each(function(){var c=b(this);a+=0!=a.length?",":"";a+=c.parents("tr").data("row-id")});e=n(e,"wishlist_products_to_add_to_cart",a);e=n(e,"wishlist_token",c);e=n(e,"wishlist_id",
14
- d);b("#custom_add_to_cart").attr("href",e)})}function n(a,b,d){d=b+"="+d;a=a.replace(new RegExp("(&|\\?)"+b+"=[^&]*"),"$1"+d);-1<a.indexOf(b+"=")||(a=-1<a.indexOf("?")?a+("&"+d):a+("?"+d));return a}var z="undefined"!==typeof wc_add_to_cart_params?wc_add_to_cart_params.cart_redirect_after_add:"",h=b('.wishlist_table tbody input[type="checkbox"]:not(:disabled)');b(document).on("yith_wcwl_init",function(){var a=b(this),c=b('.wishlist_table tbody input[type="checkbox"]:not(:disabled)');a.on("click",".add_to_wishlist",
15
- function(a){var c=b(this);a.preventDefault();t(c);return!1});a.on("click",".remove_from_wishlist",function(a){var c=b(this);a.preventDefault();u(c);return!1});a.on("adding_to_cart","body",function(a,b,c){0!=b.closest(".wishlist_table").length&&(c.remove_from_wishlist_after_add_to_cart=b.closest("tr").data("row-id"),c.wishlist_id=b.closest("table").data("id"),wc_add_to_cart_params.cart_redirect_after_add=yith_wcwl_l10n.redirect_to_cart)});a.on("added_to_cart","body",function(a){wc_add_to_cart_params.cart_redirect_after_add=
16
- z;a=b(".wishlist_table");a.find(".added").removeClass("added");a.find(".added_to_cart").remove()});a.on("added_to_cart","body",r);a.on("cart_page_refreshed","body",l);a.on("click",".show-title-form",q);a.on("click",".wishlist-title-with-form h2",q);a.on("click",".hide-title-form",x);a.on("change",".change-wishlist",function(a){a=b(this);w(a);return!1});a.on("change",".yith-wcwl-popup-content .wishlist-select",function(a){a=b(this);"new"==a.val()?a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").css("display",
17
- "table-row"):a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()});a.on("change","#bulk_add_to_cart",function(){b(this).is(":checked")?c.attr("checked","checked").change():c.removeAttr("checked").change()});a.on("click","#custom_add_to_cart",function(a){var e=b(this),f=e.parents(".cart.wishlist_table");yith_wcwl_l10n.ajax_add_to_cart_enabled&&(a.preventDefault(),"undefined"!=typeof b.fn.block&&f.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+
18
- ") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+e.attr("href")+" #yith-wcwl-form",{action:yith_wcwl_l10n.actions.bulk_add_to_cart_action},function(){"undefined"!=typeof b.fn.unblock&&f.stop(!0).css("opacity","1").unblock();"undefined"!=typeof b.prettyPhoto&&b('a[data-rel="prettyPhoto[ask_an_estimate]"]').prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1});c.off("change");
19
- c=b('.wishlist_table tbody input[type="checkbox"]');"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox();k()}))});a.on("click",".yith-wfbt-add-wishlist",function(a){a.preventDefault();a=b(this);var c=b("#yith-wcwl-form");b("html, body").animate({scrollTop:c.offset().top},500);v(a,c)});y();k()}).trigger("yith_wcwl_init");"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox()});
1
+ jQuery(document).ready(function(b){function l(){"undefined"!=typeof b.prettyPhoto&&b('a[data-rel="prettyPhoto[ask_an_estimate]"]').prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1});h.off("change");h=b('.wishlist_table tbody input[type="checkbox"]');"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox();k()}function r(){var a=b(".woocommerce-message");0==a.length?b("#yith-wcwl-form").prepend(yith_wcwl_l10n.labels.added_to_cart_message):
2
+ a.fadeOut(300,function(){b(this).replaceWith(yith_wcwl_l10n.labels.added_to_cart_message).fadeIn()})}function t(a){var c=a.data("product-id"),d=b(".add-to-wishlist-"+c),c={add_to_wishlist:c,product_type:a.data("product-type"),action:yith_wcwl_l10n.actions.add_to_wishlist_action};if(yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in){var e=a.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content"),f=e.find(".wishlist-select"),g=e.find(".wishlist-name"),e=e.find(".wishlist-visibility");
3
+ c.wishlist_id=f.val();c.wishlist_name=g.val();c.wishlist_visibility=e.val()}p()?b.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:c,dataType:"json",beforeSend:function(){a.siblings(".ajax-loading").css("visibility","visible")},complete:function(){a.siblings(".ajax-loading").css("visibility","hidden")},success:function(a){var c=b("#yith-wcwl-popup-message"),e=a.result,f=a.message;if(yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in){var g=b("select.wishlist-select");"undefined"!=typeof b.prettyPhoto&&
4
+ b.prettyPhoto.close();g.each(function(d){d=b(this);var c=d.find("option"),c=c.slice(1,c.length-1);c.remove();if("undefined"!=typeof a.user_wishlists)for(c in c=0,a.user_wishlists)"1"!=a.user_wishlists[c].is_default&&b("<option>").val(a.user_wishlists[c].ID).html(a.user_wishlists[c].wishlist_name).insertBefore(d.find("option:last-child"))})}b("#yith-wcwl-message").html(f);c.css("margin-left","-"+b(c).width()+"px").fadeIn();window.setTimeout(function(){c.fadeOut()},2E3);"true"==e?((!yith_wcwl_l10n.multi_wishlist||
5
+ !yith_wcwl_l10n.is_user_logged_in||yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&yith_wcwl_l10n.hide_add_button)&&d.find(".yith-wcwl-add-button").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistexistsbrowse").hide().removeClass("show").addClass("hide").find("a").attr("href",a.wishlist_url),d.find(".yith-wcwl-wishlistaddedbrowse").show().removeClass("hide").addClass("show").find("a").attr("href",a.wishlist_url)):"exists"==e?((!yith_wcwl_l10n.multi_wishlist||
6
+ !yith_wcwl_l10n.is_user_logged_in||yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&yith_wcwl_l10n.hide_add_button)&&d.find(".yith-wcwl-add-button").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistexistsbrowse").show().removeClass("hide").addClass("show").find("a").attr("href",a.wishlist_url),d.find(".yith-wcwl-wishlistaddedbrowse").hide().removeClass("show").addClass("hide").find("a").attr("href",a.wishlist_url)):(d.find(".yith-wcwl-add-button").show().removeClass("hide").addClass("show"),
7
+ d.find(".yith-wcwl-wishlistexistsbrowse").hide().removeClass("show").addClass("hide"),d.find(".yith-wcwl-wishlistaddedbrowse").hide().removeClass("show").addClass("hide"));b("body").trigger("added_to_wishlist")}}):alert(yith_wcwl_l10n.labels.cookie_disabled)}function u(a){var c=a.parents(".cart.wishlist_table"),d=c.data("pagination"),e=c.data("per-page"),f=c.data("page");a=a.parents("tr");c.find(".pagination-row");a=a.data("row-id");var g=c.data("id"),m=c.data("token"),d={action:yith_wcwl_l10n.actions.remove_from_wishlist_action,
8
+ remove_from_wishlist:a,pagination:d,per_page:e,current_page:f,wishlist_id:g,wishlist_token:m};b("#yith-wcwl-message").html("&nbsp;");"undefined"!=typeof b.fn.block&&c.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}});b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+" #yith-wcwl-form",d,function(){"undefined"!=typeof b.fn.unblock&&c.stop(!0).css("opacity","1").unblock();l();
9
+ b("body").trigger("removed_from_wishlist")})}function v(a,c){var d=a.data("product-id"),e=b(document).find(".cart.wishlist_table"),f=e.data("pagination"),g=e.data("per-page"),m=e.data("id"),h=e.data("token"),d={action:yith_wcwl_l10n.actions.reload_wishlist_and_adding_elem_action,pagination:f,per_page:g,wishlist_id:m,wishlist_token:h,add_to_wishlist:d,product_type:a.data("product-type")};p()?b.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:d,dataType:"html",beforeSend:function(){"undefined"!=typeof b.fn.block&&
10
+ e.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}})},success:function(a){a=b(a).find("#yith-wcwl-form");c.replaceWith(a);l()}}):alert(yith_wcwl_l10n.labels.cookie_disabled)}function w(a){var c=a.parents(".cart.wishlist_table"),d=c.data("token"),e=c.data("id"),f=a.parents("tr").data("row-id");a=a.val();var g=c.data("pagination"),h=c.data("per-page"),k=c.data("page"),d={action:yith_wcwl_l10n.actions.move_to_another_wishlist_action,
11
+ wishlist_token:d,wishlist_id:e,destination_wishlist_token:a,item_id:f,pagination:g,per_page:h,current_page:k};""!=a&&("undefined"!=typeof b.fn.block&&c.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+" #yith-wcwl-form",d,function(){"undefined"!=typeof b.fn.unblock&&c.stop(!0).css("opacity","1").unblock();l();b("body").trigger("moved_to_another_wishlist")}))}
12
+ function q(a){var c=b(this);a.preventDefault();c.parents(".wishlist-title").next().show();c.parents(".wishlist-title").hide()}function x(a){var c=b(this);a.preventDefault();c.parents(".hidden-title-form").hide();c.parents(".hidden-title-form").prev().show()}function p(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var a=-1!=document.cookie.indexOf("cookietest=");document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";return a}function y(){if(0!=b(".yith-wcwl-add-to-wishlist").length&&
13
+ 0==b("#yith-wcwl-popup-message").length){var a=b("<div>").attr("id","yith-wcwl-message"),a=b("<div>").attr("id","yith-wcwl-popup-message").html(a).hide();b("body").prepend(a)}}function k(){h.on("change",function(){var a="",c=b(this).parents(".cart.wishlist_table"),d=c.data("id"),c=c.data("token"),e=document.URL;h.filter(":checked").each(function(){var c=b(this);a+=0!=a.length?",":"";a+=c.parents("tr").data("row-id")});e=n(e,"wishlist_products_to_add_to_cart",a);e=n(e,"wishlist_token",c);e=n(e,"wishlist_id",
14
+ d);b("#custom_add_to_cart").attr("href",e)})}function n(a,b,d){d=b+"="+d;a=a.replace(new RegExp("(&|\\?)"+b+"=[^&]*"),"$1"+d);-1<a.indexOf(b+"=")||(a=-1<a.indexOf("?")?a+("&"+d):a+("?"+d));return a}var z="undefined"!==typeof wc_add_to_cart_params?wc_add_to_cart_params.cart_redirect_after_add:"",h=b('.wishlist_table tbody input[type="checkbox"]:not(:disabled)');b(document).on("yith_wcwl_init",function(){var a=b(this),c=b('.wishlist_table tbody input[type="checkbox"]:not(:disabled)');a.on("click",".add_to_wishlist",
15
+ function(a){var c=b(this);a.preventDefault();t(c);return!1});a.on("click",".remove_from_wishlist",function(a){var c=b(this);a.preventDefault();u(c);return!1});a.on("adding_to_cart","body",function(a,b,c){"undefined"!=typeof b&&"undefined"!=typeof c&&0!=b.closest(".wishlist_table").length&&(c.remove_from_wishlist_after_add_to_cart=b.closest("tr").data("row-id"),c.wishlist_id=b.closest("table").data("id"),wc_add_to_cart_params.cart_redirect_after_add=yith_wcwl_l10n.redirect_to_cart)});a.on("added_to_cart",
16
+ "body",function(a){wc_add_to_cart_params.cart_redirect_after_add=z;a=b(".wishlist_table");a.find(".added").removeClass("added");a.find(".added_to_cart").remove()});a.on("added_to_cart","body",r);a.on("cart_page_refreshed","body",l);a.on("click",".show-title-form",q);a.on("click",".wishlist-title-with-form h2",q);a.on("click",".hide-title-form",x);a.on("change",".change-wishlist",function(a){a=b(this);w(a);return!1});a.on("change",".yith-wcwl-popup-content .wishlist-select",function(a){a=b(this);"new"==
17
+ a.val()?a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").css("display","table-row"):a.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()});a.on("change","#bulk_add_to_cart",function(){b(this).is(":checked")?c.attr("checked","checked").change():c.removeAttr("checked").change()});a.on("click","#custom_add_to_cart",function(a){var e=b(this),f=e.parents(".cart.wishlist_table");yith_wcwl_l10n.ajax_add_to_cart_enabled&&(a.preventDefault(),"undefined"!=typeof b.fn.block&&
18
+ f.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),b("#yith-wcwl-form").load(yith_wcwl_l10n.ajax_url+e.attr("href")+" #yith-wcwl-form",{action:yith_wcwl_l10n.actions.bulk_add_to_cart_action},function(){"undefined"!=typeof b.fn.unblock&&f.stop(!0).css("opacity","1").unblock();"undefined"!=typeof b.prettyPhoto&&b('a[data-rel="prettyPhoto[ask_an_estimate]"]').prettyPhoto({hook:"data-rel",
19
+ social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1});c.off("change");c=b('.wishlist_table tbody input[type="checkbox"]');"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox();k()}))});a.on("click",".yith-wfbt-add-wishlist",function(a){a.preventDefault();a=b(this);var c=b("#yith-wcwl-form");b("html, body").animate({scrollTop:c.offset().top},500);v(a,c)});y();k()}).trigger("yith_wcwl_init");"undefined"!=typeof b.fn.selectBox&&b("select.selectBox").selectBox()});
assets/js/unminified/admin/yith-wcwl.js CHANGED
@@ -1,73 +1,73 @@
1
- jQuery( document ).ready( function( $ ){
2
- /* === COLORS TAB === */
3
- $('input#yith_wcwl_frontend_css').on('change',function () {
4
- if ($(this).is(':checked')) {
5
- $('#yith_wcwl_styles_colors').hide();
6
- $('#yith_wcwl_rounded_corners').parents('tr').hide();
7
- $('#yith_wcwl_add_to_wishlist_icon').parents('tr').hide();
8
- $('#yith_wcwl_add_to_cart_icon').parents('tr').hide();
9
- } else {
10
- $('#yith_wcwl_styles_colors').show();
11
- if ($('#yith_wcwl_use_button').is(':checked')) {
12
- $('#yith_wcwl_rounded_corners').parents('tr').show();
13
- $('#yith_wcwl_add_to_wishlist_icon').parents('tr').show();
14
- $('#yith_wcwl_add_to_cart_icon').parents('tr').show();
15
- }
16
- }
17
- }).change();
18
-
19
- $('input#yith_wcwl_use_button').on('change',function () {
20
- if ($(this).is(':checked') && !$('#yith_wcwl_frontend_css').is(':checked')) {
21
- $('#yith_wcwl_rounded_corners').parents('tr').show();
22
- $('#yith_wcwl_add_to_wishlist_icon').parents('tr').show();
23
- $('#yith_wcwl_add_to_cart_icon').parents('tr').show();
24
- } else {
25
- $('#yith_wcwl_rounded_corners').parents('tr').hide();
26
- $('#yith_wcwl_add_to_wishlist_icon').parents('tr').hide();
27
- $('#yith_wcwl_add_to_cart_icon').parents('tr').hide();
28
- }
29
- }).change();
30
-
31
- $('#yith_wcwl_multi_wishlist_enable').on('change', function () {
32
- if ($(this).is(':checked')) {
33
- $('#yith_wcwl_wishlist_create_title').parents('tr').show();
34
- $('#yith_wcwl_wishlist_manage_title').parents('tr').show();
35
- }
36
- else{
37
- $('#yith_wcwl_wishlist_create_title').parents('tr').hide();
38
- $('#yith_wcwl_wishlist_manage_title').parents('tr').hide();
39
- }
40
- }).change();
41
-
42
- /* === SETTINGS TAB === */
43
- $('input#yith_wcwl_disable_wishlist_for_unauthenticated_users').on('change',function () {
44
- if ($(this).is(':checked')) {
45
- $('#yith_wcwl_show_login_notice').parents('tr').hide();
46
- $('#yith_wcwl_login_anchor_text').parents('tr').hide();
47
- }
48
- else{
49
- $('#yith_wcwl_show_login_notice').parents('tr').show();
50
- $('#yith_wcwl_login_anchor_text').parents('tr').show();
51
- }
52
- }).change();
53
-
54
- $('input#yith_wcwl_show_estimate_button').on('change',function () {
55
- if ($(this).is(':checked')) {
56
- var additional_info = $('#yith_wcwl_show_additional_info_textarea');
57
-
58
- additional_info.parents('tr').show();
59
- additional_info.on( 'change', function(){
60
- if ($(this).is(':checked')) {
61
- $('#yith_wcwl_additional_info_textarea_label').parents('tr').show()
62
- }
63
- else{
64
- $('#yith_wcwl_additional_info_textarea_label').parents('tr').hide()
65
- }
66
- }).change();
67
- }
68
- else{
69
- $('#yith_wcwl_show_additional_info_textarea').parents('tr').hide();
70
- $('#yith_wcwl_additional_info_textarea_label').parents('tr').hide()
71
- }
72
- }).change();
73
} );
1
+ jQuery( document ).ready( function( $ ){
2
+ /* === COLORS TAB === */
3
+ $('input#yith_wcwl_frontend_css').on('change',function () {
4
+ if ($(this).is(':checked')) {
5
+ $('#yith_wcwl_styles_colors').hide();
6
+ $('#yith_wcwl_rounded_corners').parents('tr').hide();
7
+ $('#yith_wcwl_add_to_wishlist_icon').parents('tr').hide();
8
+ $('#yith_wcwl_add_to_cart_icon').parents('tr').hide();
9
+ } else {
10
+ $('#yith_wcwl_styles_colors').show();
11
+ if ($('#yith_wcwl_use_button').is(':checked')) {
12
+ $('#yith_wcwl_rounded_corners').parents('tr').show();
13
+ $('#yith_wcwl_add_to_wishlist_icon').parents('tr').show();
14
+ $('#yith_wcwl_add_to_cart_icon').parents('tr').show();
15
+ }
16
+ }
17
+ }).change();
18
+
19
+ $('input#yith_wcwl_use_button').on('change',function () {
20
+ if ($(this).is(':checked') && !$('#yith_wcwl_frontend_css').is(':checked')) {
21
+ $('#yith_wcwl_rounded_corners').parents('tr').show();
22
+ $('#yith_wcwl_add_to_wishlist_icon').parents('tr').show();
23
+ $('#yith_wcwl_add_to_cart_icon').parents('tr').show();
24
+ } else {
25
+ $('#yith_wcwl_rounded_corners').parents('tr').hide();
26
+ $('#yith_wcwl_add_to_wishlist_icon').parents('tr').hide();
27
+ $('#yith_wcwl_add_to_cart_icon').parents('tr').hide();
28
+ }
29
+ }).change();
30
+
31
+ $('#yith_wcwl_multi_wishlist_enable').on('change', function () {
32
+ if ($(this).is(':checked')) {
33
+ $('#yith_wcwl_wishlist_create_title').parents('tr').show();
34
+ $('#yith_wcwl_wishlist_manage_title').parents('tr').show();
35
+ }
36
+ else{
37
+ $('#yith_wcwl_wishlist_create_title').parents('tr').hide();
38
+ $('#yith_wcwl_wishlist_manage_title').parents('tr').hide();
39
+ }
40
+ }).change();
41
+
42
+ /* === SETTINGS TAB === */
43
+ $('input#yith_wcwl_disable_wishlist_for_unauthenticated_users').on('change',function () {
44
+ if ($(this).is(':checked')) {
45
+ $('#yith_wcwl_show_login_notice').parents('tr').hide();
46
+ $('#yith_wcwl_login_anchor_text').parents('tr').hide();
47
+ }
48
+ else{
49
+ $('#yith_wcwl_show_login_notice').parents('tr').show();
50
+ $('#yith_wcwl_login_anchor_text').parents('tr').show();
51
+ }
52
+ }).change();
53
+
54
+ $('input#yith_wcwl_show_estimate_button').on('change',function () {
55
+ if ($(this).is(':checked')) {
56
+ var additional_info = $('#yith_wcwl_show_additional_info_textarea');
57
+
58
+ additional_info.parents('tr').show();
59
+ additional_info.on( 'change', function(){
60
+ if ($(this).is(':checked')) {
61
+ $('#yith_wcwl_additional_info_textarea_label').parents('tr').show()
62
+ }
63
+ else{
64
+ $('#yith_wcwl_additional_info_textarea_label').parents('tr').hide()
65
+ }
66
+ }).change();
67
+ }
68
+ else{
69
+ $('#yith_wcwl_show_additional_info_textarea').parents('tr').hide();
70
+ $('#yith_wcwl_additional_info_textarea_label').parents('tr').hide()
71
+ }
72
+ }).change();
73
} );
assets/js/unminified/jquery.yith-wcwl.js CHANGED
@@ -1,604 +1,604 @@
1
- jQuery( document ).ready( function( $ ){
2
-
3
- var cart_redirect_after_add = typeof( wc_add_to_cart_params ) !== 'undefined' ? wc_add_to_cart_params.cart_redirect_after_add : '',
4
- this_page = window.location.toString(),
5
- checkboxes = $( '.wishlist_table tbody input[type="checkbox"]:not(:disabled)');
6
-
7
- $(document).on( 'yith_wcwl_init', function(){
8
- var t = $(this),
9
- checkboxes = $( '.wishlist_table tbody input[type="checkbox"]:not(:disabled)');
10
-
11
- t.on( 'click', '.add_to_wishlist', function( ev ) {
12
- var t = $( this);
13
-
14
- ev.preventDefault();
15
-
16
- call_ajax_add_to_wishlist( t );
17
-
18
- return false;
19
- } );
20
-
21
- t.on( 'click', '.remove_from_wishlist', function( ev ){
22
- var t = $( this );
23
-
24
- ev.preventDefault();
25
-
26
- remove_item_from_wishlist( t );
27
-
28
- return false;
29
- } );
30
-
31
- t.on( 'adding_to_cart', 'body', function( ev, button, data ){
32
- if( button.closest( '.wishlist_table' ).length != 0 ){
33
- data.remove_from_wishlist_after_add_to_cart = button.closest( 'tr' ).data( 'row-id' );
34
- data.wishlist_id = button.closest( 'table' ).data( 'id' );
35
- wc_add_to_cart_params.cart_redirect_after_add = yith_wcwl_l10n.redirect_to_cart;
36
- }
37
- } );
38
-
39
- t.on( 'added_to_cart', 'body', function( ev ){
40
- wc_add_to_cart_params.cart_redirect_after_add = cart_redirect_after_add;
41
-
42
- var wishlist = $( '.wishlist_table');
43
-
44
- wishlist.find( '.added' ).removeClass( 'added' );
45
- wishlist.find( '.added_to_cart' ).remove();
46
- } );
47
-
48
- t.on( 'added_to_cart', 'body', print_add_to_cart_notice );
49
-
50
- t.on( 'cart_page_refreshed', 'body', init_handling_after_ajax );
51
-
52
- t.on( 'click', '.show-title-form', show_title_form );
53
-
54
- t.on( 'click', '.wishlist-title-with-form h2', show_title_form );
55
-
56
- t.on( 'click', '.hide-title-form', hide_title_form );
57
-
58
- t.on( 'change', '.change-wishlist', function( ev ){
59
- var t = $(this);
60
-
61
- move_item_to_another_wishlist( t );
62
-
63
- return false;
64
- } );
65
-
66
- t.on( 'change', '.yith-wcwl-popup-content .wishlist-select', function( ev ){
67
- var t = $(this);
68
-
69
- if( t.val() == 'new' ){
70
- t.parents( '.yith-wcwl-first-row' ).next( '.yith-wcwl-second-row' ).css( 'display', 'table-row' );
71
- }
72
- else{
73
- t.parents( '.yith-wcwl-first-row' ).next( '.yith-wcwl-second-row' ).hide();
74
- }
75
- } );
76
-
77
- t.on( 'change', '#bulk_add_to_cart', function(){
78
- var t = $(this);
79
-
80
- if( t.is( ':checked' ) ){
81
- checkboxes.attr( 'checked','checked').change();
82
- }
83
- else{
84
- checkboxes.removeAttr( 'checked').change();
85
- }
86
- } );
87
-
88
- t.on( 'click', '#custom_add_to_cart', function(ev){
89
- var t = $(this),
90
- table = t.parents( '.cart.wishlist_table' );
91
-
92
- if( ! yith_wcwl_l10n.ajax_add_to_cart_enabled ){
93
- return;
94
- }
95
-
96
- ev.preventDefault();
97
-
98
- if( typeof $.fn.block != 'undefined' ) {
99
- table.fadeTo('400', '0.6').block({message: null,
100
- overlayCSS : {
101
- background : 'transparent url(' + yith_wcwl_l10n.ajax_loader_url + ') no-repeat center',
102
- backgroundSize: '16px 16px',
103
- opacity : 0.6
104
- }
105
- });
106
- }
107
-
108
- $( '#yith-wcwl-form' ).load( yith_wcwl_l10n.ajax_url + t.attr( 'href' ) + ' #yith-wcwl-form', {action: yith_wcwl_l10n.actions.bulk_add_to_cart_action}, function(){
109
-
110
- if( typeof $.fn.unblock != 'undefined' ) {
111
- table.stop(true).css('opacity', '1').unblock();
112
- }
113
-
114
- if( typeof $.prettyPhoto != 'undefined' ) {
115
- $('a[data-rel="prettyPhoto[ask_an_estimate]"]').prettyPhoto({
116
- hook : 'data-rel',
117
- social_tools : false,
118
- theme : 'pp_woocommerce',
119
- horizontal_padding: 20,
120
- opacity : 0.8,
121
- deeplinking : false
122
- });
123
- }
124
-
125
- checkboxes.off('change');
126
- checkboxes = $( '.wishlist_table tbody input[type="checkbox"]');
127
-
128
- if( typeof $.fn.selectBox != 'undefined' ) {
129
- $('select.selectBox').selectBox();
130
- }
131
-
132
- handle_wishlist_checkbox();
133
- } );
134
- } );
135
-
136
- t.on('click', '.yith-wfbt-add-wishlist', function(e){
137
- e.preventDefault();
138
- var t = $(this),
139
- form = $( '#yith-wcwl-form' );
140
-
141
- $('html, body').animate({
142
- scrollTop: ( form.offset().top)
143
- },500);
144
-
145
- // ajax call
146
- reload_wishlist_and_adding_elem( t, form );
147
- });
148
-
149
- add_wishlist_popup();
150
-
151
- handle_wishlist_checkbox();
152
-
153
- } ).trigger('yith_wcwl_init');
154
-
155
- /**
156
- * Adds selectbox where needed
157
- */
158
- if( typeof $.fn.selectBox != 'undefined' ) {
159
- $('select.selectBox').selectBox();
160
- }
161
-
162
- /**
163
- * Init js handling on wishlist table items after ajax update
164
- *
165
- * @return void
166
- * @since 2.0.7
167
- */
168
- function init_handling_after_ajax(){
169
- if( typeof $.prettyPhoto != 'undefined' ) {
170
- $('a[data-rel="prettyPhoto[ask_an_estimate]"]').prettyPhoto({
171
- hook : 'data-rel',
172
- social_tools : false,
173
- theme : 'pp_woocommerce',
174
- horizontal_padding: 20,
175
- opacity : 0.8,
176
- deeplinking : false
177
- });
178
- }
179
-
180
- checkboxes.off('change');
181
- checkboxes = $( '.wishlist_table tbody input[type="checkbox"]');
182
-
183
- if( typeof $.fn.selectBox != 'undefined' ) {
184
- $('select.selectBox').selectBox();
185
- }
186
-
187
- handle_wishlist_checkbox();
188
- }
189
-
190
- /**
191
- * Print "Product added to cart" notice
192
- *
193
- * @return void
194
- * @since 2.0.11
195
- */
196
- function print_add_to_cart_notice(){
197
- var messages = $( '.woocommerce-message');
198
-
199
- if( messages.length == 0 ){
200
- $( '#yith-wcwl-form').prepend( yith_wcwl_l10n.labels.added_to_cart_message );
201
- }
202
- else{
203
- messages.fadeOut( 300, function(){
204
- $(this).replaceWith( yith_wcwl_l10n.labels.added_to_cart_message ).fadeIn();
205
- } );
206
- }
207
- }
208
-
209
- /**
210
- * Add a product in the wishlist.
211
- *
212
- * @param object el
213
- * @return void
214
- * @since 1.0.0
215
- */
216
- function call_ajax_add_to_wishlist( el ) {
217
- var product_id = el.data( 'product-id' ),
218
- el_wrap = $( '.add-to-wishlist-' + product_id ),
219
- data = {
220
- add_to_wishlist: product_id,
221
- product_type: el.data( 'product-type' ),
222
- action: yith_wcwl_l10n.actions.add_to_wishlist_action
223
- };
224
-
225
- if( yith_wcwl_l10n.multi_wishlist && yith_wcwl_l10n.is_user_logged_in ){
226
- var wishlist_popup_container = el.parents( '.yith-wcwl-popup-footer' ).prev( '.yith-wcwl-popup-content' ),
227
- wishlist_popup_select = wishlist_popup_container.find( '.wishlist-select' ),
228
- wishlist_popup_name = wishlist_popup_container.find( '.wishlist-name' ),
229
- wishlist_popup_visibility = wishlist_popup_container.find( '.wishlist-visibility' );
230
-
231
- data.wishlist_id = wishlist_popup_select.val();
232
- data.wishlist_name = wishlist_popup_name.val();
233
- data.wishlist_visibility = wishlist_popup_visibility.val();
234
- }
235
-
236
- if( ! is_cookie_enabled() ){
237
- alert( yith_wcwl_l10n.labels.cookie_disabled );
238
- return;
239
- }
240
-
241
- $.ajax({
242
- type: 'POST',
243
- url: yith_wcwl_l10n.ajax_url,
244
- data: data,
245
- dataType: 'json',
246
- beforeSend: function(){
247
- el.siblings( '.ajax-loading' ).css( 'visibility', 'visible' );
248
- },
249
- complete: function(){
250
- el.siblings( '.ajax-loading' ).css( 'visibility', 'hidden' );
251
- },
252
- success: function( response ) {
253
- var msg = $( '#yith-wcwl-popup-message' ),
254
- response_result = response.result,
255
- response_message = response.message;
256
-
257
- if( yith_wcwl_l10n.multi_wishlist && yith_wcwl_l10n.is_user_logged_in ) {
258
- var wishlist_select = $( 'select.wishlist-select' );
259
- if( typeof $.prettyPhoto != 'undefined' ) {
260
- $.prettyPhoto.close();
261
- }
262
-
263
- wishlist_select.each( function( index ){
264
- var t = $(this),
265
- wishlist_options = t.find( 'option' );
266
-
267
- wishlist_options = wishlist_options.slice( 1, wishlist_options.length - 1 );
268
- wishlist_options.remove();
269
-
270
- if( typeof( response.user_wishlists ) != 'undefined' ){
271
- var i = 0;
272
- for( i in response.user_wishlists ) {
273
- if ( response.user_wishlists[i].is_default != "1" ) {
274
- $('<option>')
275
- .val(response.user_wishlists[i].ID)
276
- .html(response.user_wishlists[i].wishlist_name)
277
- .insertBefore(t.find('option:last-child'))
278
- }
279
- }
280
- }
281
- } );
282
- }
283
-
284
- $( '#yith-wcwl-message' ).html( response_message );
285
- msg.css( 'margin-left', '-' + $( msg ).width() + 'px' ).fadeIn();
286
- window.setTimeout( function() {
287
- msg.fadeOut();
288
- }, 2000 );
289
-
290
- if( response_result == "true" ) {
291
- if( ! yith_wcwl_l10n.multi_wishlist || ! yith_wcwl_l10n.is_user_logged_in || ( yith_wcwl_l10n.multi_wishlist && yith_wcwl_l10n.is_user_logged_in && yith_wcwl_l10n.hide_add_button ) ) {
292
- el_wrap.find('.yith-wcwl-add-button').hide().removeClass('show').addClass('hide');
293
- }
294
-
295
- el_wrap.find( '.yith-wcwl-wishlistexistsbrowse').hide().removeClass('show').addClass('hide').find('a').attr('href', response.wishlist_url);
296
- el_wrap.find( '.yith-wcwl-wishlistaddedbrowse' ).show().removeClass('hide').addClass('show').find('a').attr('href', response.wishlist_url);
297
- } else if( response_result == "exists" ) {
298
- if( ! yith_wcwl_l10n.multi_wishlist || ! yith_wcwl_l10n.is_user_logged_in || ( yith_wcwl_l10n.multi_wishlist && yith_wcwl_l10n.is_user_logged_in && yith_wcwl_l10n.hide_add_button ) ) {
299
- el_wrap.find('.yith-wcwl-add-button').hide().removeClass('show').addClass('hide');
300
- }
301
-
302
- el_wrap.find( '.yith-wcwl-wishlistexistsbrowse' ).show().removeClass('hide').addClass('show').find('a').attr('href', response.wishlist_url);
303
- el_wrap.find( '.yith-wcwl-wishlistaddedbrowse' ).hide().removeClass('show').addClass('hide').find('a').attr('href', response.wishlist_url);
304
- } else {
305
- el_wrap.find( '.yith-wcwl-add-button' ).show().removeClass('hide').addClass('show');
306
- el_wrap.find( '.yith-wcwl-wishlistexistsbrowse' ).hide().removeClass('show').addClass('hide');
307
- el_wrap.find( '.yith-wcwl-wishlistaddedbrowse' ).hide().removeClass('show').addClass('hide');
308
- }
309
-
310
- $('body').trigger('added_to_wishlist');
311
- }
312
-
313
- });
314
- }
315
-
316
- /**
317
- * Remove a product from the wishlist.
318
- *
319
- * @param object el
320
- * @return void
321
- * @since 1.0.0
322
- */
323
- function remove_item_from_wishlist( el ) {
324
- var table = el.parents( '.cart.wishlist_table' ),
325
- pagination = table.data( 'pagination' ),
326
- per_page = table.data( 'per-page' ),
327
- current_page = table.data( 'page' ),
328
- row = el.parents( 'tr' ),
329
- pagination_row = table.find( '.pagination-row'),
330
- data_row_id = row.data( 'row-id'),
331
- wishlist_id = table.data( 'id' ),
332
- wishlist_token = table.data( 'token' ),
333
- data = {
334
- action: yith_wcwl_l10n.actions.remove_from_wishlist_action,
335
- remove_from_wishlist: data_row_id,
336
- pagination: pagination,
337
- per_page: per_page,
338
- current_page: current_page,
339
- wishlist_id: wishlist_id,
340
- wishlist_token: wishlist_token
341
- };
342
-
343
- $( '#yith-wcwl-message' ).html( '&nbsp;' );
344
-
345
- if( typeof $.fn.block != 'undefined' ) {
346
- table.fadeTo('400', '0.6').block({message: null,
347
- overlayCSS : {
348
- background : 'transparent url(' + yith_wcwl_l10n.ajax_loader_url + ') no-repeat center',
349
- backgroundSize: '16px 16px',
350
- opacity : 0.6
351
- }
352
- });
353
- }
354
-
355
- $( '#yith-wcwl-form' ).load( yith_wcwl_l10n.ajax_url + ' #yith-wcwl-form', data, function(){
356
-
357
- if( typeof $.fn.unblock != 'undefined' ) {
358
- table.stop(true).css('opacity', '1').unblock();
359
- }
360
-
361
- init_handling_after_ajax();
362
-
363
- $('body').trigger('removed_from_wishlist');
364
- } );
365
- }
366
-
367
- /**
368
- * Remove a product from the wishlist.
369
- *
370
- * @param object el
371
- * @return void
372
- * @since 1.0.0
373
- */
374
- function reload_wishlist_and_adding_elem( el, form ) {
375
-
376
- var product_id = el.data( 'product-id' ),
377
- table = $(document).find( '.cart.wishlist_table' ),
378
- pagination = table.data( 'pagination' ),
379
- per_page = table.data( 'per-page' ),
380
- wishlist_id = table.data( 'id' ),
381
- wishlist_token = table.data( 'token' ),
382
- data = {
383
- action: yith_wcwl_l10n.actions.reload_wishlist_and_adding_elem_action,
384
- pagination: pagination,
385
- per_page: per_page,
386
- wishlist_id: wishlist_id,
387
- wishlist_token: wishlist_token,
388
- add_to_wishlist: product_id,
389
- product_type: el.data( 'product-type' )
390
- };
391
-
392
- if( ! is_cookie_enabled() ){
393
- alert( yith_wcwl_l10n.labels.cookie_disabled );
394
- return
395
- }
396
-
397
- $.ajax({
398
- type: 'POST',
399
- url: yith_wcwl_l10n.ajax_url,
400
- data: data,
401
- dataType : 'html',
402
- beforeSend: function(){
403
- if( typeof $.fn.block != 'undefined' ) {
404
- table.fadeTo('400', '0.6').block({message: null,
405
- overlayCSS : {
406
- background : 'transparent url(' + yith_wcwl_l10n.ajax_loader_url + ') no-repeat center',
407
- backgroundSize: '16px 16px',
408
- opacity : 0.6
409
- }
410
- });
411
- }
412
- },
413
- success: function(res) {
414
- var obj = $(res),
415
- new_form = obj.find('#yith-wcwl-form'); // get new form
416
-
417
- form.replaceWith( new_form );
418
- init_handling_after_ajax();
419
- }
420
- });
421
- }
422
-
423
- /**
424
- * Move item to another wishlist
425
- *
426
- * @param object el
427
- * @return void
428
- * @since 2.0.7
429
- */
430
- function move_item_to_another_wishlist( el ){
431
- var table = el.parents( '.cart.wishlist_table'),
432
- wishlist_token = table.data( 'token'),
433
- wishlist_id = table.data( 'id' ),
434
- item = el.parents( 'tr'),
435
- item_id = item.data( 'row-id'),
436
- to_token = el.val(),
437
- pagination = table.data( 'pagination' ),
438
- per_page = table.data( 'per-page' ),
439
- current_page = table.data( 'page' ),
440
- data = {
441
- action: yith_wcwl_l10n.actions.move_to_another_wishlist_action,
442
- wishlist_token: wishlist_token,
443
- wishlist_id: wishlist_id,
444
- destination_wishlist_token: to_token,
445
- item_id: item_id,
446
- pagination: pagination,
447
- per_page: per_page,
448
- current_page: current_page
449
- };
450
-
451
- if( to_token == '' ){
452
- return;
453
- }
454
-
455
- if( typeof $.fn.block != 'undefined' ) {
456
- table.fadeTo('400', '0.6').block({message: null,
457
- overlayCSS : {
458
- background : 'transparent url(' + yith_wcwl_l10n.ajax_loader_url + ') no-repeat center',
459
- backgroundSize: '16px 16px',
460
- opacity : 0.6
461
- }
462
- });
463
- }
464
-
465
- $( '#yith-wcwl-form' ).load( yith_wcwl_l10n.ajax_url + ' #yith-wcwl-form', data, function(){
466
-
467
- if( typeof $.fn.unblock != 'undefined' ) {
468
- table.stop(true).css('opacity', '1').unblock();
469
- }
470
-
471
- init_handling_after_ajax();
472
-
473
- $('body').trigger('moved_to_another_wishlist');
474
- } );
475
- }
476
-
477
- /**
478
- * Show form to edit wishlist title
479
- *
480
- * @param ev event
481
- * @return void
482
- * @since 2.0.0
483
- */
484
- function show_title_form( ev ){
485
- var t = $(this);
486
- ev.preventDefault();
487
-
488
- t.parents( '.wishlist-title' ).next().show();
489
- t.parents( '.wishlist-title' ).hide();
490
- }
491
-
492
- /**
493
- * Hide form to edit wishlist title
494
- *
495
- * @param ev event
496
- * @return void
497
- * @since 2.0.0
498
- */
499
- function hide_title_form( ev ) {
500
- var t = $(this);
501
- ev.preventDefault();
502
-
503
- t.parents( '.hidden-title-form').hide();
504
- t.parents( '.hidden-title-form').prev().show ();
505
- }
506
-
507
- /**
508
- * Check if cookies are enabled
509
- *
510
- * @return bool
511
- * @since 2.0.0
512
- */
513
- function is_cookie_enabled() {
514
- if (navigator.cookieEnabled) return true;
515
-
516
- // set and read cookie
517
- document.cookie = "cookietest=1";
518
- var ret = document.cookie.indexOf("cookietest=") != -1;
519
-
520
- // delete cookie
521
- document.cookie = "cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";
522
-
523
- return ret;
524
- }
525
-
526
- /**
527
- * Add wishlist popup message
528
- *
529
- * @return void
530
- * @since 2.0.0
531
- */
532
- function add_wishlist_popup() {
533
- if( $('.yith-wcwl-add-to-wishlist').length != 0 && $( '#yith-wcwl-popup-message' ).length == 0 ) {
534
- var message_div = $( '<div>' )
535
- .attr( 'id', 'yith-wcwl-message' ),
536
- popup_div = $( '<div>' )
537
- .attr( 'id', 'yith-wcwl-popup-message' )
538
- .html( message_div )
539
- .hide();
540
-
541
- $( 'body' ).prepend( popup_div );
542
- }
543
- }
544
-
545
- /**
546
- * Handle "Add to cart" checkboxes events
547
- *
548
- * @return void
549
- * @since 2.0.5
550
- */
551
- function handle_wishlist_checkbox() {
552
- checkboxes.on( 'change', function(){
553
- var ids = '',
554
- table = $(this).parents( '.cart.wishlist_table'),
555
- wishlist_id = table.data( 'id'),
556
- wishlist_token = table.data( 'token'),
557
- url = document.URL;
558
-
559
- checkboxes.filter(':checked').each( function(){
560
- var t = $(this);
561
- ids += ( ids.length != 0 ) ? ',' : '';
562
- ids += t.parents('tr').data( 'row-id' );
563
- } );
564
-
565
- url = add_query_arg( url, 'wishlist_products_to_add_to_cart', ids );
566
- url = add_query_arg( url, 'wishlist_token', wishlist_token );
567
- url = add_query_arg( url, 'wishlist_id', wishlist_id );
568
-
569
- $('#custom_add_to_cart').attr( 'href', url );
570
- } );
571
- }
572
-
573
- /**
574
- * Add a query arg to an url
575
- *
576
- * @param purl original url
577
- * @param key query argr key
578
- * @param value query arg value
579
- * @return string
580
- * @since 2.0.7
581
- */
582
- function add_query_arg(purl, key,value){
583
- var s = purl;
584
- var pair = key+"="+value;
585
-
586
- var r = new RegExp("(&|\\?)"+key+"=[^\&]*");
587
-
588
- s = s.replace(r,"$1"+pair);
589
-
590
- if(s.indexOf(key + '=')>-1){
591
-
592
-
593
- }
594
- else{
595
- if(s.indexOf('?')>-1){
596
- s+='&'+pair;
597
- }else{
598
- s+='?'+pair;
599
- }
600
- }
601
-
602
- return s;
603
- }
604
});
1
+ jQuery( document ).ready( function( $ ){
2
+
3
+ var cart_redirect_after_add = typeof( wc_add_to_cart_params ) !== 'undefined' ? wc_add_to_cart_params.cart_redirect_after_add : '',
4
+ this_page = window.location.toString(),
5
+ checkboxes = $( '.wishlist_table tbody input[type="checkbox"]:not(:disabled)');
6
+
7
+ $(document).on( 'yith_wcwl_init', function(){
8
+ var t = $(this),
9
+ checkboxes = $( '.wishlist_table tbody input[type="checkbox"]:not(:disabled)');
10
+
11
+ t.on( 'click', '.add_to_wishlist', function( ev ) {
12
+ var t = $( this);
13
+
14
+ ev.preventDefault();
15
+
16
+ call_ajax_add_to_wishlist( t );
17
+
18
+ return false;
19
+ } );
20
+
21
+ t.on( 'click', '.remove_from_wishlist', function( ev ){
22
+ var t = $( this );
23
+
24
+ ev.preventDefault();
25
+
26
+ remove_item_from_wishlist( t );
27
+
28
+ return false;
29
+ } );
30
+
31
+ t.on( 'adding_to_cart', 'body', function( ev, button, data ){
32
+ if( typeof button != 'undefined' && typeof data != 'undefined' && button.closest( '.wishlist_table' ).length != 0 ){
33
+ data.remove_from_wishlist_after_add_to_cart = button.closest( 'tr' ).data( 'row-id' );
34
+ data.wishlist_id = button.closest( 'table' ).data( 'id' );
35
+ wc_add_to_cart_params.cart_redirect_after_add = yith_wcwl_l10n.redirect_to_cart;
36
+ }
37
+ } );
38
+
39
+ t.on( 'added_to_cart', 'body', function( ev ){
40
+ wc_add_to_cart_params.cart_redirect_after_add = cart_redirect_after_add;
41
+
42
+ var wishlist = $( '.wishlist_table');
43
+
44
+ wishlist.find( '.added' ).removeClass( 'added' );
45
+ wishlist.find( '.added_to_cart' ).remove();
46
+ } );
47
+
48
+ t.on( 'added_to_cart', 'body', print_add_to_cart_notice );
49
+
50
+ t.on( 'cart_page_refreshed', 'body', init_handling_after_ajax );
51
+
52
+ t.on( 'click', '.show-title-form', show_title_form );
53
+
54
+ t.on( 'click', '.wishlist-title-with-form h2', show_title_form );
55
+
56
+ t.on( 'click', '.hide-title-form', hide_title_form );
57
+
58
+ t.on( 'change', '.change-wishlist', function( ev ){
59
+ var t = $(this);
60
+
61
+ move_item_to_another_wishlist( t );
62
+
63
+ return false;
64
+ } );
65
+
66
+ t.on( 'change', '.yith-wcwl-popup-content .wishlist-select', function( ev ){
67
+ var t = $(this);
68
+
69
+ if( t.val() == 'new' ){
70
+ t.parents( '.yith-wcwl-first-row' ).next( '.yith-wcwl-second-row' ).css( 'display', 'table-row' );
71
+ }
72
+ else{
73
+ t.parents( '.yith-wcwl-first-row' ).next( '.yith-wcwl-second-row' ).hide();
74
+ }
75
+ } );
76
+
77
+ t.on( 'change', '#bulk_add_to_cart', function(){
78
+ var t = $(this);
79
+
80
+ if( t.is( ':checked' ) ){
81
+ checkboxes.attr( 'checked','checked').change();
82
+ }
83
+ else{
84
+