Log in

You dont have an account yet? Register Now

9
    9
    Shporta e juaj!
    WHITE SHARK Y-2706 Karrike Gaming
    WHITE SHARK Y-2706 Karrike Gaming
    Qty: 1
    Price: 199.00
    199.00
    XIAOMI Mi UniBlade Trimmer EU
    XIAOMI Mi UniBlade Trimmer EU
    Qty: 1
    Price: Çmimi origjinal qe: €39.90.Çmimi i tanishëm është: €27.90.
    Save 12.00
    27.90
    XIAOMI H101 Compact Fen i Bardhe
    XIAOMI H101 Compact Fen i Bardhe
    Qty: 1
    Price: Çmimi origjinal qe: €34.90.Çmimi i tanishëm është: €29.90.
    Save 5.00
    29.90
    ARZUM AR5029 Rosy Depilator 12V
    ARZUM AR5029 Rosy Depilator 12V
    Qty: 1
    Price: Çmimi origjinal qe: €29.90.Çmimi i tanishëm është: €19.90.
    Save 10.00
    19.90
    VIVAX MWO-2070BL Mikrovale
    VIVAX MWO-2070BL Mikrovale
    Qty: 1
    Price: 99.00
    99.00
    Electrolux EHF6240IOK Pllake montuese
    Electrolux EHF6240IOK Pllake montuese
    Qty: 1
    Price: 349.00
    349.00
    MIDEA KLIME  -  MSFAAU-12HRFN8
    MIDEA KLIME - MSFAAU-12HRFN8
    Qty: 1
    Price: 680.00
    680.00
    VIVAX MF-45 Mini Bar
    VIVAX MF-45 Mini Bar
    Qty: 1
    Price: 119.00
    119.00
    Aspirator DA6-835 Black
    Aspirator DA6-835 Black
    Qty: 1
    Price: 45.00
    45.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); });