Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    HP 107W 4ZB78A
    HP 107W 4ZB78A
    Qty: 1
    Price: 159.00
    159.00
    XIAOMI ROBOT VACUUM H40EU
    XIAOMI ROBOT VACUUM H40EU
    Qty: 1
    Price: Çmimi origjinal qe: €499.00.Çmimi i tanishëm është: €269.00.
    Save 230.00
    269.00
    SAMSUNG SM-X200 Tablet 4/64GB
    SAMSUNG SM-X200 Tablet 4/64GB
    Qty: 1
    Price: Çmimi origjinal qe: €239.00.Çmimi i tanishëm është: €159.00.
    Save 80.00
    159.00
    Akel nxemse AS1210 me 3+2 tela 2900W
    Akel nxemse AS1210 me 3+2 tela 2900W
    Qty: 1
    Price: 39.90
    39.90
    ROWENTA TN3400F0 Makine e Rrojes
    ROWENTA TN3400F0 Makine e Rrojes
    Qty: 1
    Price: 49.90
    49.90
    ARZUM AR5201 Makine per Rroje pa kabell
    29.90
    Office Line Toner x 3020/3025
    Office Line Toner x 3020/3025
    Qty: 1
    Price: 19.90
    19.90
    Akel nxemse AS-1200 me 3 Tela 2100W
    Akel nxemse AS-1200 me 3 Tela 2100W
    Qty: 1
    Price: 49.90
    49.90
    PTC-602 Nxemse Muri
    PTC-602 Nxemse Muri
    Qty: 1
    Price: 89.90
    89.90
    XIAOMI Mi Smart Standing Fan 2 Lite
    XIAOMI Mi Smart Standing Fan 2 Lite
    Qty: 1
    Price: Çmimi origjinal qe: €99.00.Çmimi i tanishëm është: €49.90.
    Save 49.10
    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); });