Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    LUIGI FERRERO FR-1552 THIKE BUKE
    LUIGI FERRERO FR-1552 THIKE BUKE
    Qty: 1
    Price: 4.49
    4.49
    GOTA EXCLUSIVA RUM 21.5cl
    GOTA EXCLUSIVA RUM 21.5cl
    Qty: 1
    Price: 1.99
    1.99
    LUIGI FERRERO FR-1227 SHHTYPESE PER HUDHERA
    5.99
    VIVAX BS-160 Bluetooth Speaker
    VIVAX BS-160 Bluetooth Speaker
    Qty: 1
    Price: 29.90
    29.90
    LUIGI FERRER FR-1240 GERSHERE KUZHINE
    2.99
    LUIGI FERRERO FR-4824 QELES PER SHISHE VENE
    4.99
    EBRO SET VAJILLA 19PZ
    EBRO SET VAJILLA 19PZ
    Qty: 1
    Price: 39.99
    39.99
    LUIGI FERRERO FR-1229 MASHA PRIMA
    LUIGI FERRERO FR-1229 MASHA PRIMA
    Qty: 1
    Price: 2.49
    2.49
    KLIME MULTI OUTDOOR UNIT MIDEA  M4OE-36HFN8
    KLIME MULTI OUTDOOR UNIT MIDEA M4OE-36HFN8
    Qty: 1
    Price: 1,510.00
    1,510.00
    SBOX WKM 22 Tastjere + Mouse Bluetooth
    24.90
    BORART 45496 TEPSI QELQI
    BORART 45496 TEPSI QELQI
    Qty: 1
    Price: 5.99
    5.99
    VIVAX BS-90 Bluetooth Speaker
    VIVAX BS-90 Bluetooth Speaker
    Qty: 1
    Price: 29.90
    29.90
    PROMETEO COPPETA 15X14cm
    PROMETEO COPPETA 15X14cm
    Qty: 1
    Price: 2.49
    2.49
    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); });