Log in

You dont have an account yet? Register Now

14
    14
    Shporta e juaj!
    Tefal Peshore PP1401V0 deri 150 kg
    Tefal Peshore PP1401V0 deri 150 kg
    Qty: 1
    Price: 24.90
    24.90
    MS C106 Maus
    MS C106 Maus
    Qty: 1
    Price: 4.90
    4.90
    DESSINI DS-5583 Fen per Floke
    DESSINI DS-5583 Fen per Floke
    Qty: 1
    Price: 29.90
    29.90
    CAYNON HSET-W5 ENkeyboard -mouse WHITE
    39.90
    XIAOMI REDMI NOTE 12 4/128GB - Ice Blue
    XIAOMI REDMI NOTE 12 4/128GB - Ice Blue
    Qty: 1
    Price: Çmimi origjinal qe: €319.00.Çmimi i tanishëm është: €175.00.
    Save 144.00
    175.00
    Floria gjezve per kafe 600W
    Floria gjezve per kafe 600W
    Qty: 1
    Price: 12.90
    12.90
    VIVAX ACP-12CH35AERI/Is--Os SILVER
    VIVAX ACP-12CH35AERI/Is--Os SILVER
    Qty: 1
    Price: 629.00
    629.00
    BRUNO CBR-12DE Klime Montuese -20, Shine Luxory
    499.00
    Kalorifer VIVAX FH-2081
    Kalorifer VIVAX FH-2081
    Qty: 1
    Price: 19.90
    19.90
    ROWENTA EP1048F0 Depilator Fashionista
    49.99
    TEFAL ZE370138 Frutella Shtrydhese 350W
    99.90
    Xiaomi Mi Smart  Scale S200 (Dark Grey)
    Xiaomi Mi Smart Scale S200 (Dark Grey)
    Qty: 1
    Price: Çmimi origjinal qe: €24.90.Çmimi i tanishëm është: €19.90.
    Save 5.00
    19.90
    MS D105 Ftohes Laptopi
    MS D105 Ftohes Laptopi
    Qty: 1
    Price: 14.90
    14.90
    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
    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); });