Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    XIAOMI Mi Band 8 (black) EU
    XIAOMI Mi Band 8 (black) EU
    Qty: 1
    Price: 69.90
    69.90
    VIVAX TFB-80K HOME ventilator
    VIVAX TFB-80K HOME ventilator
    Qty: 1
    Price: 69.90
    69.90
    DESSINI DS-5583 Fen per Floke
    DESSINI DS-5583 Fen per Floke
    Qty: 1
    Price: 29.90
    29.90
    ALIENWARE AW2523HF Monitor 360Hz
    ALIENWARE AW2523HF Monitor 360Hz
    Qty: 1
    Price: 699.00
    699.00
    Vendmbajtëse
    PHILIPS HD9318/00 Bokall Uji Bardhe
    Qty: 1
    Price: 49.90
    49.90
    ECOLUX ECO-RA15F, Radiator Ecolux
    ECOLUX ECO-RA15F, Radiator Ecolux
    Qty: 1
    Price: 139.00
    139.00
    BRAUN SI5277GR Hekur me Avull 2700 W
    BRAUN SI5277GR Hekur me Avull 2700 W
    Qty: 1
    Price: 59.90
    59.90
    ROWENTA CV5062F0 Fen 2300W
    ROWENTA CV5062F0 Fen 2300W
    Qty: 1
    Price: 39.90
    39.90
    KORKMAZ A227-02 GJYGYM QAJI ERNA GOLD
    KORKMAZ A227-02 GJYGYM QAJI ERNA GOLD
    Qty: 1
    Price: 54.99
    54.99
    XIAOMI Standing Garment Steamer EU
    XIAOMI Standing Garment Steamer EU
    Qty: 1
    Price: 129.00
    129.00
    MUHLER MLC-6050 Multicooker
    MUHLER MLC-6050 Multicooker
    Qty: 1
    Price: 139.00
    139.00
    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); });