Log in

You dont have an account yet? Register Now

12
    12
    Shporta e juaj!
    AOC 24B2XHM Monitor 75Hz 24INCH
    AOC 24B2XHM Monitor 75Hz 24INCH
    Qty: 1
    Price: 179.00
    179.00
    TCL TAC-12CHSD/TPG11 Inverter -20 WiFi
    TCL TAC-12CHSD/TPG11 Inverter -20 WiFi
    Qty: 1
    Price: 499.00
    499.00
    WHITE SHARK GM-9006 Maus Gaming
    WHITE SHARK GM-9006 Maus Gaming
    Qty: 1
    Price: 24.90
    24.90
    MS Tastierë Gaming Elite C720
    MS Tastierë Gaming Elite C720
    Qty: 1
    Price: 40.00
    40.00
    Ndriçues - GM2-4
    Ndriçues - GM2-4
    Qty: 1
    Price: 29.99
    29.99
    Ndriçues anësorë - B6039-BK
    Ndriçues anësorë - B6039-BK
    Qty: 1
    Price: 34.99
    34.99
    GOREX GRX F 60BLK Furre Montuese
    GOREX GRX F 60BLK Furre Montuese
    Qty: 1
    Price: 299.00
    299.00
    Fen per floke Gama  3900W
    Fen per floke Gama 3900W
    Qty: 1
    Price: 19.90
    19.90
    ROWENTA CF3411D0 Figaro 25mm Digjitale
    32.90
    SET PIJATASH PER EMBELSIRA
    SET PIJATASH PER EMBELSIRA
    Qty: 1
    Price: 12.99
    12.99
    BRUSHE SILIKONI ART-21525
    BRUSHE SILIKONI ART-21525
    Qty: 1
    Price: 4.49
    4.49
    ELECTROLUX LOF3H10K Furre Montuese
    ELECTROLUX LOF3H10K Furre Montuese
    Qty: 1
    Price: 579.00
    579.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); });