נמצאה עגלה אחת Showing {{ showing }} out of {{ foundPosts }} results תצוגת מפה

תפריט נגישות

הרשמה לניוזלטר

רוצים לקבל עדכונים שווים על עגלות קפה, מבצעים ותוכן בלעדי? הצטרפו לניוזלטר שלנו והישארו מעודכנים.

add_action('wp_footer', function () { ?> try { const urlPattern = /coffeecart\/[^\/]+\/?$/i; const isCoffeeCartPage = urlPattern.test(window.location.href); if (isCoffeeCartPage) { // Find required kosher elements const kosherTypeBlock = document.querySelector('.block-field-kosher-type'); const zoharKosherBlock = document.querySelector('.block-field-zohar-kosher'); const kosherBlock = document.querySelector('.block-field-kosher'); // Use kosher type block first, then zohar kosher if not found const targetBlock = kosherTypeBlock || zoharKosherBlock; if (targetBlock && kosherBlock) { const pfHead = targetBlock.querySelector('.pf-head'); if (pfHead) { const targetHead = pfHead.querySelector('h5'); if (targetHead) { // Create and style the certificate link const anchor = document.createElement('a'); anchor.textContent = 'לצפייה בתעודה'; anchor.href = '#block-field-kosher'; anchor.style.cssText = ` display: inline-block; cursor: pointer; text-decoration: underline; color: #209C62; margin-right: 5px; `; targetHead.appendChild(anchor); // Smooth scroll to kosher certificate section anchor.addEventListener('click', function(e) { e.preventDefault(); const elementRect = kosherBlock.getBoundingClientRect(); const elementTop = elementRect.top + window.pageYOffset; const offsetPosition = elementTop - 100; window.scrollTo({ top: offsetPosition, behavior: 'smooth' }); }); } } } } } catch (error) { }