Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    MS MSI Focus M111, Maus Wireless
    MS MSI Focus M111, Maus Wireless
    Qty: 1
    Price: 9.90
    9.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
    Vendmbajtëse
    FAVORIT HCF 300 Friz Horizontal
    Qty: 1
    Price: 319.00
    319.00
    XIAOMI Mi Sound Outdoor 30W Black
    XIAOMI Mi Sound Outdoor 30W Black
    Qty: 1
    Price: Çmimi origjinal qe: €59.90.Çmimi i tanishëm është: €49.90.
    Save 10.00
    49.90
    TELEVIZOR SAMSUNG UE75U8092FUXXH | 75" LED 4K TIZEN
    1,249.00
    MS C305 ICARUS Ndegjuse Gaming
    MS C305 ICARUS Ndegjuse Gaming
    Qty: 2
    Price: 19.90
    39.80
    DESSINI DS-5583 Fen per Floke
    DESSINI DS-5583 Fen per Floke
    Qty: 1
    Price: 29.90
    29.90
    Akel nxemse AS1210 me 3+2 tela 2900W
    Akel nxemse AS1210 me 3+2 tela 2900W
    Qty: 1
    Price: 39.90
    39.90
    MARVO KG954 Tastiere Gaming
    MARVO KG954 Tastiere Gaming
    Qty: 1
    Price: 44.90
    44.90
    XIAOMI Mi Air Compressor 2
    XIAOMI Mi Air Compressor 2
    Qty: 1
    Price: Çmimi origjinal qe: €69.90.Çmimi i tanishëm është: €44.90.
    Save 25.00
    44.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); });