Nejprodávanější

Solární kabel H1Z2Z2-K, 4mm2, 1500V, černý
Skladem u dodavatele (>5 ks)
Kód: HAN345A
 
59 Kč
Solární kabel H1Z2Z2-K, 4mm2, 1500V, červený
Skladem u dodavatele (>5 ks)
Kód: HAN345
 
59 Kč
Solární kabel PREKAB SOLAR XH, 4mm2, 1500V, černý, balení 100m
Skladem u dodavatele (2 ks)
Kód: HAN347A-100
 
4 090 Kč

Řazení produktů

58 položek celkem

Výpis produktů

n350i
389 Kč / ks
Kód: HAN350I
l153c
469 Kč / ks
Kód: HAL153C
l153b
469 Kč / ks
Kód: HAL153B
l153a
449 Kč / ks
Kód: HAL153A
l153
449 Kč / ks
Kód: HAL153
l542g
739 Kč / ks
Kód: HAL542G
l542f
739 Kč / ks
Kód: HAL542F
l542e
739 Kč / ks
Kód: HAL542E
l542d
739 Kč / ks
Kód: HAL542D
l542c
739 Kč / ks
Kód: HAL542C
l542b
739 Kč / ks
Kód: HAL542B
l542a
739 Kč / ks
Kód: HAL542A
d276a
Konektor MC-4, diodová ochrana 20A /MC4/
Skladem u dodavatele (>5 ks)
209 Kč / ks
Kód: HAD276A
n351e
3 190 Kč / ks
Kód: HAN351E
n351c
1 690 Kč / ks
Kód: HAN351C
n351b
919 Kč / ks
Kód: HAN351B
n351a
629 Kč / ks
Kód: HAN351A
n351
449 Kč / ks
Kód: HAN351

Ovládací prvky výpisu

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