Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    SBOX 1.4/M HDMI 10m
    SBOX 1.4/M HDMI 10m
    Qty: 1
    Price: 14.90
    14.90
    OVLENG Kufje GT92
    OVLENG Kufje GT92
    Qty: 1
    Price: 39.99
    39.99
    FANTOM WD 2750 S Thithëse Eco
    FANTOM WD 2750 S Thithëse Eco
    Qty: 1
    Price: 89.90
    89.90
    SAMSUNG LS27BG400EUXEN Monitor FHD 240Hz
    329.00
    XIAOMI MI 20W Mbushes Type C
    XIAOMI MI 20W Mbushes Type C
    Qty: 1
    Price: 19.90
    19.90
    MIDEA MD200H80BW/W, 8Kg A+++
    MIDEA MD200H80BW/W, 8Kg A+++
    Qty: 1
    Price: 599.00
    599.00
    Midea D10-20VX  Bojler 10 L
    Midea D10-20VX Bojler 10 L
    Qty: 1
    Price: Çmimi origjinal qe: €99.00.Çmimi i tanishëm është: €74.00.
    Save 25.00
    74.00
    Xiaomi Redmi Buds 6 Active Blue
    Xiaomi Redmi Buds 6 Active Blue
    Qty: 1
    Price: 29.90
    29.90
    Furrë Amica BOF5541S
    Furrë Amica BOF5541S
    Qty: 1
    Price: Çmimi origjinal qe: €349.00.Çmimi i tanishëm është: €229.00.
    Save 120.00
    229.00
    VIVAX CHO-60BI100T B Aspirator Full Montues
    VIVAX CHO-60BI100T B Aspirator Full Montues
    Qty: 1
    Price: Çmimi origjinal qe: €149.00.Çmimi i tanishëm është: €79.00.
    Save 70.00
    79.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); });