Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    SAMSUNG LS27BG400EUXEN Monitor FHD 240Hz
    329.00
    CAYNON HSET-W5 ENkeyboard -mouse WHITE
    39.90
    Aspirator Hansa OMP6211IH
    Aspirator Hansa OMP6211IH
    Qty: 1
    Price: Çmimi origjinal qe: €99.00.Çmimi i tanishëm është: €59.00.
    Save 40.00
    59.00
    BRUNO BR-12CHSD/TP41i3A Klime Montuese -30
    499.00
    OVLENG Kufje GT92
    OVLENG Kufje GT92
    Qty: 1
    Price: 39.99
    39.99
    Xiaomi Uni Blade Replacment Head
    Xiaomi Uni Blade Replacment Head
    Qty: 1
    Price: Çmimi origjinal qe: €19.90.Çmimi i tanishëm është: €9.90.
    Save 10.00
    9.90
    MS D105 Ftohes Laptopi
    MS D105 Ftohes Laptopi
    Qty: 1
    Price: 14.90
    14.90
    Xiaomi Mi Sound  Outdoor 30W (Green)
    Xiaomi Mi Sound Outdoor 30W (Green)
    Qty: 1
    Price: Çmimi origjinal qe: €59.90.Çmimi i tanishëm është: €49.90.
    Save 10.00
    49.90
    ADF CTB 1352 I aspirator full montues Inox
    ADF CTB 1352 I aspirator full montues Inox
    Qty: 1
    Price: Çmimi origjinal qe: €99.00.Çmimi i tanishëm është: €59.00.
    Save 40.00
    59.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); });