Log in

You dont have an account yet? Register Now

11
    11
    Shporta e juaj!
    TMB FH-15 Kalorifer
    TMB FH-15 Kalorifer
    Qty: 1
    Price: 29.90
    29.90
    ADF CTB 1352 B Aspirator Full Montues, Black
    99.00
    TCL TAC-12CHSD/TPG11 Inverter -20 WiFi
    TCL TAC-12CHSD/TPG11 Inverter -20 WiFi
    Qty: 1
    Price: 499.00
    499.00
    WHITE SHARK MP 1897 UMETHON MAUSPAD 40x30cm
    9.90
    ROWENTA RO4855EA Thithese Elektrike Black
    119.00
    MSI Monitor PRO MP2750, 27 FHD(1900x1080)
    199.00
    PANASONIC SC-HTB100EGK SOUNDBAR
    PANASONIC SC-HTB100EGK SOUNDBAR
    Qty: 1
    Price: 99.00
    99.00
    Ecolux Enlarese EMO1423 SB
    Ecolux Enlarese EMO1423 SB
    Qty: 1
    Price: Çmimi origjinal qe: €399.00.Çmimi i tanishëm është: €289.00.
    Save 110.00
    289.00
    GOREX GRX F 60BLK Furre Montuese
    GOREX GRX F 60BLK Furre Montuese
    Qty: 1
    Price: 299.00
    299.00
    AMICA BOF5541S Furre Montuese
    AMICA BOF5541S Furre Montuese
    Qty: 1
    Price: 349.00
    349.00
    SAMSUNG DW60M6050BB/EO ENELARSE MONTUESE 60 cm
    SAMSUNG DW60M6050BB/EO ENELARSE MONTUESE 60 cm
    Qty: 1
    Price: Çmimi origjinal qe: €599.00.Çmimi i tanishëm është: €499.00.
    Save 100.00
    499.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); });