Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    Xiaomi Mi Smart  Scale S200 (WHITE)
    Xiaomi Mi Smart Scale S200 (WHITE)
    Qty: 1
    Price: Çmimi origjinal qe: €29.90.Çmimi i tanishëm është: €19.90.
    Save 10.00
    19.90
    Ecolux 80L – ECO BOJ80 MDA Bojler 80 L
    Ecolux 80L – ECO BOJ80 MDA Bojler 80 L
    Qty: 1
    Price: Çmimi origjinal qe: €149.00.Çmimi i tanishëm është: €99.00.
    Save 50.00
    99.00
    ARZUM AR189 Grirese Duplex 500W
    ARZUM AR189 Grirese Duplex 500W
    Qty: 1
    Price: 34.90
    34.90
    Vendmbajtëse
    39.99
    Xiaomi Mi Sound  Outdoor 30W (Green)
    Xiaomi Mi Sound Outdoor 30W (Green)
    Qty: 1
    Price: Çmimi origjinal qe: €59.90.Çmimi i tanishëm është: €49.90.
    Save 10.00
    49.90
    VIVAX TS-7501BLS Toster
    VIVAX TS-7501BLS Toster
    Qty: 1
    Price: 29.90
    29.90
    ELECTROLUX  ENS3SE18S Frigorifer Montues
    ELECTROLUX ENS3SE18S Frigorifer Montues
    Qty: 1
    Price: 699.00
    699.00
    VIVAX EG-5010X Grill Elektrik
    VIVAX EG-5010X Grill Elektrik
    Qty: 1
    Price: 59.90
    59.90
    SAMSUNG CTR464EBO1/XEO Pllake Montuese
    SAMSUNG CTR464EBO1/XEO Pllake Montuese
    Qty: 1
    Price: 349.00
    349.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); });