Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    CANYON  headset Shadder GH-6 WHITE
    CANYON headset Shadder GH-6 WHITE
    Qty: 1
    Price: 29.90
    29.90
    Redmi Pad SE 8.7 Blue 4+128GB
    Redmi Pad SE 8.7 Blue 4+128GB
    Qty: 1
    Price: Çmimi origjinal qe: €199.00.Çmimi i tanishëm është: €89.00.
    Save 110.00
    89.00
    TMB FH-15 Kalorifer
    TMB FH-15 Kalorifer
    Qty: 1
    Price: 29.90
    29.90
    DALING DL-3025 FEN PER FLOKE
    DALING DL-3025 FEN PER FLOKE
    Qty: 1
    Price: 9.99
    9.99
    SBOX WKM 22 Tastjere + Mouse Bluetooth
    24.90
    XIAOMI Redmi Watch 5 Silver Gray
    XIAOMI Redmi Watch 5 Silver Gray
    Qty: 1
    Price: Çmimi origjinal qe: €179.00.Çmimi i tanishëm është: €99.00.
    Save 80.00
    99.00
    TENDA A6 Router Wireless Dualband
    TENDA A6 Router Wireless Dualband
    Qty: 1
    Price: 19.90
    19.90
    BRAUN SI5277GR Hekur me Avull 2700 W
    BRAUN SI5277GR Hekur me Avull 2700 W
    Qty: 1
    Price: 59.90
    59.90
    Tefal Peshore PP1401V0 deri 150 kg
    Tefal Peshore PP1401V0 deri 150 kg
    Qty: 1
    Price: 24.90
    24.90
    HP 32G13AA Monitor 27inch
    HP 32G13AA Monitor 27inch
    Qty: 1
    Price: 269.00
    269.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); });