Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    MS M-AC3205R Kabell USB-A -> USB-C
    MS M-AC3205R Kabell USB-A -> USB-C
    Qty: 1
    Price: 3.90
    3.90
    AMICA BOF5541S Furre Montuese
    AMICA BOF5541S Furre Montuese
    Qty: 1
    Price: 349.00
    349.00
    CANYON GK-55 Tastjere Gaming Comestrike
    59.99
    Tefal Peshore PP1403V0 deri 150 kg
    Tefal Peshore PP1403V0 deri 150 kg
    Qty: 2
    Price: 24.90
    49.80
    Hoffmans HM-753 Mini Furre
    Hoffmans HM-753 Mini Furre
    Qty: 1
    Price: Çmimi origjinal qe: €129.90.Çmimi i tanishëm është: €89.90.
    Save 40.00
    89.90
    EMD MAKINE QETHEJE
    EMD MAKINE QETHEJE
    Qty: 1
    Price: 9.90
    9.90
    Xiaomi Type-C Earphones White
    Xiaomi Type-C Earphones White
    Qty: 1
    Price: 9.90
    9.90
    Furrë Amica EBX 943 625 E
    Furrë Amica EBX 943 625 E
    Qty: 1
    Price: Çmimi origjinal qe: €349.00.Çmimi i tanishëm është: €219.00.
    Save 130.00
    219.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); });