Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    VIVAX WFL-141012CI Lavatrice 10Kg
    VIVAX WFL-141012CI Lavatrice 10Kg
    Qty: 1
    Price: 499.00
    499.00
    XIAOMI Mi Smart Band 9 Midnight Black
    XIAOMI Mi Smart Band 9 Midnight Black
    Qty: 1
    Price: 69.90
    69.90
    ECOLUX WM610R, Lavatrice 6Kg, 1000RPM
    ECOLUX WM610R, Lavatrice 6Kg, 1000RPM
    Qty: 1
    Price: Çmimi origjinal qe: €349.00.Çmimi i tanishëm është: €199.00.
    Save 150.00
    199.00
    ART-6504 FORME PER TORTE
    ART-6504 FORME PER TORTE
    Qty: 1
    Price: 9.99
    9.99
    XIAOMI Sound Pocket
    XIAOMI Sound Pocket
    Qty: 1
    Price: 29.90
    29.90
    VIVAX ACP-12CH35AEHI/Is--Os GOLD Klime
    VIVAX ACP-12CH35AEHI/Is--Os GOLD Klime
    Qty: 1
    Price: Çmimi origjinal qe: €659.00.Çmimi i tanishëm është: €579.00.
    Save 80.00
    579.00
    VIVAX BS-810 Speaker
    VIVAX BS-810 Speaker
    Qty: 1
    Price: 179.00
    179.00
    WHITE SHARK GK 2201 Tastiere RONIN E BARDHE
    44.90
    Frigorifer i kombinuar VIVAX CF-378DNF BG
    549.00
    DALING DL-3016 1800W Fen per Floke
    DALING DL-3016 1800W Fen per Floke
    Qty: 1
    Price: 24.90
    24.90
    MUHLER MHT-244W Waffle Maker 750W
    MUHLER MHT-244W Waffle Maker 750W
    Qty: 1
    Price: 22.90
    22.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); });