Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    Vendmbajtëse
    PHILIPS HD9318/00 Bokall Uji Bardhe
    Qty: 1
    Price: 49.90
    49.90
    D-LINK EAGLE PRO AX1500 Smart Router
    D-LINK EAGLE PRO AX1500 Smart Router
    Qty: 1
    Price: 74.90
    74.90
    Ndriçues - GM3-8
    Ndriçues - GM3-8
    Qty: 1
    Price: 59.99
    59.99
    WHITE SHARK GBP-007 Qante Laptopi
    WHITE SHARK GBP-007 Qante Laptopi
    Qty: 1
    Price: 19.90
    19.90
    Tefal Peshore PP1401V0 deri 150 kg
    Tefal Peshore PP1401V0 deri 150 kg
    Qty: 1
    Price: 24.90
    24.90
    WHITE SHARK MP 1897 UMETHON MAUSPAD 40x30cm
    9.90
    Bruno Elite Shine Luxury Series 12000-BTU
    399.00
    Furrë Nordix FMN630B
    Furrë Nordix FMN630B
    Qty: 1
    Price: 249.00
    249.00
    MS Maus Gaming Nemesis C315
    MS Maus Gaming Nemesis C315
    Qty: 1
    Price: 14.90
    14.90
    SAMSUNG NQ5B4553FBK/U3 Mikrovale Montuese
    849.00
    WHITE SHARK GM 5007 Maus Gaming Galahad
    27.90
    AOC Q27G2S/EU 27 inch Monitor
    AOC Q27G2S/EU 27 inch Monitor
    Qty: 1
    Price: 299.00
    299.00
    KORKMAZ A2950 GALAKSI TENGJERE
    KORKMAZ A2950 GALAKSI TENGJERE
    Qty: 1
    Price: 24.99
    24.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); });