Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    MSGW I5 I106 Pc Gaming
    MSGW I5 I106 Pc Gaming
    Qty: 1
    Price: 1,049.00
    1,049.00
    SAMSUNG QE55Q7FAAUXXH, QLED
    SAMSUNG QE55Q7FAAUXXH, QLED
    Qty: 1
    Price: Çmimi origjinal qe: €759.00.Çmimi i tanishëm është: €499.00.
    Save 260.00
    499.00
    Hoffmans Toster - Grill HM-3041
    Hoffmans Toster - Grill HM-3041
    Qty: 1
    Price: 49.99
    49.99
    SAMSUNG LS27BG400EUXEN Monitor FHD 240Hz
    329.00
    Vendmbajtëse
    MIDEA MF200W80WB/W-HR Lavatrice
    Qty: 1
    Price: 469.00
    469.00
    Karrige SENSE7 Spellcaster FUKU
    Karrige SENSE7 Spellcaster FUKU
    Qty: 1
    Price: 359.00
    359.00
    XIAOMI REDMI A5, 4/128 GB Black
    XIAOMI REDMI A5, 4/128 GB Black
    Qty: 1
    Price: Çmimi origjinal qe: €139.00.Çmimi i tanishëm është: €89.00.
    Save 50.00
    89.00
    MUHLER CHP41, Pllake Montuese
    MUHLER CHP41, Pllake Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €199.00.Çmimi i tanishëm është: €99.00.
    Save 100.00
    99.00
    XIAOMI Mi Band 8 (black) EU
    XIAOMI Mi Band 8 (black) EU
    Qty: 1
    Price: Çmimi origjinal qe: €69.90.Çmimi i tanishëm është: €49.00.
    Save 20.90
    49.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); });