Nejprodávanější

Řazení produktů

178 položek celkem

Výpis produktů

fmrt5ki2w9xa
209 Kč / ks
Kód: NELF7122
rgvfpj057e9b
LED bílý reflektor 30W / 4000K - LF7123
Skladem u dodavatele (5 ks)
289 Kč / ks
Kód: NELF7123
gprbf42oyec9
399 Kč / ks
Kód: NELF7124
4jixf2rm8a1o
389 Kč / ks
Kód: NELF7021S
7jr5qh2aemc6
449 Kč / ks
Kód: NELF7022S
6ca19lx2be3r Kód: NELF7023S
0grsifezvyq5
629 Kč / ks
Kód: NELF7024S
fm50w9vtgaso
389 Kč / ks
Kód: NELF7121S
3pkl6n4beqjv
449 Kč / ks
Kód: NELF7122S
bsowuq91jfra
519 Kč / ks
Kód: NELF7123S
exqkhlm8zpsw
629 Kč / ks
Kód: NELF7124S
582 orig
829 Kč / ks
LED solární reflektor SL355 se senzorem
Kód: PNSL355
318 orig
Zónové světlo 50W s 3m kabelem
Skladem u dodavatele (>5 ks)
1 390 Kč / ks
Zónové světlo 50W s 3m kabelem
Kód: PNST50Z
316 orig
Zónové světlo 30W s 3m kabelem
Skladem u dodavatele (>5 ks)
899 Kč / ks
Zónové světlo 30W s 3m kabelem
Kód: PNST30Z
315 orig
2 290 Kč / ks
Dobíjecí zónové světlo  50W
Kód: PNST225
314 orig
1 690 Kč / ks
Dobíjecí zónové světlo  30W
Kód: PNST223

Ovládací prvky výpisu

178 položek celkem

Grafický návrh vytvořil a na Shoptet implementoval Tomáš Hlad & Shoptetak.cz.

(function() { // Funkce pro načtení skladů z feedu Napojse async function loadSupplierStock() { const productCodeEl = document.querySelector('[data-product-code]'); if (!productCodeEl) return; const productCode = productCodeEl.dataset.productCode; // Proxy pro načtení feedu (kvůli CORS) const feedURL = "https://api.allorigins.win/raw?url=" + encodeURIComponent("https://klient.napojse.cz/suppliers/feeds/6196?password=53036c68fa3acd0758c65cb2ba27ac33"); try { const response = await fetch(feedURL); const xmlText = await response.text(); const parser = new DOMParser(); const xml = parser.parseFromString(xmlText, "text/xml"); const items = xml.querySelectorAll("SHOPITEM"); let supplierStock = null; items.forEach(function(item) { const code = item.querySelector("CODE")?.textContent || item.querySelector("PRODUCTCODE")?.textContent || item.querySelector("EAN")?.textContent; if (code === productCode) { const warehouse = item.querySelector("STOCK WAREHOUSES WAREHOUSE VALUE"); if (warehouse) supplierStock = warehouse.textContent; } }); if (!supplierStock) return; insertSupplierStock(supplierStock); } catch (e) { console.log("Napojse feed error", e); } } // Funkce pro vložení skladu dodavatele do doplňku function insertSupplierStock(supplierStock) { const table = document.querySelector(".store-availability table tbody"); if (!table) return; if (document.querySelector(".supplier-stock-row")) return; const row = document.createElement("tr"); row.className = "supplier-stock-row"; row.innerHTML = ` Sklad dodavatele ${supplierStock} ks `; table.appendChild(row); } // Čekání, aby doplněk měl čas se načíst function waitForAddon() { let tries = 0; const interval = setInterval(() => { const table = document.querySelector(".store-availability table tbody"); if (table) { loadSupplierStock(); clearInterval(interval); } tries++; if (tries >= 30) clearInterval(interval); // max 30 pokusů }, 300); } document.addEventListener("DOMContentLoaded", waitForAddon); })();