Log in

You dont have an account yet? Register Now

10
    10
    Shporta e juaj!
    Ecolux Frigorifer  ECO FR177LN
    Ecolux Frigorifer ECO FR177LN
    Qty: 1
    Price: 519.00
    519.00
    ADF CTV 1352 B
    ADF CTV 1352 B
    Qty: 1
    Price: 59.00
    Save 40.00
    59.00
    TMB FH-15 Kalorifer
    TMB FH-15 Kalorifer
    Qty: 1
    Price: 29.90
    29.90
    VENUS MWO 102 Mikrovale INOX
    VENUS MWO 102 Mikrovale INOX
    Qty: 1
    Price: 179.00
    179.00
    XIAOMI H101 Fen compakt Pink
    XIAOMI H101 Fen compakt Pink
    Qty: 1
    Price: Çmimi origjinal qe: €34.90.Çmimi i tanishëm është: €24.90.
    Save 10.00
    24.90
    XIAOMI Mi Tripod Selfie Stick
    XIAOMI Mi Tripod Selfie Stick
    Qty: 1
    Price: Çmimi origjinal qe: €34.90.Çmimi i tanishëm është: €19.90.
    Save 15.00
    19.90
    GOTA UJI
    GOTA UJI
    Qty: 1
    Price: 5.99
    5.99
    XIAOMI Mi Smart Scale 2 (Peshore) (Copy)
    XIAOMI Mi Smart Scale 2 (Peshore) (Copy)
    Qty: 1
    Price: Çmimi origjinal qe: €19.90.Çmimi i tanishëm është: €14.90.
    Save 5.00
    14.90
    KINGSTON 128Gb, Exodia Black and Yellow
    14.90
    VIVAX BS-260 Bluetooth Speaker
    VIVAX BS-260 Bluetooth Speaker
    Qty: 1
    Price: 69.90
    69.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); });