Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    ROWENTA CV5705F0 Fen 2200W
    ROWENTA CV5705F0 Fen 2200W
    Qty: 1
    Price: 34.90
    34.90
    MIDEA AG16Black-12NXD6-I Klime Montuese Black Crystal
    1,798.00
    SAMSUNG CTR464EBO1/XEO Pllake Montuese
    SAMSUNG CTR464EBO1/XEO Pllake Montuese
    Qty: 1
    Price: 349.00
    349.00
    SAMSUNG GALAXY A05s 4/64 GB
    SAMSUNG GALAXY A05s 4/64 GB
    Qty: 1
    Price: 199.00
    199.00
    TEFAL FV2715 Hekur SuperGlide
    TEFAL FV2715 Hekur SuperGlide
    Qty: 1
    Price: 44.90
    44.90
    Akel nxemse AS1210 me 3+2 tela 2900W
    Akel nxemse AS1210 me 3+2 tela 2900W
    Qty: 1
    Price: 39.90
    39.90
    VIVAX TTR-93 Frigorifer
    VIVAX TTR-93 Frigorifer
    Qty: 1
    Price: 159.00
    159.00
    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
    Furrë Amica BOC4510
    Furrë Amica BOC4510
    Qty: 1
    Price: Çmimi origjinal qe: €279.00.Çmimi i tanishëm është: €149.00.
    Save 130.00
    149.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); });