Nejprodávanější

 
1 090 Kč
Akupack NiMH AA 7,2V/2000mAh TINKO
Vyprodáno
Kód: HAR573
 
639 Kč
Akupack NiMH AAA 3,6V/600mAh TINKO
Skladem u dodavatele (>5 ks)
Kód: HAR568
 
139 Kč

Řazení produktů

17 položek celkem

Výpis produktů

r664 8
1 090 Kč / ks
Kód: HAR664-8
r573
639 Kč / ks
Kód: HAR573
r568
Akupack NiMH AAA 3,6V/600mAh TINKO
Skladem u dodavatele (>5 ks)
139 Kč / ks
Kód: HAR568
r567
159 Kč / ks
Kód: HAR567
r566
Akupack NiMH AAA 7,2V/600mAh TINKO
Skladem u dodavatele (>5 ks)
149 Kč / ks
Kód: HAR566
r559
Akupack NiMH 4,8V/80mAh TINKO
Skladem u dodavatele (>5 ks)
39 Kč / ks
Kód: HAR559
r558
89 Kč / ks
Kód: HAR558
r553
39 Kč / ks
Kód: HAR553
r552
209 Kč / ks
Kód: HAR552
r551
209 Kč / ks
Kód: HAR551
r549
169 Kč / ks
Kód: HAR549
r547b 2
359 Kč / ks
Kód: HAR547B-2
r547
149 Kč / ks
Kód: HAR547
r546
149 Kč / ks
Kód: HAR546
r545b 2
189 Kč / ks
Kód: HAR545B-2
r545
69 Kč / ks
Kód: HAR545
r544 Kód: HAR544

Ovládací prvky výpisu

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