Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    Xiaomi Redmi Buds 6 Active Blue
    Xiaomi Redmi Buds 6 Active Blue
    Qty: 1
    Price: Çmimi origjinal qe: €29.90.Çmimi i tanishëm është: €19.90.
    Save 10.00
    19.90
    HOOVER HHSBSO-6174BWD-SBS Frigorifer
    HOOVER HHSBSO-6174BWD-SBS Frigorifer
    Qty: 1
    Price: 999.00
    999.00
    VIVAX MWOB-2020G G Mikrovale Montuese
    VIVAX MWOB-2020G G Mikrovale Montuese
    Qty: 1
    Price: 229.00
    229.00
    ROWENTA EP1110F1 Depilator Easy Touch
    ROWENTA EP1110F1 Depilator Easy Touch
    Qty: 1
    Price: 49.99
    49.99
    XIAOMI REDMI BUDS 6 Play Pink
    XIAOMI REDMI BUDS 6 Play Pink
    Qty: 1
    Price: Çmimi origjinal qe: €24.90.Çmimi i tanishëm është: €14.90.
    Save 10.00
    14.90
    MS C100 Tastierë
    MS C100 Tastierë
    Qty: 1
    Price: 19.90
    19.90
    VIVAX DF-2003SS Fritez
    VIVAX DF-2003SS Fritez
    Qty: 1
    Price: 39.90
    39.90
    VIVAX VC-1610B Thithese Elektrike - BLACK
    49.90
    Vendmbajtëse
    PHILIPS HR1832/00 Shtrydhese Frutash
    Qty: 1
    Price: 119.00
    119.00
    VIVAX MWO-2077 Mikrovalë
    VIVAX MWO-2077 Mikrovalë
    Qty: 1
    Price: 89.00
    89.00
    Philips PSG3000/30 Hekur me rezervuar avulli
    199.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); });