Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    MIDEA KLINE CB1-24HRFN8
    MIDEA KLINE CB1-24HRFN8
    Qty: 1
    Price: 1,020.00
    1,020.00
    Midea MSAGBU-24HRFNX
    Midea MSAGBU-24HRFNX
    Qty: 2
    Price: 890.00
    1,780.00
    Modeli Portable Midea  MMCS-12HRN8
    Modeli Portable Midea MMCS-12HRN8
    Qty: 1
    Price: 780.00
    780.00
    Midea CB1-12HRFN8-I
    Midea CB1-12HRFN8-I
    Qty: 1
    Price: 560.00
    560.00
    MIDEA MSEPBU-12HRFN8 KLIME
    MIDEA MSEPBU-12HRFN8 KLIME
    Qty: 1
    Price: 660.00
    660.00
    Midea EZ-12RD6 BLACK
    Midea EZ-12RD6 BLACK
    Qty: 2
    Price: 660.00
    1,320.00
    Enëlarëse Ecolux – ECO DW 14V
    Enëlarëse Ecolux – ECO DW 14V
    Qty: 1
    Price: 299.00
    299.00
    Midea EZ-18RD6 KLIME BLACK
    Midea EZ-18RD6 KLIME BLACK
    Qty: 1
    Price: 900.00
    900.00
    MIDEA KLIME  -  MSFAAU-12HRFN8
    MIDEA KLIME - MSFAAU-12HRFN8
    Qty: 1
    Price: 680.00
    680.00
    MIDEA MSEPDU-24HRFN8 KLIME
    MIDEA MSEPDU-24HRFN8 KLIME
    Qty: 1
    Price: 1,150.00
    1,150.00
    GOREX GRX F188LF IX Frigorifer
    GOREX GRX F188LF IX Frigorifer
    Qty: 1
    Price: Çmimi origjinal qe: €499.00.Çmimi i tanishëm është: €379.00.
    Save 120.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); });