Log in

You dont have an account yet? Register Now

8
    8
    Shporta e juaj!
    AMICA BOC4510 Furre Montuese
    AMICA BOC4510 Furre Montuese
    Qty: 1
    Price: 279.00
    279.00
    Midea MF100W70/W Lavatriçe 7kg 1400rpm
    Midea MF100W70/W Lavatriçe 7kg 1400rpm
    Qty: 1
    Price: 319.00
    319.00
    KINGSTON 128GB, EXODIA ONYS Black
    KINGSTON 128GB, EXODIA ONYS Black
    Qty: 1
    Price: 14.90
    14.90
    XIAOMI Mi Smart Scale 2 (Peshore) (Copy)
    XIAOMI Mi Smart Scale 2 (Peshore) (Copy)
    Qty: 1
    Price: Çmimi origjinal qe: €19.90.Çmimi i tanishëm është: €14.90.
    Save 5.00
    14.90
    SAMSUNG WW90T4020EE1LE Lavatriqe 9KG
    SAMSUNG WW90T4020EE1LE Lavatriqe 9KG
    Qty: 1
    Price: 599.00
    599.00
    RAZER RZ01 Chroma Maus Gaming
    RAZER RZ01 Chroma Maus Gaming
    Qty: 1
    Price: 29.90
    29.90
    Aspirator Hansa OMP6211IH
    Aspirator Hansa OMP6211IH
    Qty: 1
    Price: Çmimi origjinal qe: €99.00.Çmimi i tanishëm është: €59.00.
    Save 40.00
    59.00
    VIVAX VC-1610B Thithese Elektrike - BLACK
    49.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); });