Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    Office Line Toner x 3020/3025
    Office Line Toner x 3020/3025
    Qty: 1
    Price: 19.90
    19.90
    SHUFER PER MREHJE 30CM
    SHUFER PER MREHJE 30CM
    Qty: 1
    Price: 5.99
    5.99
    ADF CTB 1352 B Aspirator Full Montues, Black
    99.00
    MIDEA 7NM30E0B, Furre Montuese e Zeze
    MIDEA 7NM30E0B, Furre Montuese e Zeze
    Qty: 1
    Price: 419.00
    419.00
    FAVORIT CC 600 WWF Shporet
    FAVORIT CC 600 WWF Shporet
    Qty: 1
    Price: 379.00
    379.00
    Xiaomi  Mi WI-FI Range Extender N300 White EU
    Xiaomi Mi WI-FI Range Extender N300 White EU
    Qty: 1
    Price: Çmimi origjinal qe: €19.90.Çmimi i tanishëm është: €14.90.
    Save 5.00
    14.90
    SAMSUNG LS24DG302EUXEN Monitor 180Hz
    SAMSUNG LS24DG302EUXEN Monitor 180Hz
    Qty: 1
    Price: 249.00
    249.00
    ELECTROLUX LHR3210CK Pllake Montuese
    ELECTROLUX LHR3210CK Pllake Montuese
    Qty: 1
    Price: 179.00
    179.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); });