Nejprodávanější

Rychlospojka bezšroubová PCT-218 pro kabely 0,08-2,5mm2
Skladem u dodavatele (>5 ks)
Kód: HAL904BA
 
29 Kč
Rychlospojka bezšroubová 222-412 pro kabely 0,08-2,5mm2
Skladem u dodavatele (>5 ks)
Kód: HAL904AB
 
9,90 Kč

Řazení produktů

42 položek celkem

Výpis produktů

l904ja Kód: HAL904JA
l904ba
29 Kč / ks
Kód: HAL904BA
l904ab
9,90 Kč / ks
Kód: HAL904AB
l681c
69 Kč / ks
Kód: HAL681C
l648f
59 Kč / ks
Kód: HAL648F
l647i
59 Kč / ks
Kód: HAL647I
l654d
Svorkovnice TB-2512 12x6mm2
Skladem u dodavatele (>5 ks)
39 Kč / ks
Kód: HAL654D
l653m
69 Kč / ks
Kód: HAL653M
l653l
49 Kč / ks
Kód: HAL653L
l653k
39 Kč / ks
Kód: HAL653K
l653j
39 Kč / ks
Kód: HAL653J
l653d
69 Kč / ks
Kód: HAL653D
l653c
49 Kč / ks
Kód: HAL653C
l653b
39 Kč / ks
Kód: HAL653B
l653a
39 Kč / ks
Kód: HAL653A
l685
29 Kč / ks
Kód: HAL685
l683d
39 Kč / ks
Kód: HAL683D
l683c
19 Kč / ks
Kód: HAL683C

Ovládací prvky výpisu

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