Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    XIAOMI MI 20W Mbushes Type C
    XIAOMI MI 20W Mbushes Type C
    Qty: 1
    Price: Çmimi origjinal qe: €19.90.Çmimi i tanishëm është: €12.90.
    Save 7.00
    12.90
    Vendmbajtëse
    PHILIPS HR1832/00 Shtrydhese Frutash
    Qty: 1
    Price: 119.00
    119.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
    XIAOMI Mi Tripod Selfie Stick
    XIAOMI Mi Tripod Selfie Stick
    Qty: 1
    Price: Çmimi origjinal qe: €34.90.Çmimi i tanishëm është: €19.90.
    Save 15.00
    19.90
    MS L510 Mauspad
    MS L510 Mauspad
    Qty: 1
    Price: 9.90
    9.90
    SANDISK USB 128GB
    SANDISK USB 128GB
    Qty: 1
    Price: 19.90
    19.90
    ARZUM OK0013-KX Aparat Per Kafe Turke
    ARZUM OK0013-KX Aparat Per Kafe Turke
    Qty: 1
    Price: 44.90
    44.90
    VIVAX Life Fit 3 Beige
    VIVAX Life Fit 3 Beige
    Qty: 1
    Price: 39.90
    39.90
    XIAOMI Redmi Watch 5 Active Midnight Black
    XIAOMI Redmi Watch 5 Active Midnight Black
    Qty: 1
    Price: Çmimi origjinal qe: €69.90.Çmimi i tanishëm është: €37.90.
    Save 32.00
    37.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); });