Log in

You dont have an account yet? Register Now

12
    12
    Shporta e juaj!
    Akel nxemse AS1210 me 3+2 tela 2900W
    Akel nxemse AS1210 me 3+2 tela 2900W
    Qty: 1
    Price: 39.90
    39.90
    AMICA BOC4510 Furre Montuese
    AMICA BOC4510 Furre Montuese
    Qty: 1
    Price: 279.00
    279.00
    VIVAX ACP-18CH50AERI/Is--Os Silver Mirror
    859.00
    XIAOMI MI 4C WIRELESS ROUTER 300MBPS
    XIAOMI MI 4C WIRELESS ROUTER 300MBPS
    Qty: 2
    Price: Çmimi origjinal qe: €24.90.Çmimi i tanishëm është: €17.90.
    Save 14.00
    35.80
    SAMSUNG LS25BG400EUXEN Monitor 240Hz
    SAMSUNG LS25BG400EUXEN Monitor 240Hz
    Qty: 2
    Price: 319.00
    638.00
    VIVAX ACP-12CH35AERI/Is--Os SILVER
    VIVAX ACP-12CH35AERI/Is--Os SILVER
    Qty: 1
    Price: 629.00
    629.00
    XIAOMI Redmi Watch 5 Active Matte Silver
    XIAOMI Redmi Watch 5 Active Matte Silver
    Qty: 1
    Price: Çmimi origjinal qe: €69.90.Çmimi i tanishëm është: €37.90.
    Save 32.00
    37.90
    ROWENTA CV5831FO Fen Per Floke
    ROWENTA CV5831FO Fen Per Floke
    Qty: 1
    Price: 34.90
    34.90
    WHITE SHARK FIRE SHADOW Tavline Gaming
    WHITE SHARK FIRE SHADOW Tavline Gaming
    Qty: 1
    Price: 199.00
    199.00
    Vendmbajtëse
    PHILIPS GC026 Preres i Cuklave
    Qty: 1
    Price: 19.90
    19.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); });