Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    Rowenta TN3400FO Makine Rroje
    Rowenta TN3400FO Makine Rroje
    Qty: 1
    Price: 49.00
    49.00
    VIVAX CM-1000R Aparat Elektrik I Kafes
    17.90
    XIAOMI Mi 120W Charging Combo Type A
    XIAOMI Mi 120W Charging Combo Type A
    Qty: 1
    Price: Çmimi origjinal qe: €59.90.Çmimi i tanishëm është: €44.90.
    Save 15.00
    44.90
    LUIGI FERRERO FR-1229 MASHA PRIMA
    LUIGI FERRERO FR-1229 MASHA PRIMA
    Qty: 1
    Price: 2.49
    2.49
    SAMSUNG UE32T4302AKXXH  HD LED TV
    SAMSUNG UE32T4302AKXXH HD LED TV
    Qty: 1
    Price: Çmimi origjinal qe: €299.00.Çmimi i tanishëm është: €199.00.
    Save 100.00
    199.00
    Friz Ecolux 290L – ECO F399 WHT
    Friz Ecolux 290L – ECO F399 WHT
    Qty: 1
    Price: 279.00
    279.00
    ELECTROLUX EOD5C50Z Furre Steam Bake
    ELECTROLUX EOD5C50Z Furre Steam Bake
    Qty: 1
    Price: 519.00
    519.00
    VIVIO VV-205 Thithese Me Uje
    VIVIO VV-205 Thithese Me Uje
    Qty: 1
    Price: 139.00
    139.00
    VIVAX MWO-2079 BG Mikrovalë
    VIVAX MWO-2079 BG Mikrovalë
    Qty: 1
    Price: 99.90
    99.90
    VIVAX BS-1000 Zmadhues zeri
    VIVAX BS-1000 Zmadhues zeri
    Qty: 1
    Price: 199.00
    199.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); });