Recently Viewed Products

Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    FRIGORIFER SAMSUNG RB34T652EB1/EK
    FRIGORIFER SAMSUNG RB34T652EB1/EK
    Qty: 1
    Price: 849.00
    849.00
    ARZUM AR004-T Aparat per Kafe Kaft
    ARZUM AR004-T Aparat per Kafe Kaft
    Qty: 1
    Price: 59.90
    59.90
    MS B700 Ndegjuese Wireless
    MS B700 Ndegjuese Wireless
    Qty: 1
    Price: 29.90
    29.90
    XIAOMI Mi 33W Wall Charger Type-A, TypeC
    XIAOMI Mi 33W Wall Charger Type-A, TypeC
    Qty: 1
    Price: Çmimi origjinal qe: €24.90.Çmimi i tanishëm është: €19.90.
    Save 5.00
    19.90
    ECOLUX RA13F Radiator Elektrik
    ECOLUX RA13F Radiator Elektrik
    Qty: 1
    Price: 99.00
    99.00
    ARZUM AR5220 makine per rroje WET&DRY
    ARZUM AR5220 makine per rroje WET&DRY
    Qty: 1
    Price: 29.90
    29.90
    TMB NSB-2500 Kalorifer
    TMB NSB-2500 Kalorifer
    Qty: 1
    Price: 39.90
    39.90
    ELECTROLUX EKF3300 Aparat Per Kafe
    ELECTROLUX EKF3300 Aparat Per Kafe
    Qty: 1
    Price: 59.90
    59.90
    Furrë Montuese VIVAX BO-658FXHTD X
    Furrë Montuese VIVAX BO-658FXHTD X
    Qty: 1
    Price: 299.00
    299.00
    ROWENTA CF6430DO Figaro
    ROWENTA CF6430DO Figaro
    Qty: 1
    Price: 44.90
    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); });