Log in

You dont have an account yet? Register Now

21
    21
    Shporta e juaj!
    MIDEA AG16BLACK-24NXD6 KLIME
    MIDEA AG16BLACK-24NXD6 KLIME
    Qty: 1
    Price: 1,130.00
    1,130.00
    PIKTURA 62x82
    PIKTURA 62x82
    Qty: 2
    Price: 29.99
    59.98
    ORE MURI DEORATIVE
    ORE MURI DEORATIVE
    Qty: 2
    Price: 9.99
    19.98
    Njesia e brendshme multi Slip Type CBI-18HRFN8-I
    780.00
    Njesia e brendshme multi Slip Type CBI-24HRFN8-I
    1,350.00
    TEPSI PER KEK -A- 112
    TEPSI PER KEK -A- 112
    Qty: 1
    Price: 9.99
    9.99
    MIDEA MSEPBU-12HRFN8 KLIME
    MIDEA MSEPBU-12HRFN8 KLIME
    Qty: 1
    Price: 660.00
    660.00
    KRYPORE 6 PCS ME NGJYRA
    KRYPORE 6 PCS ME NGJYRA
    Qty: 2
    Price: 19.99
    39.98
    Midea EZ-24RD6 KLIME BLACK
    Midea EZ-24RD6 KLIME BLACK
    Qty: 1
    Price: 1,150.00
    1,150.00
    FERTERE -RFL- 28
    FERTERE -RFL- 28
    Qty: 1
    Price: 11.99
    11.99
    MIDEA MSEPCU-18HRFN8 KLIME
    MIDEA MSEPCU-18HRFN8 KLIME
    Qty: 1
    Price: 900.00
    900.00
    Midea EZ-12RD6 KLIME
    Midea EZ-12RD6 KLIME
    Qty: 1
    Price: 590.00
    590.00
    PJATA PER GRIMCIRA-KK-25-4
    PJATA PER GRIMCIRA-KK-25-4
    Qty: 1
    Price: 13.99
    13.99
    DALING DL-3018
    DALING DL-3018
    Qty: 1
    Price: 17.99
    17.99
    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); });