Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    SAMSUNG NV7B41301AK/U3 Furre Montuese
    SAMSUNG NV7B41301AK/U3 Furre Montuese
    Qty: 1
    Price: 649.00
    649.00
    Aspirator Amica OMP6211B
    Aspirator Amica OMP6211B
    Qty: 1
    Price: Çmimi origjinal qe: €139.00.Çmimi i tanishëm është: €99.00.
    Save 40.00
    99.00
    WHITE SHARK MP 1897 UMETHON MAUSPAD 40x30cm
    9.90
    SAMSUNG MS23F301TAK/OL Mikrovale
    SAMSUNG MS23F301TAK/OL Mikrovale
    Qty: 1
    Price: 149.00
    149.00
    ROWENTA EP2900F0 Depilator Spirit
    ROWENTA EP2900F0 Depilator Spirit
    Qty: 1
    Price: 49.90
    49.90
    HP CS10 COMBO Tastier & Maus
    HP CS10 COMBO Tastier & Maus
    Qty: 1
    Price: 29.90
    29.90
    MSI Monitor PRO MP2750, 27 FHD(1900x1080)
    199.00
    XIAOMI Wireless Mouse Lite 2 Black GL
    XIAOMI Wireless Mouse Lite 2 Black GL
    Qty: 1
    Price: Çmimi origjinal qe: €14.90.Çmimi i tanishëm është: €12.90.
    Save 2.00
    12.90
    MS B700 Ndegjuese Wireless
    MS B700 Ndegjuese Wireless
    Qty: 1
    Price: 29.90
    29.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); });