{"id":12385,"date":"2022-06-29T08:49:28","date_gmt":"2022-06-29T06:49:28","guid":{"rendered":"https:\/\/apshaps.se\/wishlist\/"},"modified":"2025-02-20T07:48:34","modified_gmt":"2025-02-20T06:48:34","slug":"wishlist","status":"publish","type":"page","link":"https:\/\/apshaps.se\/en\/wishlist\/","title":{"rendered":"Wishlist"},"content":{"rendered":"\n\n\n\n<form\n\tid=\"yith-wcwl-form\"\n\taction=\"https:\/\/apshaps.se\/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;My wishlist&quot;,&quot;default_wishlsit_title&quot;:&quot;My wishlist&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;Add to cart&quot;,&quot;show_ask_estimate_button&quot;:false,&quot;ask_estimate_url&quot;:&quot;&quot;,&quot;price_excl_tax&quot;:false,&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:\\\/\\\/apshaps.se\\\/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>My wishlist<\/h2>\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\n\n<!-- WISHLIST TABLE -->\n<table\n\tclass=\"shop_table cart wishlist_table wishlist_view traditional responsive   \"\n\tdata-pagination=\"no\" data-per-page=\"5\" data-page=\"1\"\n\tdata-id=\"\" data-token=\"\">\n\n\t\n\t<thead>\n\t<tr>\n\t\t\n\t\t\t\t\t\t\t\t<th class=\"product-remove\">\n\t\t\t\t<span class=\"nobr\">\n\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t<\/th>\n\t\t\n\t\t<th class=\"product-thumbnail\"><\/th>\n\n\t\t<th class=\"product-name\">\n\t\t\t<span class=\"nobr\">\n\t\t\t\tProduct name\t\t\t<\/span>\n\t\t<\/th>\n\n\t\t\t\t\t\t\t\t<th class=\"product-price\">\n\t\t\t\t<span class=\"nobr\">\n\t\t\t\t\tUnit price\t\t\t\t<\/span>\n\t\t\t<\/th>\n\t\t\n\t\t\n\t\t\t\t\t\t\t\t<th class=\"product-stock-status\">\n\t\t\t\t<span class=\"nobr\">\n\t\t\t\t\tStock status\t\t\t\t<\/span>\n\t\t\t<\/th>\n\t\t\n\t\t\t\t\t\t\t\t<th class=\"product-add-to-cart\">\n\t\t\t\t<span class=\"nobr\">\n\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t<\/th>\n\t\t\n\t\t\t<\/tr>\n\t<\/thead>\n\n\t<tbody class=\"wishlist-items-wrapper\">\n\t\t\t<tr>\n\t\t\t\t\t\t<td colspan=\"6\" class=\"wishlist-empty\">No products added to the wishlist<\/td>\n\t\t<\/tr>\n\t\t\t<\/tbody>\n\n<\/table>\n\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=\"b5eac01494\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/en\/wp-json\/wp\/v2\/pages\/12385\" \/><input type=\"hidden\" value=\"\" name=\"wishlist_id\" id=\"wishlist_id\">\n\n\n<\/form>\n\n\n\n\n\n\n\n\n\n    <h3>Share your wishlist via e-mail<\/h3>\n    <form id=\"wishlist-email-form\" class=\"flex\">\n        <label for=\"sender_name\" hidden>Your Name:<\/label>\n        <input type=\"text\" id=\"sender_name\" name=\"sender_name\" placeholder=\"Your name\" required>\n\n        <label for=\"recipient_email\" hidden>Recipient Email:<\/label>\n        <input type=\"email\" id=\"recipient_email\" name=\"recipient_email\" placeholder=\"Recipient e-mail\" required>\n\n        <input type=\"hidden\" id=\"wishlist_url\" name=\"wishlist_url\">\n        <input type=\"hidden\" id=\"g-recaptcha-response\" name=\"g-recaptcha-response\">\n\n        <button class=\"button primary\" type=\"submit\"><span>Send<\/span><\/button>\n    <\/form>\n    <style>\n        .yith_wcwl_wishlist_footer {\n            width: 50%;\n        }\n        .yith-wcwl-after-share-section {\n            display: none;\n        }\n        .flex {\n            gap: 1rem;\n            width: 50%;\n        }\n        .button {\n            margin-right: 0!important;\n            flex: 1;\n            flex-shrink: 0;\n        }\n    <\/style>\n    <script src=\"https:\/\/www.google.com\/recaptcha\/api.js?render=6LcRv88qAAAAAAHriPk7oktJd5eastjPviyMk9Nf\"><\/script>\n    <script>\n        document.getElementById(\"wishlist-email-form\").addEventListener(\"submit\", function(event) {\n            event.preventDefault();\n\n            let wishlistInput = document.getElementById(\"yith_wcwl_share_url\");\n            let wishlistUrl = wishlistInput ? wishlistInput.value : \"\";\n\n            if (!wishlistUrl) {\n                alert(\"Wishlist URL not found!\");\n                return;\n            }\n            document.getElementById(\"wishlist_url\").value = wishlistUrl; \/\/ Set the hidden input value\n\n            grecaptcha.ready(function() {\n                grecaptcha.execute(\"6LcRv88qAAAAAAHriPk7oktJd5eastjPviyMk9Nf\", { action: \"submit\" }).then(function(token) {\n                    document.getElementById(\"g-recaptcha-response\").value = token;\n\n                    let formData = new FormData(document.getElementById(\"wishlist-email-form\"));\n                    formData.append(\"action\", \"send_wishlist_email\");\n\n                    fetch(\"https:\/\/apshaps.se\/wp-admin\/admin-ajax.php\", {\n                        method: \"POST\",\n                        body: formData\n                    })\n                    .then(response => response.text())\n                    .then(data => {\n                        alert(data); \/\/ Display server response\n                    })\n                    .catch(error => console.error(\"Error:\", error));\n                });\n            });\n        });\n    <\/script>\n\n    \n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":13,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-12385","page","type-page","status-publish","hentry"],"acf":{"faq_enable":false,"faq_schema_enable":false,"faq_title":"","faq_items":null},"_links":{"self":[{"href":"https:\/\/apshaps.se\/en\/wp-json\/wp\/v2\/pages\/12385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apshaps.se\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/apshaps.se\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/apshaps.se\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apshaps.se\/en\/wp-json\/wp\/v2\/comments?post=12385"}],"version-history":[{"count":1,"href":"https:\/\/apshaps.se\/en\/wp-json\/wp\/v2\/pages\/12385\/revisions"}],"predecessor-version":[{"id":25107,"href":"https:\/\/apshaps.se\/en\/wp-json\/wp\/v2\/pages\/12385\/revisions\/25107"}],"wp:attachment":[{"href":"https:\/\/apshaps.se\/en\/wp-json\/wp\/v2\/media?parent=12385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}