Log in

You dont have an account yet? Register Now

13
    13
    Shporta e juaj!
    HOFFMANS HM-752, Minifurre 55L 2000W
    HOFFMANS HM-752, Minifurre 55L 2000W
    Qty: 1
    Price: Çmimi origjinal qe: €119.00.Çmimi i tanishëm është: €39.99.
    Save 79.01
    39.99
    VIVAX ACP-12CH35AEHI/I+ Klime Montoese Silver
    VIVAX ACP-12CH35AEHI/I+ Klime Montoese Silver
    Qty: 2
    Price: Çmimi origjinal qe: €659.00.Çmimi i tanishëm është: €579.00.
    Save 160.00
    1,158.00
    Office Line Toner x 3020/3025
    Office Line Toner x 3020/3025
    Qty: 1
    Price: 19.90
    19.90
    VIVAX HD-2000 Fem per floke
    VIVAX HD-2000 Fem per floke
    Qty: 1
    Price: 24.90
    24.90
    ARZUM AR5201 Makine per Rroje pa kabell
    59.80
    ARZUM OK0013-X Aparat i Kafese Turke
    ARZUM OK0013-X Aparat i Kafese Turke
    Qty: 1
    Price: 44.90
    44.90
    HANSA AMG17M2BH Mikrovale BL
    HANSA AMG17M2BH Mikrovale BL
    Qty: 1
    Price: 149.00
    149.00
    Akel nxemse AS-1200 me 3 Tela 2100W
    Akel nxemse AS-1200 me 3 Tela 2100W
    Qty: 1
    Price: 49.90
    49.90
    MARADO MA-1688, Aparat per kafe turke
    MARADO MA-1688, Aparat per kafe turke
    Qty: 1
    Price: 49.90
    49.90
    Remax Smartwatch Se Letor Series 16 ultra 2
    44.90
    DESSINI VP3A Drejtuese per Floke Rechargable
    34.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); });