Modo desarrollo
DEV PRODUCCIÓN
Banner de la categoría

Amplificadores 🎸

Potencia tu sonido con las marcas más reconocidas del mundo.

♡ Favoritos0
🛒 Carrito0
Ordenar: Relevancia · Precio · Mayor descuento
Comparar:

Comparar productos

`); w.document.close(); }// ── BUILD PROD HTML (claro) ── function buildHTML(){ const img=document.getElementById('h-img').value; const t1=document.getElementById('h-t1').value; const emoji=document.getElementById('h-emoji').value; const sub=document.getElementById('h-sub').value; const pills=document.getElementById('h-pills').value.split(',').map(x=>x.trim()); const trust=document.getElementById('h-trust').value.split('|').map(x=>x.trim()); const cards=prods.map(p=>{ const d=disc(p); const sv=p.old>p.price?p.old-p.price:0; const hasUrl=p.url&&p.url.startsWith('http'); const hasId=p.wid&&p.wid>0; const prodUrl=hasUrl?p.url:(hasId?`${SITE}/?p=${p.wid}`:null); const cartUrl=hasId?`${SITE}/?add-to-cart=${p.wid}`:prodUrl; const cmpUrl=hasId?`${SITE}/?action=yith-woocompare-add-product&id=${p.wid}`:null; const wishUrl=hasId?`${SITE}/?add_to_wishlist=${p.wid}`:null; const imgInner=p.img?`${p.name}`:`
${p.e}
`; const imgEl=prodUrl?`${imgInner}`:`
${imgInner}
`; const nameEl=prodUrl?`${p.name}`:`
${p.name}
`; const wishEl=wishUrl?``:''; const cmpEl=cmpUrl?``:''; const cartEl=cartUrl?`Añadir al carrito`:`No disponible`; return `
${d?`
${d}
`:''}
${wishEl}${cmpEl}
${imgEl}
${p.cat}
${nameEl}
S/ ${p.price.toLocaleString()}${p.old>p.price?`S/ ${p.old.toLocaleString()}`:''}${sv?`-S/ ${sv.toLocaleString()}`:''}
${cartEl}
`; }).join('\n'); return `
${img?`${t1}`:''}

${t1} ${emoji}

${sub}

${pills.map(p=>`
${p}
`).join('')}
Ordenar: Relevancia · Precio · Mayor descuento${prods.length} productos
${cards}
`; }// ── EXPORT ── function exportHTML(){ const html=`\n\n\n\n\nAmplificadores — Ziyego\n\n\n\n${buildHTML()}\n\n`; const b=new Blob([html],{type:'text/html;charset=utf-8'}); const a=document.createElement('a'); a.href=URL.createObjectURL(b);a.download='ziyego-amplificadores-produccion.html';a.click(); }// ── NOTIF ── function showNotif(msg,type){ const n=document.getElementById('prod-notice'); n.textContent=msg; n.style.color=type==='err'?'#ff6b9d':'#00c878'; n.style.borderColor=type==='err'?'rgba(255,43,105,.3)':'rgba(0,200,120,.3)'; n.style.display='block'; setTimeout(()=>n.style.display='none',2500); }// ── INIT ── upHero();render(); document.getElementById('tab-hero').style.display='none';