{"id":351912,"date":"2026-02-23T09:39:23","date_gmt":"2026-02-23T09:39:23","guid":{"rendered":"https:\/\/preview-excellence.x-tra.it\/lista-dei-desideri\/"},"modified":"2026-02-26T16:44:53","modified_gmt":"2026-02-26T16:44:53","slug":"wishlist","status":"publish","type":"page","link":"https:\/\/preview-excellent.x-tra.it\/en\/wishlist\/","title":{"rendered":"Wishlist"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p><\/p>\n<p>[vc_row eplay_row_width=&#8221;grid&#8221; css=&#8221;.vc_custom_1772120745021{margin-bottom: 35px !important;padding-bottom: 80px !important;background-color: #F5F1EC !important;}&#8221;][vc_column]<div class=\"eplay-section-title is-align-center is-uppercase\" style=\" margin-top:50px; margin-bottom:50px;\"><h2 class=\"eplay-section-title__title\">LA NOSTRA STORIA<\/h2><span class=\"eplay-section-title__line\" aria-hidden=\"true\"><\/span><div class=\"eplay-section-title__subtitle\">CHI SIAMO STATI E CHI SIAMO OGGI<\/div><\/div>[\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text css=&#8221;&#8221;]\n\n\n\n<form\n\tid=\"yith-wcwl-form\"\n\taction=\"https:\/\/preview-excellent.x-tra.it\/en\/wishlist\/\"\n\tmethod=\"post\"\n\tclass=\"woocommerce yith-wcwl-form wishlist-fragment\"\n\tdata-fragment-options=\"{&quot;per_page&quot;:5,&quot;current_page&quot;:1,&quot;pagination&quot;:&quot;no&quot;,&quot;wishlist_id&quot;:false,&quot;action_params&quot;:false,&quot;no_interactions&quot;:false,&quot;layout&quot;:&quot;&quot;,&quot;wishlist&quot;:false,&quot;is_default&quot;:true,&quot;is_custom_list&quot;:false,&quot;wishlist_token&quot;:&quot;&quot;,&quot;is_private&quot;:false,&quot;count&quot;:0,&quot;page_title&quot;:&quot;La mia lista dei desideri&quot;,&quot;default_wishlsit_title&quot;:&quot;La mia lista dei desideri&quot;,&quot;page_links&quot;:false,&quot;is_user_logged_in&quot;:false,&quot;is_user_owner&quot;:true,&quot;can_user_edit_title&quot;:false,&quot;show_price&quot;:true,&quot;show_dateadded&quot;:false,&quot;show_stock_status&quot;:true,&quot;show_add_to_cart&quot;:true,&quot;show_remove_product&quot;:true,&quot;add_to_cart_text&quot;:&quot;Aggiungi al carrello&quot;,&quot;show_ask_estimate_button&quot;:false,&quot;ask_estimate_url&quot;:&quot;&quot;,&quot;price_excl_tax&quot;:true,&quot;show_cb&quot;:false,&quot;show_quantity&quot;:false,&quot;show_variation&quot;:false,&quot;show_price_variations&quot;:false,&quot;show_update&quot;:false,&quot;enable_drag_n_drop&quot;:false,&quot;enable_add_all_to_cart&quot;:false,&quot;move_to_another_wishlist&quot;:false,&quot;repeat_remove_button&quot;:false,&quot;show_last_column&quot;:true,&quot;heading_icon&quot;:&quot;&lt;i class=\\&quot;fa heart-outline\\&quot;&gt;&lt;\\\/i&gt;&quot;,&quot;share_enabled&quot;:false,&quot;template_part&quot;:&quot;view&quot;,&quot;additional_info&quot;:false,&quot;available_multi_wishlist&quot;:false,&quot;form_action&quot;:&quot;https:\\\/\\\/preview-excellent.x-tra.it\\\/en\\\/wishlist\\\/&quot;,&quot;item&quot;:&quot;wishlist&quot;}\"\n>\n\n\t<!-- TITLE -->\n\t\t\t<div class=\"wishlist-title-container\">\n\t\t\t<div class=\"wishlist-title \">\n\t\t\t\t<h2>La mia lista dei desideri<\/h2>\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\n\r\n<form id=\"yith-wcwl-form\"\r\n      action=\"https:\/\/preview-excellent.x-tra.it\/en\/wishlist\/\"\r\n      method=\"post\"\r\n      class=\"woocommerce\">\r\n\r\n\t<input type=\"hidden\" id=\"yith_wcwl_form_nonce\" name=\"yith_wcwl_form_nonce\" value=\"6170785960\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/en\/wp-json\/wp\/v2\/pages\/351912\" \/>\r\n\t\t\r\n\t<div class=\"shop-container wishlist-table-eplay\">\r\n\t\t<div class=\"products-form wishlist-form\">\r\n\r\n\t\t\t<div class=\"woocommerce-notices-wrapper\"><\/div>\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t<div\r\n\t\t\t\t\tid=\"wl-all\"\r\n\t\t\t\t\tclass=\"content wishlist-content active\"\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t<ul class=\"xfrm-product products\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"product wishlist-space\">\r\n\t\t\t\t\t\t\t\t<a href=\"https:\/\/preview-excellent.x-tra.it\/negozio\/\">\r\n\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/preview-excellent.x-tra.it\/wp-content\/uploads\/2026\/02\/logo-licensee-payoff.2236783f-scaled.png\"\r\n\t\t\t\t\t\t\t\t\t     alt=\"Shop\"\r\n\t\t\t\t\t\t\t\t\t     loading=\"lazy\" \/>\r\n\t\t\t\t\t\t\t\t\t<p>Seleziona altri prodotti<\/p>\r\n\t\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\r\n\t\t\t<input type=\"hidden\" id=\"yith_wcwl_edit_wishlist\" name=\"yith_wcwl_edit_wishlist\" value=\"b6bf53c03e\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/en\/wp-json\/wp\/v2\/pages\/351912\" \/>\r\n\t\t\t\r\n\t\t\t\t\t<\/div>\r\n\t<\/div>\r\n<\/form>\r\n\r\n<script>\r\njQuery(function($){\r\n\t\"use strict\";\r\n\r\n\tfunction setActiveTab(targetId){\r\n\t\tvar $current = $('.wishlist-content.active');\r\n\t\tvar $next = $('#' + targetId);\r\n\t\tif(!$next.length || ($current.length && $current.attr('id') === targetId)) return;\r\n\r\n\t\t$('.wishlist-menu .wishlist-tab.active')\r\n\t\t\t.removeClass('active')\r\n\t\t\t.attr('aria-selected','false')\r\n\t\t\t.attr('tabindex','-1');\r\n\r\n\t\t$current.removeClass('active');\r\n\r\n\t\t$('.wishlist-menu .wishlist-tab[data-target=\"'+targetId+'\"]')\r\n\t\t\t.addClass('active')\r\n\t\t\t.attr('aria-selected','true')\r\n\t\t\t.attr('tabindex','0');\r\n\r\n\t\t$next.addClass('active');\r\n\t}\r\n\r\n\tfunction recalcTabCounts(){\r\n\t\t$('.wishlist-menu .wishlist-tab').each(function(){\r\n\t\t\tvar $tab = $(this);\r\n\t\t\tvar targetId = $tab.data('target');\r\n\t\t\tvar $panel = $('#' + targetId);\r\n\t\t\tif(!$panel.length) return;\r\n\r\n\t\t\tvar count = $panel.find('li.product').not('.wishlist-space').length;\r\n\r\n\t\t\tvar $badge = $tab.find('.yith-wcwl-items-count');\r\n\t\t\tif(count > 0){\r\n\t\t\t\tif(!$badge.length){\r\n\t\t\t\t\t$badge = $('<span class=\"yith-wcwl-items-count\"><\/span>').appendTo($tab);\r\n\t\t\t\t}\r\n\t\t\t\t$badge.text(count);\r\n\t\t\t} else {\r\n\t\t\t\t$badge.remove();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tfunction removeEmptyStateIfNeeded($panel){\r\n\t\tvar realCount = $panel.find('li.product').not('.wishlist-space').length;\r\n\t\tif(realCount > 0){\r\n\t\t\t$panel.find('li.wishlist-space').remove();\r\n\t\t}\r\n\t}\r\n\r\n\tfunction getEmptyStateHtml(){\r\n\t\treturn `\r\n\t\t\t<li class=\"product wishlist-space\">\r\n\t\t\t\t<a href=\"https:\/\/preview-excellent.x-tra.it\/negozio\/\">\r\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/preview-excellent.x-tra.it\/wp-content\/uploads\/2026\/02\/logo-licensee-payoff.2236783f-scaled.png\"\r\n\t\t\t\t\t     alt=\"Shop\"\r\n\t\t\t\t\t     loading=\"lazy\" \/>\r\n\t\t\t\t\t<p>Seleziona altri prodotti<\/p>\r\n\t\t\t\t<\/a>\r\n\t\t\t<\/li>\r\n\t\t`;\r\n\t}\r\n\r\n\tfunction ensureEmptyStateIfNeeded($panel){\r\n\t\tvar $ul = $panel.find('ul.products');\r\n\t\tif(!$ul.length) return;\r\n\r\n\t\tvar realCount = $ul.find('li.product').not('.wishlist-space').length;\r\n\t\tvar hasEmpty  = $ul.find('li.wishlist-space').length > 0;\r\n\r\n\t\tif(realCount === 0 && !hasEmpty){\r\n\t\t\t$ul.append(getEmptyStateHtml());\r\n\t\t}\r\n\t\t\/\/ se ci sono prodotti, assicurati che l'empty state non ci sia\r\n\t\tif(realCount > 0 && hasEmpty){\r\n\t\t\t$ul.find('li.wishlist-space').remove();\r\n\t\t}\r\n\t}\r\n\r\n\t$(document).on('click', '.wishlist-menu .wishlist-tab', function(){\r\n\t\tsetActiveTab($(this).data('target'));\r\n\t});\r\n\r\n\tfunction safeBlock($el){\r\n\t\tif(!$el || !$el.length) return;\r\n\t\tif(typeof $el.block === \"function\"){\r\n\t\t\t$el.block({ message:null, overlayCSS:{ background:\"#fff\", opacity:.6 } });\r\n\t\t}\r\n\t}\r\n\tfunction safeUnblock($el){\r\n\t\tif(!$el || !$el.length) return;\r\n\t\tif(typeof $el.unblock === \"function\"){ $el.unblock(); }\r\n\t}\r\n\r\n\tvar $wishProduct = $();\r\n\r\n\t\/\/ Remove custom - via GET sull'URL di rimozione\r\n\t$(document).on('click', 'a.remove-from-wl', function(e){\r\n\t\te.preventDefault();\r\n\r\n\t\tvar href = this.href || \"\";\r\n\t\tif (!href) return;\r\n\r\n\t\tvar url = new URL(href, window.location.origin).toString();\r\n\r\n\t\t$wishProduct = $(this).closest('li.product');\r\n\t\tsafeBlock($wishProduct);\r\n\r\n\t\t\/\/ id prodotto preso dal <li data-product_id=\"...\">\r\n\t\tvar pid = $wishProduct.data('product_id');\r\n\r\n\t\t$.get(url)\r\n\t\t\t.done(function(){\r\n\t\t\t\tif (pid) {\r\n\t\t\t\t\t\/\/ rimuovi TUTTE le occorrenze del prodotto in tutti i tab\r\n\t\t\t\t\t$('li.product[data-product_id=\"'+pid+'\"]').remove();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$wishProduct.remove();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\/\/ pulisci eventuale empty-state rimasto \u201csporco\u201d\r\n\t\t\t\t$('.wishlist-content').each(function(){\r\n\t\t\t\t\tensureEmptyStateIfNeeded($(this));\r\n\t\t\t\t});\r\n\r\n\t\t\t\t$(document).trigger('removed_from_wishlist');\r\n\t\t\t\trecalcTabCounts();\r\n\t\t\t})\r\n\t\t\t.fail(function(xhr){\r\n\t\t\t\tconsole.error('Remove GET failed:', xhr.status, xhr.responseText);\r\n\t\t\t\twindow.location.href = url;\r\n\t\t\t})\r\n\t\t\t.always(function(){\r\n\t\t\t\tsafeUnblock($wishProduct);\r\n\t\t\t});\r\n\t});\r\n\r\n\t\/\/ Update header counter (icona wishlist)\r\n\t$(document).on('added_to_wishlist removed_from_wishlist', function(){\r\n\t\tvar $counterWrap = $('.wishlist-links > a');\r\n\t\tif(!$counterWrap.length) return;\r\n\r\n\t\tvar $counter = $counterWrap.find('span.items-in-wish');\r\n\t\tif(!$counter.length) $counter = $('<span class=\"items-in-wish\"><\/span>');\r\n\r\n\t\t$.ajax({\r\n\t\t\turl: (window.yith_wcwl_l10n && yith_wcwl_l10n.ajax_url) ? yith_wcwl_l10n.ajax_url : window.ajaxurl,\r\n\t\t\tdataType: 'json',\r\n\t\t\tdata: { action: 'yith_wcwl_update_wishlist_count' }\r\n\t\t}).done(function(data){\r\n\t\t\tvar count = data && typeof data.count !== \"undefined\" ? parseInt(data.count, 10) : 0;\r\n\t\t\tif(!count){\r\n\t\t\t\t$counter.remove();\r\n\t\t\t} else {\r\n\t\t\t\t$counter.text(count);\r\n\t\t\t\tif(!$counterWrap.find('span.items-in-wish').length){\r\n\t\t\t\t\t$counter.appendTo($counterWrap);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}).always(function(){\r\n\t\t\trecalcTabCounts();\r\n\t\t});\r\n\t});\r\n\r\n});\r\n<\/script>\n<div class=\"yith_wcwl_wishlist_footer\">\n\t\n\n\t\n\n\t\n\t<\/div>\n\n<input type=\"hidden\" id=\"yith_wcwl_edit_wishlist\" name=\"yith_wcwl_edit_wishlist\" value=\"b6bf53c03e\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/en\/wp-json\/wp\/v2\/pages\/351912\" \/><input type=\"hidden\" value=\"\" name=\"wishlist_id\" id=\"wishlist_id\">\n\n\n<\/form>\n\n\n\n[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<p><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row eplay_row_width=&#8221;grid&#8221; css=&#8221;.vc_custom_1772120745021{margin-bottom: 35px !important;padding-bottom: 80px !important;background-color: #F5F1EC !important;}&#8221;][vc_column][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text css=&#8221;&#8221;][\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-351912","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/preview-excellent.x-tra.it\/en\/wp-json\/wp\/v2\/pages\/351912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/preview-excellent.x-tra.it\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/preview-excellent.x-tra.it\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/preview-excellent.x-tra.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/preview-excellent.x-tra.it\/en\/wp-json\/wp\/v2\/comments?post=351912"}],"version-history":[{"count":7,"href":"https:\/\/preview-excellent.x-tra.it\/en\/wp-json\/wp\/v2\/pages\/351912\/revisions"}],"predecessor-version":[{"id":352616,"href":"https:\/\/preview-excellent.x-tra.it\/en\/wp-json\/wp\/v2\/pages\/351912\/revisions\/352616"}],"wp:attachment":[{"href":"https:\/\/preview-excellent.x-tra.it\/en\/wp-json\/wp\/v2\/media?parent=351912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}