Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    VIVAX CHO-60BI100T B Aspirator Full Montues
    VIVAX CHO-60BI100T B Aspirator Full Montues
    Qty: 1
    Price: Çmimi origjinal qe: €149.00.Çmimi i tanishëm është: €79.00.
    Save 70.00
    79.00
    SAMSUNG CTR464EBO1/XEO Pllake Montuese
    SAMSUNG CTR464EBO1/XEO Pllake Montuese
    Qty: 1
    Price: 349.00
    349.00
    Xiaomi Mi Smart  Scale S200 (WHITE)
    Xiaomi Mi Smart Scale S200 (WHITE)
    Qty: 3
    Price: Çmimi origjinal qe: €24.90.Çmimi i tanishëm është: €16.90.
    Save 24.00
    50.70
    DESSINI VP8 DREJTUESE PER FLOKE
    DESSINI VP8 DREJTUESE PER FLOKE
    Qty: 1
    Price: 14.99
    14.99
    MS L510 Mauspad
    MS L510 Mauspad
    Qty: 1
    Price: 9.90
    9.90
    HP K300 Tastier Gaming
    HP K300 Tastier Gaming
    Qty: 1
    Price: 19.99
    19.99
    Shporet Nordix FHEC654V-W
    Shporet Nordix FHEC654V-W
    Qty: 1
    Price: 289.00
    289.00
    SAMSUNG LS27BG400EUXEN Monitor FHD 240Hz
    329.00
    ROWENTA EP2900F0 Depilator Spirit
    ROWENTA EP2900F0 Depilator Spirit
    Qty: 2
    Price: 49.90
    99.80
    ELECTROLUX EOF3H40BX Furre montuese
    ELECTROLUX EOF3H40BX Furre montuese
    Qty: 1
    Price: 379.00
    379.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); });