Log in

You dont have an account yet? Register Now

12
    12
    Shporta e juaj!
    BOKALL BISTRO TWIST0.500L
    BOKALL BISTRO TWIST0.500L
    Qty: 1
    Price: 3.49
    3.49
    XIAOMI Wireless Mouse Lite 2 Black GL
    XIAOMI Wireless Mouse Lite 2 Black GL
    Qty: 1
    Price: Çmimi origjinal qe: €14.90.Çmimi i tanishëm është: €12.90.
    Save 2.00
    12.90
    VIVAX BS-500 Zmadhues
    VIVAX BS-500 Zmadhues
    Qty: 1
    Price: 149.00
    149.00
    Ecolux Enlarese EMO1423 SB
    Ecolux Enlarese EMO1423 SB
    Qty: 1
    Price: 399.00
    399.00
    Ecolux Furre Montuese EV 60 MT
    Ecolux Furre Montuese EV 60 MT
    Qty: 2
    Price: 289.00
    578.00
    SAMSUNG LS25BG400EUXEN Monitor 240Hz
    SAMSUNG LS25BG400EUXEN Monitor 240Hz
    Qty: 1
    Price: 319.00
    319.00
    ELECTROLUX  ENS3SE18S Frigorifer Montues
    ELECTROLUX ENS3SE18S Frigorifer Montues
    Qty: 1
    Price: 699.00
    699.00
    GOTA UJI
    GOTA UJI
    Qty: 1
    Price: 5.99
    5.99
    Redmi Pad SE 8.7 Blue 4+128GB
    Redmi Pad SE 8.7 Blue 4+128GB
    Qty: 1
    Price: 199.00
    199.00
    Midea EZ-12RD6 BLACK
    Midea EZ-12RD6 BLACK
    Qty: 1
    Price: 660.00
    660.00
    MS C100 Maus i Thjeshte
    MS C100 Maus i Thjeshte
    Qty: 1
    Price: 4.90
    4.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); });