Log in

You dont have an account yet? Register Now

8
    8
    Shporta e juaj!
    LUIGI FERRERO FR-1211 RRAHESE PER VEZE
    4.49
    XIAOMI Redmi Note 13 6/128GB Midnight Black
    XIAOMI Redmi Note 13 6/128GB Midnight Black
    Qty: 1
    Price: Çmimi origjinal qe: €249.00.Çmimi i tanishëm është: €179.00.
    Save 70.00
    179.00
    CANYON GK-55 Tastjere Gaming Comestrike
    59.99
    MS M100 AGON Qante Laptopi
    MS M100 AGON Qante Laptopi
    Qty: 1
    Price: 19.90
    19.90
    Midea EZ-12RD6 KLIME
    Midea EZ-12RD6 KLIME
    Qty: 1
    Price: 590.00
    590.00
    Tefal Peshore PP1401V0 deri 150 kg
    Tefal Peshore PP1401V0 deri 150 kg
    Qty: 1
    Price: 24.90
    24.90
    Ndriçues anësorë - 2013 BK
    Ndriçues anësorë - 2013 BK
    Qty: 1
    Price: 27.99
    27.99
    XIAOMI MI Compact Bluetooth Speaker 2
    XIAOMI MI Compact Bluetooth Speaker 2
    Qty: 1
    Price: Çmimi origjinal qe: €14.90.Çmimi i tanishëm është: €9.90.
    Save 5.00
    9.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); });