Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    VIVAX ACP-24CH70AEQI/Os
    VIVAX ACP-24CH70AEQI/Os
    Qty: 1
    Price: 999.00
    999.00
    SAMSUNG RB34C7B5E12/EF BESPOKE WHITE
    SAMSUNG RB34C7B5E12/EF BESPOKE WHITE
    Qty: 1
    Price: 849.00
    849.00
    VIVAX ACP-12CH35AENI/Is-Os Klime Montuese
    549.00
    XIAOMI Watch S1 Aktive GL (White)
    XIAOMI Watch S1 Aktive GL (White)
    Qty: 1
    Price: 199.00
    199.00
    Vendmbajtëse
    29.99
    AOC 24G2SAE/BK Monitor Gaming 165Hz
    AOC 24G2SAE/BK Monitor Gaming 165Hz
    Qty: 1
    Price: 219.00
    219.00
    XIAOMI H101 Compact Fen i Bardhe
    XIAOMI H101 Compact Fen i Bardhe
    Qty: 1
    Price: 34.90
    34.90
    SAMSUNG LS27CG552EUXEN Montior QHD 165Hz
    SAMSUNG LS27CG552EUXEN Montior QHD 165Hz
    Qty: 1
    Price: Çmimi origjinal qe: €249.00.Çmimi i tanishëm është: €149.00.
    Save 100.00
    149.00
    Toster për Waffle HOFFMANS - HM-3027
    Toster për Waffle HOFFMANS - HM-3027
    Qty: 1
    Price: 14.99
    14.99
    Kabell AUX 5meter
    Kabell AUX 5meter
    Qty: 1
    Price: 1.99
    1.99
    XIAOMI REDMI BUDS 6 Play Black
    XIAOMI REDMI BUDS 6 Play Black
    Qty: 1
    Price: 24.90
    24.90
    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); });