Nejprodávanější

Řazení produktů

178 položek celkem

Výpis produktů

Leszno Venkovní osvětlení (Akumulátor 3,7V 3600mAh)
Leszno Venkovní osvětlení
Skladem u dodavatele
949 Kč / ks
Kód: RA77091
Flood Venkovní osvětlení
Flood Venkovní osvětlení
Skladem u dodavatele
449 Kč / ks
Kód: RA7066
stwqeuzmvcni
309 Kč / ks
Kód: NELF2121
ajv4ik81bf6q
309 Kč / ks
Kód: NELF2221
51ijgle04mz9
809 Kč / ks
Kód: NELF2022H
j4oiq8pgcfr9
739 Kč / ks
Kód: NELF6023
ylxuh89tg3jf
1 090 Kč / ks
Kód: NELF6024
bcvljgs9r6ew
2 090 Kč / ks
Kód: NELF6025
gply1vaezstm
1 190 Kč / ks
Kód: NELF6033W
iku70cjeswfo
149 Kč / ks
Kód: NELF0021
6sitke2138nq
199 Kč / ks
Kód: NELF0022
40sb3wh2k7lm
LED reflektor 30W / 4000K - LF0023
Skladem u dodavatele (5 ks)
269 Kč / ks
Kód: NELF0023
sg3chie70x56
389 Kč / ks
Kód: NELF0024
0lvjcs6pb9kx
LED reflektor + PIR 10W / 4000K - LF0021S
Skladem u dodavatele (5 ks)
399 Kč / ks
Kód: NELF0021S
vrf1ykiqp9ml
449 Kč / ks
Kód: NELF0022S
qoyj170s84ci
LED reflektor + PIR 30W / 4000K - LF0023S
Skladem u dodavatele (5 ks)
519 Kč / ks
Kód: NELF0023S
svhto5x4zmr1
1 790 Kč / ks
Kód: NELF4024N
ki8f7h6zgn2t
LED reflektor + PIR 24W / 4000K - LFX021
Skladem u dodavatele (5 ks)
879 Kč / ks
Kód: NELFX021

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); })();