Nejprodávanější

Solight náhradní napájecí zdroj k LED panelům
Skladem u dodavatele (>5 ks)
Kód: SOWO20-ND
179 Kč
Zdroj-LED driver 32W, 230V/65-86V/300mA
Skladem u dodavatele (>5 ks)
Kód: HAG076C
 
109 Kč

Řazení produktů

13 položek celkem

Výpis produktů

wo20 nd
179 Kč / ks
Kód: SOWO20-ND
g076c
Zdroj-LED driver 32W, 230V/65-86V/300mA
Skladem u dodavatele (>5 ks)
109 Kč / ks
Kód: HAG076C
g102
279 Kč / ks
Kód: HAG102
g101
229 Kč / ks
Kód: HAG101
g100
129 Kč / ks
Kód: HAG100
g076b
Zdroj-LED driver 18-24W, 230V/54-86V/300mA
Skladem u dodavatele (>5 ks)
109 Kč / ks
Kód: HAG076B
g076a
Zdroj-LED driver 15-18W, 230V/43-64V/300mA
Skladem u dodavatele (>5 ks)
89 Kč / ks
Kód: HAG076A
g075b
79 Kč / ks
Kód: HAG075B
g075a
Zdroj-LED driver 6W, 230V/12-23V/300mA
Skladem u dodavatele (>5 ks)
69 Kč / ks
Kód: HAG075A
g074a
Zdroj-LED driver 3W, 230V/3-12V/240mA
Skladem u dodavatele (>5 ks)
39 Kč / ks
Kód: HAG074A
g065
Zdroj - LED driver 12V DC/10W ETL10
Skladem u dodavatele (>5 ks)
109 Kč / ks
Kód: HAG065
g059
109 Kč / ks
Kód: HAG059

Ovládací prvky výpisu

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