Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    XIAOMI H101 Fen compakt Pink
    XIAOMI H101 Fen compakt Pink
    Qty: 1
    Price: Çmimi origjinal qe: €34.90.Çmimi i tanishëm është: €24.90.
    Save 10.00
    24.90
    VIVAX 32LE20K_REG Smart TV
    VIVAX 32LE20K_REG Smart TV
    Qty: 1
    Price: 179.00
    179.00
    MIDEA MH52BI3200X-ES Aspirator
    MIDEA MH52BI3200X-ES Aspirator
    Qty: 1
    Price: 149.00
    149.00
    Ecolux Furre Montuese EV 60 MT
    Ecolux Furre Montuese EV 60 MT
    Qty: 1
    Price: 289.00
    289.00
    Ecolux Frigorifer  ECO FR177LN
    Ecolux Frigorifer ECO FR177LN
    Qty: 1
    Price: 519.00
    519.00
    Xiaomi Type-C Earphones White
    Xiaomi Type-C Earphones White
    Qty: 1
    Price: Çmimi origjinal qe: €9.90.Çmimi i tanishëm është: €6.90.
    Save 3.00
    6.90
    Blender Nutribullet Baby NBY100
    Blender Nutribullet Baby NBY100
    Qty: 1
    Price: 79.00
    79.00
    Larese/Tharse Nordix LTC7512BZ
    Larese/Tharse Nordix LTC7512BZ
    Qty: 1
    Price: 399.00
    399.00
    XIAOMI Redmi Note 13 6/128GB Midnight Black
    XIAOMI Redmi Note 13 6/128GB Midnight Black
    Qty: 1
    Price: Çmimi origjinal qe: €249.00.Çmimi i tanishëm është: €179.00.
    Save 70.00
    179.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); });