Log in

You dont have an account yet? Register Now

12
    12
    Shporta e juaj!
    MUHLER MHT-383 Aparat per Krepa 30Cm
    MUHLER MHT-383 Aparat per Krepa 30Cm
    Qty: 1
    Price: 49.90
    49.90
    AMICA BOC4510 Furre Montuese
    AMICA BOC4510 Furre Montuese
    Qty: 1
    Price: 279.00
    279.00
    SET I EMBELSIRAVE
    SET I EMBELSIRAVE
    Qty: 1
    Price: 9.99
    9.99
    GOREX GRX F 60BLK Furre Montuese
    GOREX GRX F 60BLK Furre Montuese
    Qty: 1
    Price: 299.00
    299.00
    MARVO KG954 Tastiere Gaming
    MARVO KG954 Tastiere Gaming
    Qty: 1
    Price: 44.90
    44.90
    FAVORIT 78-D LUX B Furre Montuese
    FAVORIT 78-D LUX B Furre Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €299.00.Çmimi i tanishëm është: €219.00.
    Save 80.00
    219.00
    HANSA AMG17M2BH Mikrovale BL
    HANSA AMG17M2BH Mikrovale BL
    Qty: 2
    Price: 149.00
    298.00
    SAMSUNG SM-X200 Tablet 4/64GB
    SAMSUNG SM-X200 Tablet 4/64GB
    Qty: 1
    Price: Çmimi origjinal qe: €239.00.Çmimi i tanishëm është: €159.00.
    Save 80.00
    159.00
    SAMSUNG LC27G55TQWRXEN WQHD Curved HDMI DP
    249.00
    ECOLUX RA13F Radiator Elektrik
    ECOLUX RA13F Radiator Elektrik
    Qty: 1
    Price: 99.00
    99.00
    VIVAX DWB-450952C Enelarese Full Montuese
    VIVAX DWB-450952C Enelarese Full Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €319.00.Çmimi i tanishëm është: €229.00.
    Save 90.00
    229.00
    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); });