Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    Ndriçues - GM5-6
    Ndriçues - GM5-6
    Qty: 1
    Price: 39.99
    39.99
    KINGSTON 65Gb, Exodia Black and Blue
    KINGSTON 65Gb, Exodia Black and Blue
    Qty: 1
    Price: 12.90
    12.90
    Electrolux EIV83443CT pllakë induksion 80 cm
    Electrolux EIV83443CT pllakë induksion 80 cm
    Qty: 1
    Price: Çmimi origjinal qe: €899.00.Çmimi i tanishëm është: €749.00.
    Save 150.00
    749.00
    Redmi Buds 6 Active White
    Redmi Buds 6 Active White
    Qty: 1
    Price: Çmimi origjinal qe: €29.90.Çmimi i tanishëm është: €19.90.
    Save 10.00
    19.90
    Ndriçues - GM4-10
    Ndriçues - GM4-10
    Qty: 1
    Price: 69.99
    69.99
    Karrige SENSE7 Spellcaster Senshi
    Karrige SENSE7 Spellcaster Senshi
    Qty: 1
    Price: 399.00
    399.00
    Ndriçues - GM2-2
    Ndriçues - GM2-2
    Qty: 1
    Price: 19.99
    19.99
    Vendmbajtëse
    PHILIPS HD9318/00 Bokall Uji Black
    Qty: 1
    Price: 49.90
    49.90
    Tavolinë Salloni - K42-661
    Tavolinë Salloni - K42-661
    Qty: 1
    Price: 169.99
    169.99
    VIVAX Life Fit 3 Beige
    VIVAX Life Fit 3 Beige
    Qty: 1
    Price: 39.90
    39.90
    PIRUNE ANNIE PER DESSERT
    PIRUNE ANNIE PER DESSERT
    Qty: 1
    Price: 9.99
    9.99
    TEFAL SV6140EO Hekur 2400W Me Kazan 1.7l
    139.00
    MIDEA MCH600F178KO Pllake Montuese
    MIDEA MCH600F178KO Pllake Montuese
    Qty: 1
    Price: Çmimi origjinal qe: €229.00.Çmimi i tanishëm është: €149.00.
    Save 80.00
    149.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); });