Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    HP CS10 COMBO Tastier & Maus
    HP CS10 COMBO Tastier & Maus
    Qty: 2
    Price: 29.90
    59.80
    SAMSUNG EP-T4510EXBEGEU 45W ADAPTER
    SAMSUNG EP-T4510EXBEGEU 45W ADAPTER
    Qty: 1
    Price: 39.90
    39.90
    MUHLER MC-313 Makine Rroje
    MUHLER MC-313 Makine Rroje
    Qty: 1
    Price: 9.90
    9.90
    AOC 24G2SPAE Monitor 165Hz 24inch
    AOC 24G2SPAE Monitor 165Hz 24inch
    Qty: 1
    Price: 219.00
    219.00
    MS M-AC3200B Kabell USB-A -> USB-C
    MS M-AC3200B Kabell USB-A -> USB-C
    Qty: 1
    Price: 2.90
    2.90
    Tavolinë Salloni - K45-629
    Tavolinë Salloni - K45-629
    Qty: 1
    Price: 199.99
    199.99
    VENUS BIH 60100, Pllake Montuese
    VENUS BIH 60100, Pllake Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €199.00.Çmimi i tanishëm është: €99.00.
    Save 100.00
    99.00
    XIAOMI REDMI Note 12 Pro 8/256GB Glacier Blue (Dhurate, CASE & Mbushes 67W)
    XIAOMI REDMI Note 12 Pro 8/256GB Glacier Blue (Dhurate, CASE & Mbushes 67W)
    Qty: 1
    Price: Çmimi origjinal qe: €459.00.Çmimi i tanishëm është: €255.00.
    Save 204.00
    255.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); });