Log in

You dont have an account yet? Register Now

8
    8
    Shporta e juaj!
    XIAOMI KIT PRO Makin per Qethje
    XIAOMI KIT PRO Makin per Qethje
    Qty: 1
    Price: Çmimi origjinal qe: €54.90.Çmimi i tanishëm është: €39.90.
    Save 15.00
    39.90
    XIAOMI C300 Smart Camera
    XIAOMI C300 Smart Camera
    Qty: 1
    Price: 59.90
    59.90
    Xiaomi Double Wall  Electric Kettle
    Xiaomi Double Wall Electric Kettle
    Qty: 1
    Price: Çmimi origjinal qe: €44.90.Çmimi i tanishëm është: €34.90.
    Save 10.00
    34.90
    SAMSUNG RB34A7B5E12/EF Frigorifer White
    SAMSUNG RB34A7B5E12/EF Frigorifer White
    Qty: 1
    Price: 849.00
    849.00
    Ecolux Nxemese FH06
    Ecolux Nxemese FH06
    Qty: 1
    Price: 14.90
    14.90
    ELECTROLUX EOF3H50BK Furrë Montuese
    ELECTROLUX EOF3H50BK Furrë Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €379.00.Çmimi i tanishëm është: €249.00.
    Save 130.00
    249.00
    Furrë Montuese VIVAX BO-608FAHTD X
    Furrë Montuese VIVAX BO-608FAHTD X
    Qty: 1
    Price: Çmimi origjinal qe: €249.00.Çmimi i tanishëm është: €179.00.
    Save 70.00
    179.00
    Samsung SM-X110 Tab A9 4/64, Gray
    Samsung SM-X110 Tab A9 4/64, Gray
    Qty: 1
    Price: 219.00
    219.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); });