Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    MS P300 Mbajtes Laptopi
    MS P300 Mbajtes Laptopi
    Qty: 1
    Price: 14.90
    14.90
    LUIGI FERRERO FR-1259 HAPES PER KONZERVA
    2.99
    GOREX GRX F 60BLK Furre Montuese
    GOREX GRX F 60BLK Furre Montuese
    Qty: 1
    Price: 299.00
    299.00
    AMICA BOF5541S Furre Montuese
    AMICA BOF5541S Furre Montuese
    Qty: 2
    Price: 349.00
    698.00
    ARZUM AR004-T Aparat per Kafe Kaft
    ARZUM AR004-T Aparat per Kafe Kaft
    Qty: 1
    Price: 59.90
    59.90
    ELECTROLUX E6EC1-6ST Aparat Espresso
    ELECTROLUX E6EC1-6ST Aparat Espresso
    Qty: 1
    Price: 199.00
    199.00
    ROWENTA TN3400F0 Makine e Rrojes
    ROWENTA TN3400F0 Makine e Rrojes
    Qty: 2
    Price: 49.90
    99.80
    DESSINI VP5A Drejtuese per Floke
    DESSINI VP5A Drejtuese per Floke
    Qty: 1
    Price: 29.90
    29.90
    MSI Monitor PRO MP2750, 27 FHD(1900x1080)
    199.00
    Fen per floke Gama  3900W
    Fen per floke Gama 3900W
    Qty: 1
    Price: 19.90
    19.90
    XIAOMI Mi Smart Band 9 Midnight Black
    XIAOMI Mi Smart Band 9 Midnight Black
    Qty: 1
    Price: Çmimi origjinal qe: €69.90.Çmimi i tanishëm është: €44.90.
    Save 25.00
    44.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); });