Log in

You dont have an account yet? Register Now

8
    8
    Shporta e juaj!
    CANYON HSET-W6EN Kitty Edition Blue
    CANYON HSET-W6EN Kitty Edition Blue
    Qty: 1
    Price: 39.90
    39.90
    LUGE ANNIE DESSERT 1/3
    LUGE ANNIE DESSERT 1/3
    Qty: 1
    Price: 8.49
    8.49
    SAMSUNG UE50U8072FUXXH, Smart TV 4K
    SAMSUNG UE50U8072FUXXH, Smart TV 4K
    Qty: 1
    Price: Çmimi origjinal qe: €499.00.Çmimi i tanishëm është: €349.00.
    Save 150.00
    349.00
    SAMSUNG UE85U8072FUXXH, Smart TV
    SAMSUNG UE85U8072FUXXH, Smart TV
    Qty: 1
    Price: Çmimi origjinal qe: €1,799.00.Çmimi i tanishëm është: €1,249.00.
    Save 550.00
    1,249.00
    KRUPS KP1A3B31/B10 Aparat me Kapsula XS
    KRUPS KP1A3B31/B10 Aparat me Kapsula XS
    Qty: 1
    Price: 109.00
    109.00
    XIAOMI MI Compact Bluetooth Speaker 2
    XIAOMI MI Compact Bluetooth Speaker 2
    Qty: 1
    Price: 14.90
    14.90
    Furrë Amica BOF5541S
    Furrë Amica BOF5541S
    Qty: 1
    Price: Çmimi origjinal qe: €349.00.Çmimi i tanishëm është: €229.00.
    Save 120.00
    229.00
    VIVAX ACP-24CH70AEMI/Is-Os Klime Montuese
    VIVAX ACP-24CH70AEMI/Is-Os Klime Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €1,019.00.Çmimi i tanishëm është: €769.00.
    Save 250.00
    769.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); });