Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    TEFAL QB310538 Mikser 1000W 4l Profesional
    259.00
    Ndriçues - GM4-9
    Ndriçues - GM4-9
    Qty: 1
    Price: 69.99
    69.99
    XIAOMI REDMI NOTE 13 8/256 Midnight Black
    XIAOMI REDMI NOTE 13 8/256 Midnight Black
    Qty: 2
    Price: Çmimi origjinal qe: €399.00.Çmimi i tanishëm është: €255.00.
    Save 288.00
    510.00
    SET FILXHANA NESS KAFE
    SET FILXHANA NESS KAFE
    Qty: 1
    Price: 19.99
    19.99
    Thithese FANTOM DU 1700
    Thithese FANTOM DU 1700
    Qty: 1
    Price: 99.90
    99.90
    WHITE SHARK GK-2201 Tastiere RONIN E ZEZE
    44.90
    Vendmbajtëse
    Toster - DESSINI DS-410A
    Qty: 1
    Price: 14.99
    14.99
    DELUX M625 3360 Maus Gaming
    DELUX M625 3360 Maus Gaming
    Qty: 1
    Price: 24.90
    24.90
    Mbajtese TV 1442"
    Mbajtese TV 1442"
    Qty: 1
    Price: 9.90
    9.90
    SAMSUNG EP-TA800XBEGW TYPE-C ADAPTER
    SAMSUNG EP-TA800XBEGW TYPE-C ADAPTER
    Qty: 1
    Price: 29.90
    29.90
    MS Z500 Koke Adapteri
    MS Z500 Koke Adapteri
    Qty: 1
    Price: 12.90
    12.90
    SAMSUNG COVER TAB A9+ EF-BX210TBEGWW
    SAMSUNG COVER TAB A9+ EF-BX210TBEGWW
    Qty: 1
    Price: 29.90
    29.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); });