Log in

You dont have an account yet? Register Now

12
    12
    Shporta e juaj!
    LG SH5A SOUND BAR
    LG SH5A SOUND BAR
    Qty: 1
    Price: Çmimi origjinal qe: €499.00.Çmimi i tanishëm është: €349.00.
    Save 150.00
    349.00
    ARZUM AR5220 makine per rroje WET&DRY
    ARZUM AR5220 makine per rroje WET&DRY
    Qty: 1
    Price: 29.90
    29.90
    HP G200 Maus Gaming
    HP G200 Maus Gaming
    Qty: 1
    Price: 19.90
    19.90
    ELECTROLUX EOD5C50Z Furre Steam Bake
    ELECTROLUX EOD5C50Z Furre Steam Bake
    Qty: 1
    Price: Çmimi origjinal qe: €519.00.Çmimi i tanishëm është: €399.00.
    Save 120.00
    399.00
    TELEVIZOR PHILIPS 75PUS7009/12 | 75" LED 4K SMART TV
    999.00
    Tavolinë Salloni - K45-629
    Tavolinë Salloni - K45-629
    Qty: 1
    Price: 199.99
    199.99
    XIAOMI Mi S101 Electric Shaver
    XIAOMI Mi S101 Electric Shaver
    Qty: 1
    Price: 39.90
    39.90
    Midea Bojler D100-20ED6 100L
    Midea Bojler D100-20ED6 100L
    Qty: 1
    Price: 399.00
    399.00
    VIVAX ACP-12CH35AENI/Is-Os Klime Montuese
    549.00
    HP A08KHUT Qante Lloptopi Gray
    HP A08KHUT Qante Lloptopi Gray
    Qty: 1
    Price: 29.90
    29.90
    VIVAX Life Fit 3 Black
    VIVAX Life Fit 3 Black
    Qty: 1
    Price: 39.90
    39.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); });