Log in

You dont have an account yet? Register Now

8
    8
    Shporta e juaj!
    Electrolux EHF6240IOK Pllake montuese
    Electrolux EHF6240IOK Pllake montuese
    Qty: 1
    Price: 349.00
    349.00
    ADF CTB 1040 B
    ADF CTB 1040 B
    Qty: 1
    Price: 99.90
    99.90
    WHITE SHARK MP 1897 UMETHON MAUSPAD 40x30cm
    9.90
    ARIELLI 55UD15GTV, TV QLED
    ARIELLI 55UD15GTV, TV QLED
    Qty: 1
    Price: Çmimi origjinal qe: €449.00.Çmimi i tanishëm është: €319.00.
    Save 130.00
    319.00
    MUHLER IWM714WA LAVATRIQE 7 KG
    MUHLER IWM714WA LAVATRIQE 7 KG
    Qty: 1
    Price: Çmimi origjinal qe: €349.00.Çmimi i tanishëm është: €249.00.
    Save 100.00
    249.00
    VIVAX ACP-24CH70AEMI/Is-Os Klime Montuese
    VIVAX ACP-24CH70AEMI/Is-Os Klime Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €1,019.00.Çmimi i tanishëm është: €769.00.
    Save 250.00
    769.00
    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
    XIAOMI Mi Mouse Dual Mode (white)
    XIAOMI Mi Mouse Dual Mode (white)
    Qty: 1
    Price: Çmimi origjinal qe: €19.90.Çmimi i tanishëm është: €12.90.
    Save 7.00
    12.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); });