Log in

You dont have an account yet? Register Now

14
    14
    Shporta e juaj!
    KLIME MULTI OUTDOOR UNIT M3OE-27HFN8
    KLIME MULTI OUTDOOR UNIT M3OE-27HFN8
    Qty: 1
    Price: 1,100.00
    1,100.00
    Set thika 1/7-ALM-0088 W
    Set thika 1/7-ALM-0088 W
    Qty: 1
    Price: 34.99
    34.99
    ORE MURI -M- 9071 B
    ORE MURI -M- 9071 B
    Qty: 1
    Price: 14.99
    14.99
    DALING DL-3023FEN PER FLOK
    DALING DL-3023FEN PER FLOK
    Qty: 2
    Price: 7.99
    15.98
    Midea MSAGBU-24HRFNX
    Midea MSAGBU-24HRFNX
    Qty: 2
    Price: 890.00
    1,780.00
    MIDEA KLIME  -  MSFAAU-12HRFN8
    MIDEA KLIME - MSFAAU-12HRFN8
    Qty: 1
    Price: 680.00
    680.00
    FILXHANA PER KAFE -D07G-Y387 S
    FILXHANA PER KAFE -D07G-Y387 S
    Qty: 1
    Price: 18.99
    18.99
    Modeli Portable Midea  MMCS-12HRN8
    Modeli Portable Midea MMCS-12HRN8
    Qty: 1
    Price: 780.00
    780.00
    Njesia e brendshme multi Slip Type CBI-18HRFN8-I
    390.00
    SET USHQIMI 1/24 - T5301
    SET USHQIMI 1/24 - T5301
    Qty: 1
    Price: 59.99
    59.99
    Piktura me kornize - 53x63
    Piktura me kornize - 53x63
    Qty: 1
    Price: 29.99
    29.99
    VIVAX BS-210 Bluetooth Speaker
    VIVAX BS-210 Bluetooth Speaker
    Qty: 1
    Price: 39.90
    39.90
    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); });