Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    Electrolux EHF6240IOK Pllake montuese
    Electrolux EHF6240IOK Pllake montuese
    Qty: 1
    Price: 349.00
    349.00
    XIAOMI KIT PRO Makin per Qethje
    XIAOMI KIT PRO Makin per Qethje
    Qty: 1
    Price: Çmimi origjinal qe: €54.90.Çmimi i tanishëm është: €39.90.
    Save 15.00
    39.90
    VIVAX ACP-12CH35AEHI/Is--Os GOLD Klime
    VIVAX ACP-12CH35AEHI/Is--Os GOLD Klime
    Qty: 1
    Price: Çmimi origjinal qe: €659.00.Çmimi i tanishëm është: €579.00.
    Save 80.00
    579.00
    MSI Monitor PRO MP2750, 27 FHD(1900x1080)
    199.00
    Nordix BSS016I Furre + Pllake SET
    Nordix BSS016I Furre + Pllake SET
    Qty: 1
    Price: Çmimi origjinal qe: €399.00.Çmimi i tanishëm është: €269.00.
    Save 130.00
    269.00
    Ndriçues - GM1-4
    Ndriçues - GM1-4
    Qty: 1
    Price: 59.99
    59.99
    ELECTROLUX WDB1720 Hekur Steam 2200W
    ELECTROLUX WDB1720 Hekur Steam 2200W
    Qty: 1
    Price: 34.90
    34.90
    FAVORIT AC 12000BTU JD HB Klime Montuese
    569.00
    Ndriçues - GM5-11
    Ndriçues - GM5-11
    Qty: 1
    Price: 149.99
    149.99
    document.addEventListener("DOMContentLoaded", function () { let page = 1; let loading = false; let finished = false; const btn = document.getElementById("bt-load-more"); const container = document.getElementById("bt-products"); if (!btn || !container) return; // kjo e shpëton nga error function loadProducts() { if (loading || finished) return; loading = true; btn.innerText = "Duke u ngarkuar..."; fetch(`/wp-admin/admin-ajax.php?action=bt_load_products&page=${page}`) .then(res => res.text()) .then(data => { if (!data.trim()) { finished = true; btn.innerText = "Nuk ka më produkte"; return; } container.insertAdjacentHTML("beforeend", data); page++; loading = false; btn.innerText = "Shiko më shumë produkte"; }); } loadProducts(); // kjo e mbush fillimin btn.addEventListener("click", loadProducts); });