<%= categoryName %>
<%= products.length %> produk dalam kategori ini.
Produk gak ketemu di kategori ini. Tekan Enter buat cari di semua produk.
<% products.forEach(function (p) { %>
<% const _origP = Number(p.original_price) || 0;
const _priceP = Number(p.price) || 0;
const discountPct = _origP > _priceP
? Math.round(((_origP - _priceP) / _origP) * 100)
: 0; %>
<% }); %>
<% if (discountPct > 0) { %>
<%= discountPct %>% OFF
<% } %>
<% if (p.images[0]) { %>
<% } %>
<%= p.name %>
<% var _enShort = (p.short_description_en || '').trim(); %> <% if (p.short_description) { %>><%= p.short_description %>
<% } %> <% if (_enShort) { %><%= _enShort %>
<% } %>
<% if (p.price_ranged) { %>Mulai dari<% } %>
<%= formatRupiah(p.price) %>
<% if (discountPct > 0) { %>
<%= formatRupiah(p.original_price) %>
<% } %>
<% if (p.sold_count > 0) { %>
<% } %>