Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    Fen per floke Gama  3900W
    Fen per floke Gama 3900W
    Qty: 1
    Price: 19.90
    19.90
    VIVAX BS-110 Bluetooth Speaker
    VIVAX BS-110 Bluetooth Speaker
    Qty: 1
    Price: 34.90
    34.90
    XIAOMI G27i Monitor 165Hz
    XIAOMI G27i Monitor 165Hz
    Qty: 1
    Price: Çmimi origjinal qe: €179.00.Çmimi i tanishëm është: €129.00.
    Save 50.00
    129.00
    MS Gaming Set Elite C501
    MS Gaming Set Elite C501
    Qty: 1
    Price: 39.90
    39.90
    ECOLUX MW90BLK JS Mikrovale Montuese
    ECOLUX MW90BLK JS Mikrovale Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €219.00.Çmimi i tanishëm është: €149.00.
    Save 70.00
    149.00
    AMICA BOC4510 Furre Montuese
    AMICA BOC4510 Furre Montuese
    Qty: 1
    Price: 279.00
    279.00
    SBOX 1.4/M HDMI 10m
    SBOX 1.4/M HDMI 10m
    Qty: 1
    Price: 14.90
    14.90
    VIVAX BS-211 Bluetooth Speaker
    VIVAX BS-211 Bluetooth Speaker
    Qty: 1
    Price: 59.90
    59.90
    MSI Monitor MAG 255F E20,24.5" rapid IPS,FHD
    249.00
    Nutribullet NBP003W.PU Blender me Bateri type C
    Nutribullet NBP003W.PU Blender me Bateri type C
    Qty: 1
    Price: Çmimi origjinal qe: €79.00.Çmimi i tanishëm është: €49.90.
    Save 29.10
    49.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); });