🚚 Zamów do 22:00 – dostawa w następnym dniu dostaw!    🍎 Dostawy pon.–sob. od godz. 8:00.    📍 Warszawa i powiat warszawski zachodni.
// null = produkty dostępne na bieżącej stronie const BUTTON_SELECTOR = '[data-cy="addToCartButton"][data-product-id]'; function getProduct(id) { const buttons = Array.from(document.querySelectorAll(BUTTON_SELECTOR)); const button = buttons.find(b => b.dataset.productId === String(id) && !b.closest('.owl-item.cloned')); if (!button) return null; const item = button.closest('.item, .product-tile, [class*="product-tile"], .product-box, .product') || button.parentElement; if (!item) return null; const link = item.querySelector('a[href*="-p' + id + '"]') || item.querySelector('a[href*="-p"]'); const img = item.querySelector('.product-img img, img'); const price = item.querySelector('.core_priceFormat, [class*="price"]'); if (!link) return null; return { button, name: link.getAttribute('title') || img?.alt || link.textContent.trim() || 'Produkt', url: link.href, image: img?.currentSrc || img?.getAttribute('data-src') || img?.src || '', price: price?.textContent.trim() || '' }; } function showRecommendations() { const popup = document.querySelector('.swal2-popup.swal2-show'); const content = popup?.querySelector('.swal2-html-container'); if (!content || content.querySelector('#frutis-recommendations')) return; // Nie modyfikuj innych okien (np. błędu lub komunikatu informacyjnego). if (!/dodany do koszyka/i.test(popup.textContent || '')) return; const ids = PRODUCT_IDS || Array.from(document.querySelectorAll(BUTTON_SELECTOR)) .filter(b => !b.closest('.owl-item.cloned')) .map(b => b.dataset.productId) .filter((id, i, all) => id && all.indexOf(id) === i); const products = ids.map(getProduct).filter(Boolean).slice(0, 3); if (!products.length) return; const box = document.createElement('div'); box.id = 'frutis-recommendations'; const title = document.createElement('h3'); title.textContent = '🍲 DOBIERZ DO SWOJEGO ZAMÓWIENIA'; box.appendChild(title); products.forEach(product => { const row = document.createElement('div'); row.className = 'frutis-recommendation'; if (product.image) { const img = document.createElement('img'); img.src = product.image; img.alt = product.name; row.appendChild(img); } const info = document.createElement('div'); info.className = 'frutis-recommendation-info'; const link = document.createElement('a'); link.href = product.url; link.textContent = product.name; info.appendChild(link); if (product.price) { const price = document.createElement('span'); price.className = 'frutis-recommendation-price'; price.textContent = product.price; info.appendChild(price); } row.appendChild(info); const addButton = document.createElement('button'); addButton.type = 'button'; addButton.textContent = '🛒 DODAJ'; addButton.addEventListener('click', () => { addButton.disabled = true; addButton.textContent = 'Dodawanie...'; product.button.click(); setTimeout(() => { addButton.disabled = false; addButton.textContent = '🛒 DODAJ'; }, 1200); }); row.appendChild(addButton); box.appendChild(row); }); content.appendChild(box); } function start() { const observer = new MutationObserver(() => { if (document.querySelector('.swal2-popup.swal2-show')) showRecommendations(); }); observer.observe(document.body, { childList: true, subtree: true }); showRecommendations(); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', start); } else { start(); } })();
  • Cenos ryż basmati (400g)

Zarejestruj się, aby otrzymać za ten zakup 10 punktów lojalnościowych.

Zamów do 22:00 – dostawa już od jutra!