Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    Radiator 13-brinje 2500W ZLN3673
    Radiator 13-brinje 2500W ZLN3673
    Qty: 1
    Price: 59.00
    59.00
    Office Line Toner x 3020/3025
    Office Line Toner x 3020/3025
    Qty: 1
    Price: 19.90
    19.90
    Akel nxemse AS1210 me 3+2 tela 2900W
    Akel nxemse AS1210 me 3+2 tela 2900W
    Qty: 1
    Price: 39.90
    39.90
    TEFAL HT312138 Mikser 3.5l 300W me kofe
    79.90
    CANYON HSET-W6EN keyboard-mouse kitty edition PINK
    39.90
    ELECTROLUX E6EC1-6ST Aparat Espresso
    ELECTROLUX E6EC1-6ST Aparat Espresso
    Qty: 1
    Price: 199.00
    199.00
    ROWENTA CV5705F0 Fen 2200W
    ROWENTA CV5705F0 Fen 2200W
    Qty: 1
    Price: 34.90
    34.90
    VIVAX ACP-18CH50AEMI/Is-Os Klime Montuese
    VIVAX ACP-18CH50AEMI/Is-Os Klime Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €739.00.Çmimi i tanishëm është: €559.00.
    Save 180.00
    559.00
    ROWENTA CF3317F0 Figaro 45W 25mm
    ROWENTA CF3317F0 Figaro 45W 25mm
    Qty: 1
    Price: 26.90
    26.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); });