Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    SAMSUNG NQ5B4553FBK/U3 Mikrovale Montuese
    849.00
    ROWENTA TN3400F0 Makine e Rrojes
    ROWENTA TN3400F0 Makine e Rrojes
    Qty: 1
    Price: 49.90
    49.90
    MARVO CH-150 BK Karrike Gaming
    MARVO CH-150 BK Karrike Gaming
    Qty: 1
    Price: 349.00
    349.00
    GOREX GRX F 60BLK Furre Montuese
    GOREX GRX F 60BLK Furre Montuese
    Qty: 1
    Price: 299.00
    299.00
    D-LINK DGS-1100-08V2/E
    D-LINK DGS-1100-08V2/E
    Qty: 1
    Price: 14.90
    14.90
    DALING DL-3023 1400W Fen per Floke
    DALING DL-3023 1400W Fen per Floke
    Qty: 1
    Price: 14.99
    14.99
    AMICA BOF5541S Furre Montuese
    AMICA BOF5541S Furre Montuese
    Qty: 1
    Price: 349.00
    349.00
    Xiaomi Mi Smart  Scale S200 (Black)
    Xiaomi Mi Smart Scale S200 (Black)
    Qty: 1
    Price: Çmimi origjinal qe: €29.90.Çmimi i tanishëm është: €19.90.
    Save 10.00
    19.90
    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
    D-LINK GO-SW-8G SWITCH
    D-LINK GO-SW-8G SWITCH
    Qty: 1
    Price: 14.90
    14.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); });