Log in

You dont have an account yet? Register Now

8
    8
    Shporta e juaj!
    SAMSUNG EP-TA800XBEGW TYPE-C ADAPTER
    SAMSUNG EP-TA800XBEGW TYPE-C ADAPTER
    Qty: 1
    Price: 29.90
    29.90
    AOC Q27G2E/BK 27 inch Monitor
    AOC Q27G2E/BK 27 inch Monitor
    Qty: 1
    Price: 239.00
    239.00
    VIVAX MWO-2078 Mikrovale
    VIVAX MWO-2078 Mikrovale
    Qty: 1
    Price: 89.00
    89.00
    Ecolux 80L – ECO BOJ80 MDA Bojler 80 L
    Ecolux 80L – ECO BOJ80 MDA Bojler 80 L
    Qty: 1
    Price: Çmimi origjinal qe: €149.00.Çmimi i tanishëm është: €99.00.
    Save 50.00
    99.00
    Ndriçues - GM5-9
    Ndriçues - GM5-9
    Qty: 1
    Price: 89.99
    89.99
    WHITE SHARK GM-9006 Maus Gaming
    WHITE SHARK GM-9006 Maus Gaming
    Qty: 1
    Price: 24.90
    24.90
    Vendmbajtëse
    Toster - DESSINI DS-410A
    Qty: 1
    Price: 14.99
    14.99
    Office Line Toner x 3020/3025
    Office Line Toner x 3020/3025
    Qty: 1
    Price: 19.90
    19.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); });