Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    VIVAX TS-7501WHS Toster
    VIVAX TS-7501WHS Toster
    Qty: 1
    Price: 19.90
    19.90
    Ecolux Furre Montuese EV 60 MT
    Ecolux Furre Montuese EV 60 MT
    Qty: 1
    Price: 289.00
    289.00
    Klime multi outdoor unit Midea M3OE-21HFN8
    990.00
    VIVAX Life Fit 3 Beige
    VIVAX Life Fit 3 Beige
    Qty: 1
    Price: 39.90
    39.90
    Pllakë Amica PC6400ZH
    Pllakë Amica PC6400ZH
    Qty: 1
    Price: 279.00
    279.00
    VIVAX VC-1606 Thithëse Elektrike
    VIVAX VC-1606 Thithëse Elektrike
    Qty: 2
    Price: 39.90
    79.80
    Midea EZ-12RD6 BLACK
    Midea EZ-12RD6 BLACK
    Qty: 1
    Price: 660.00
    660.00
    ORE MURI -M-9045 A
    ORE MURI -M-9045 A
    Qty: 1
    Price: 14.99
    14.99
    VIVAX BH-02TVC Pllakë Montuese
    VIVAX BH-02TVC Pllakë Montuese
    Qty: 1
    Price: 99.00
    99.00
    VIVAX KS-502G Peshore Kuzhine
    VIVAX KS-502G Peshore Kuzhine
    Qty: 1
    Price: 14.90
    14.90
    GRANGUSTO PIJATE PER PICA 33CM
    GRANGUSTO PIJATE PER PICA 33CM
    Qty: 1
    Price: 5.99
    5.99
    D-LINK EAGLE PRO AX1500 Smart Router
    D-LINK EAGLE PRO AX1500 Smart Router
    Qty: 1
    Price: 74.90
    74.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); });