Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    Tefal Peshore PP1401V0 deri 150 kg
    Tefal Peshore PP1401V0 deri 150 kg
    Qty: 1
    Price: 24.90
    24.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
    Xiaomi Redmi Buds 4 Lite
    Xiaomi Redmi Buds 4 Lite
    Qty: 1
    Price: Çmimi origjinal qe: €29.90.Çmimi i tanishëm është: €16.90.
    Save 13.00
    16.90
    XIAOMI MI Compact Bluetooth Speaker 2
    XIAOMI MI Compact Bluetooth Speaker 2
    Qty: 1
    Price: Çmimi origjinal qe: €14.90.Çmimi i tanishëm është: €9.90.
    Save 5.00
    9.90
    ADF CTB 1352 B Aspirator Full Montues, Black
    99.00
    AMICA BOF5541S Furre Montuese
    AMICA BOF5541S Furre Montuese
    Qty: 1
    Price: 349.00
    349.00
    ECOLUX ECO FF175/55 INX Frigorifer Inox
    ECOLUX ECO FF175/55 INX Frigorifer Inox
    Qty: 1
    Price: 399.00
    399.00
    DALING DL-3023 1400W Fen per Floke
    DALING DL-3023 1400W Fen per Floke
    Qty: 1
    Price: 14.99
    14.99
    SAMSUNG UE43U8092FUXXH, Smart TV 4K
    SAMSUNG UE43U8092FUXXH, Smart TV 4K
    Qty: 1
    Price: 449.00
    449.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); });