Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    KRUPS KP1A3B31/B10 Aparat me Kapsula XS
    KRUPS KP1A3B31/B10 Aparat me Kapsula XS
    Qty: 1
    Price: 109.00
    109.00
    DIPLOMAT DAW-240 Klime 24BTU -30 A+++
    DIPLOMAT DAW-240 Klime 24BTU -30 A+++
    Qty: 1
    Price: 999.00
    999.00
    VIVAX VCC-700 B THITHESE ELEKTRIKE
    VIVAX VCC-700 B THITHESE ELEKTRIKE
    Qty: 1
    Price: Çmimi origjinal qe: €59.90.Çmimi i tanishëm është: €44.90.
    Save 15.00
    44.90
    Vendmbajtëse
    Toster - DESSINI DS-410A
    Qty: 1
    Price: 14.99
    14.99
    SAMSUNG LS24AM506NUXEN Monitor 24', Smart
    179.00
    Mikroval Hansa AMGF17M2BH
    Mikroval Hansa AMGF17M2BH
    Qty: 1
    Price: 99.90
    99.90
    Xiaomi Redmi Buds 4 Lite
    Xiaomi Redmi Buds 4 Lite
    Qty: 1
    Price: Çmimi origjinal qe: €29.90.Çmimi i tanishëm është: €16.90.
    Save 13.00
    16.90
    HOOVER HLEC8TG-S Tharese 8 KG
    HOOVER HLEC8TG-S Tharese 8 KG
    Qty: 1
    Price: Çmimi origjinal qe: €349.00.Çmimi i tanishëm është: €279.00.
    Save 70.00
    279.00
    Vendmbajtëse
    Vluese Uji - Dessini DS-30SS
    Qty: 1
    Price: 19.99
    19.99
    MIDEA MSEPDU-24HRFN8 KLIME
    MIDEA MSEPDU-24HRFN8 KLIME
    Qty: 1
    Price: 1,150.00
    1,150.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); });