Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    Ndriçues - GM3-9
    Ndriçues - GM3-9
    Qty: 1
    Price: 69.99
    69.99
    CANYON  headset Shadder GH-6 WHITE
    CANYON headset Shadder GH-6 WHITE
    Qty: 1
    Price: 29.90
    29.90
    MARVO G803 WH Gaming Mouse Wireless
    MARVO G803 WH Gaming Mouse Wireless
    Qty: 1
    Price: 49.90
    49.90
    Mikser Dore dhe Qëndrues 2-në-1 - DESSINI DS-7288 700W
    Mikser Dore dhe Qëndrues 2-në-1 - DESSINI DS-7288 700W
    Qty: 1
    Price: Çmimi origjinal qe: €49.90.Çmimi i tanishëm është: €24.90.
    Save 25.00
    24.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
    ARZUM AR189 Grirese Duplex 500W
    ARZUM AR189 Grirese Duplex 500W
    Qty: 1
    Price: 34.90
    34.90
    SAMSUNG GALAXY WATCH6 CLASSIC 43MM SM-R950NZKAEUC
    399.00
    VIVAX WH-180TC Bokall
    VIVAX WH-180TC Bokall
    Qty: 1
    Price: 22.90
    22.90
    MS M-CC1100W Kabell Type C
    MS M-CC1100W Kabell Type C
    Qty: 1
    Price: 3.90
    3.90
    TEFAL HT412138 Mikser 450W me kofe
    TEFAL HT412138 Mikser 450W me kofe
    Qty: 1
    Price: 69.90
    69.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); });