{"id":5971,"date":"2026-06-05T11:23:34","date_gmt":"2026-06-05T11:23:34","guid":{"rendered":"https:\/\/simchaprint.co.uk\/?page_id=5971"},"modified":"2026-06-05T15:23:42","modified_gmt":"2026-06-05T15:23:42","slug":"favourites","status":"publish","type":"page","link":"https:\/\/simchaprint.co.uk\/he\/favourites\/","title":{"rendered":"Favourites"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"5971\" class=\"elementor elementor-5971\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a9934fe elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a9934fe\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2e62c2a\" data-id=\"2e62c2a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-930e29f elementor-section-boxed elementor-section-height-default elementor-section-height-default elementor-invisible\" data-id=\"930e29f\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;animation&quot;:&quot;fadeIn&quot;,&quot;animation_delay&quot;:200}\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-7a27ad1\" data-id=\"7a27ad1\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6395970 elementor-widget elementor-widget-heading\" data-id=\"6395970\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Favourites<\/h1>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t<div class=\"elementor-element elementor-element-40b47ca e-flex e-con-boxed e-con e-parent\" data-id=\"40b47ca\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6ea7414 elementor-widget elementor-widget-shortcode\" data-id=\"6ea7414\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\t\t<div class=\"simcha-favourites-page\" id=\"simcha-favourites-page\">\n\t\t\t<h1 class=\"simcha-fav-page__title\"><em>Favourites<\/em><\/h1>\n\t\t\t<p class=\"simcha-fav-page__count\" id=\"simcha-fav-page-count\">0 items<\/p>\n\n\t\t\t\t\t\t\t<div class=\"simcha-fav-page__login-box\">\n\t\t\t\t\t<p>Sign in to sync favourites across devices and much more.<\/p>\n\t\t\t\t\t<a href=\"https:\/\/simchaprint.co.uk\/he\/my-account\/\" class=\"simcha-fav-page__login-btn\">Log in<\/a>\n\t\t\t\t<\/div>\n\t\t\t\n\t\t\t\t\t\t\t<p class=\"simcha-fav-page__empty\">No favourites yet. Browse the shop and tap the heart icon on products you love.<\/p>\n\t\t\t\t\t<\/div>\n\n\t\t<style>\n\t\t.simcha-favourites-page { max-width: 900px; margin: 0 auto; padding: 20px 0; }\n\t\t.simcha-fav-page__title { font-size: 32px; font-weight: 400; margin: 0 0 4px; }\n\t\t.simcha-fav-page__count { font-size: 14px; color: #666; margin: 0 0 20px; }\n\t\t.simcha-fav-page__login-box {\n\t\t\tbackground: #faf9f7;\n\t\t\tborder: 1px solid #e8e6e3;\n\t\t\tborder-radius: 6px;\n\t\t\tpadding: 20px;\n\t\t\tmargin: 0 0 24px;\n\t\t\ttext-align: center;\n\t\t}\n\t\t.simcha-fav-page__login-box p { margin: 0 0 12px; font-size: 14px; color: #555; }\n\t\t.simcha-fav-page__login-btn {\n\t\t\tdisplay: inline-block;\n\t\t\tbackground: #fff;\n\t\t\tcolor: #333;\n\t\t\tpadding: 10px 32px;\n\t\t\tborder-radius: 4px;\n\t\t\tborder: 1px solid #ccc;\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 14px;\n\t\t\tfont-weight: 600;\n\t\t\ttransition: background 0.2s, border-color 0.2s;\n\t\t}\n\t\t.simcha-fav-page__login-btn:hover { background: #f5f5f5; border-color: #999; color: #111; }\n\t\t.simcha-fav-page__empty { color: #888; font-size: 14px; text-align: center; padding: 40px 0; }\n\t\t.simcha-fav-page__grid {\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(auto-fill, minmax(180px, 1fr));\n\t\t\tgap: 24px;\n\t\t}\n\t\t.simcha-fav-page__item { position: relative; }\n\t\t.simcha-fav-page__img-wrap {\n\t\t\taspect-ratio: 1;\n\t\t\toverflow: hidden;\n\t\t\tborder-radius: 4px;\n\t\t\tbackground: #f5f3f0;\n\t\t}\n\t\t.simcha-fav-page__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }\n\t\t.simcha-fav-page__item-name { font-size: 13px; font-weight: 600; margin: 8px 0 2px; color: #333; }\n\t\t.simcha-fav-page__item-name a { color: inherit; text-decoration: none; }\n\t\t.simcha-fav-page__item-name a:hover { color: #B74B75; }\n\t\t.simcha-fav-page__item-price { font-size: 13px; color: #666; margin: 0 0 4px; }\n\t\t.simcha-fav-page__remove {\n\t\t\tfont-size: 12px;\n\t\t\tcolor: #666;\n\t\t\tcursor: pointer;\n\t\t\ttext-decoration: none;\n\t\t\tbackground: #f5f3f0;\n\t\t\tborder: 1px solid #e0ddd9;\n\t\t\tborder-radius: 4px;\n\t\t\tpadding: 6px 14px;\n\t\t\tmargin-top: 6px;\n\t\t\tdisplay: inline-block;\n\t\t\ttransition: background 0.2s, color 0.2s;\n\t\t}\n\t\t.simcha-fav-page__remove:hover { background: #fee; color: #a00; border-color: #f5c6c6; }\n\t\t@media (max-width: 600px) {\n\t\t\t.simcha-fav-page__grid { grid-template-columns: 1fr 1fr; gap: 16px; }\n\t\t}\n\t\t<\/style>\n\n\t\t<script>\n\t\t(function(){\n\t\t\t'use strict';\n\t\t\tvar ajaxUrl = \"https:\\\/\\\/simchaprint.co.uk\\\/wp-admin\\\/admin-ajax.php\";\n\t\t\tvar nonce = \"953254611d\";\n\n\t\t\tdocument.querySelectorAll('.simcha-fav-page__remove').forEach(function(btn){\n\t\t\t\tbtn.addEventListener('click', function(){\n\t\t\t\t\tvar pid = parseInt(btn.getAttribute('data-pid'));\n\t\t\t\t\tvar item = btn.closest('.simcha-fav-page__item');\n\t\t\t\t\tfetch(ajaxUrl, {\n\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\theaders: { 'Content-Type': 'application\/x-www-form-urlencoded' },\n\t\t\t\t\t\tbody: 'action=simcha_fav_toggle&nonce=' + nonce + '&product_id=' + pid\n\t\t\t\t\t})\n\t\t\t\t\t.then(function(r){ return r.json(); })\n\t\t\t\t\t.then(function(res){\n\t\t\t\t\t\tif (res.success) {\n\t\t\t\t\t\t\tif (item) item.remove();\n\t\t\t\t\t\t\tvar count = document.querySelectorAll('.simcha-fav-page__item').length;\n\t\t\t\t\t\t\tvar countEl = document.getElementById('simcha-fav-page-count');\n\t\t\t\t\t\t\tif (countEl) countEl.textContent = count + ' item' + (count !== 1 ? 's' : '');\n\t\t\t\t\t\t\tif (count === 0) {\n\t\t\t\t\t\t\t\tvar grid = document.getElementById('simcha-fav-page-grid');\n\t\t\t\t\t\t\t\tif (grid) grid.innerHTML = '<p class=\"simcha-fav-page__empty\" style=\"grid-column:1\/-1;\">No favourites yet.<\/p>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t});\n\t\t})();\n\t\t<\/script>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Favourites<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-5971","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/simchaprint.co.uk\/he\/wp-json\/wp\/v2\/pages\/5971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simchaprint.co.uk\/he\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/simchaprint.co.uk\/he\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/simchaprint.co.uk\/he\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/simchaprint.co.uk\/he\/wp-json\/wp\/v2\/comments?post=5971"}],"version-history":[{"count":6,"href":"https:\/\/simchaprint.co.uk\/he\/wp-json\/wp\/v2\/pages\/5971\/revisions"}],"predecessor-version":[{"id":5992,"href":"https:\/\/simchaprint.co.uk\/he\/wp-json\/wp\/v2\/pages\/5971\/revisions\/5992"}],"wp:attachment":[{"href":"https:\/\/simchaprint.co.uk\/he\/wp-json\/wp\/v2\/media?parent=5971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}