Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    Xiaomi Mi Smart  Scale S200 (Black)
    Xiaomi Mi Smart Scale S200 (Black)
    Qty: 1
    Price: Çmimi origjinal qe: €29.90.Çmimi i tanishëm është: €19.90.
    Save 10.00
    19.90
    Xiaomi Redmi Buds 6 Active
    Xiaomi Redmi Buds 6 Active
    Qty: 1
    Price: Çmimi origjinal qe: €24.90.Çmimi i tanishëm është: €19.90.
    Save 5.00
    19.90
    Xiaomi Double Wall  Electric Kettle
    Xiaomi Double Wall Electric Kettle
    Qty: 1
    Price: Çmimi origjinal qe: €44.90.Çmimi i tanishëm është: €34.90.
    Save 10.00
    34.90
    Office Line Toner x 3020/3025
    Office Line Toner x 3020/3025
    Qty: 1
    Price: 19.90
    19.90
    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
    VIVAX IR-2200SS Hekur
    VIVAX IR-2200SS Hekur
    Qty: 1
    Price: 24.90
    24.90
    DALING DL-3018
    DALING DL-3018
    Qty: 1
    Price: 17.99
    17.99
    VIVAX VC-1604 Thithëse Elektrike
    VIVAX VC-1604 Thithëse Elektrike
    Qty: 1
    Price: 49.90
    49.90
    VIVAX BH-02TVC Pllakë Montuese
    VIVAX BH-02TVC Pllakë Montuese
    Qty: 1
    Price: 99.00
    99.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); });