Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    DESSINI DS-5582 Fen Per Floke
    DESSINI DS-5582 Fen Per Floke
    Qty: 1
    Price: 29.90
    29.90
    VIVAX HD-2000 Fem per floke
    VIVAX HD-2000 Fem per floke
    Qty: 1
    Price: 24.90
    24.90
    GOREX GRX F 60BLK Furre Montuese
    GOREX GRX F 60BLK Furre Montuese
    Qty: 1
    Price: 299.00
    299.00
    Radiator 13-brinje 2500W ZLN3673
    Radiator 13-brinje 2500W ZLN3673
    Qty: 1
    Price: 59.00
    59.00
    ELECTROLUX LOF3H10K Furre Montuese
    ELECTROLUX LOF3H10K Furre Montuese
    Qty: 1
    Price: 579.00
    579.00
    VIVAX WM-900WH Waffle Maker
    VIVAX WM-900WH Waffle Maker
    Qty: 1
    Price: 24.90
    24.90
    Furrë Nordix BOS118B
    Furrë Nordix BOS118B
    Qty: 1
    Price: 249.00
    249.00
    Akel nxemse AS-1200 me 3 Tela 2100W
    Akel nxemse AS-1200 me 3 Tela 2100W
    Qty: 1
    Price: 49.90
    49.90
    TMB NSB-2500 Kalorifer
    TMB NSB-2500 Kalorifer
    Qty: 1
    Price: 39.90
    39.90
    XIAOMI Gaming Monitor G27i EU
    XIAOMI Gaming Monitor G27i EU
    Qty: 1
    Price: Çmimi origjinal qe: €199.00.Çmimi i tanishëm është: €149.00.
    Save 50.00
    149.00
    LUIGI FERRERO FR-1865 GERSHERE KUZHINE
    4.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); });