${(function() {
try {
var products = (data.products || []).filter(p => p.has_only_default_variant);
var counts = products.length;
if (counts === 0) return `Sorry, there are no products in this collection.`;
return `
${products.map(item => {
var img = item.image || {};
var variant = item.variants && item.variants[0] || {};
var variant_title = variant.title;
var variant_price = variant.price;
var varant_id = variant.id;
return `