Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    TMB NSB-2500 Kalorifer
    TMB NSB-2500 Kalorifer
    Qty: 1
    Price: 39.90
    39.90
    MSI Monitor PRO MP2750, 27 FHD(1900x1080)
    199.00
    PTC-602 Nxemse Muri
    PTC-602 Nxemse Muri
    Qty: 1
    Price: 89.90
    89.90
    VIVAX ACP-12CH35REWI/I INVERTER -20C A+++
    VIVAX ACP-12CH35REWI/I INVERTER -20C A+++
    Qty: 1
    Price: Çmimi origjinal qe: €699.00.Çmimi i tanishëm është: €579.00.
    Save 120.00
    579.00
    VIVAX ACP-18CH50AEMI/Is-Os Klime Montuese
    VIVAX ACP-18CH50AEMI/Is-Os Klime Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €739.00.Çmimi i tanishëm është: €559.00.
    Save 180.00
    559.00
    Tefal Peshore PP1401V0 deri 150 kg
    Tefal Peshore PP1401V0 deri 150 kg
    Qty: 1
    Price: 24.90
    24.90
    GOREX GRX F 60BLK Furre Montuese
    GOREX GRX F 60BLK Furre Montuese
    Qty: 1
    Price: 299.00
    299.00
    AMICA BOC4510 Furre Montuese
    AMICA BOC4510 Furre Montuese
    Qty: 1
    Price: 279.00
    279.00
    ELECTROLUX EOC5E70X Furrë Montuese
    ELECTROLUX EOC5E70X Furrë Montuese
    Qty: 1
    Price: 529.00
    529.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); });