Black Pendants in Gold-Plating
${chips.map(chip => ``).join('')}
`;
})()}
`
: `
`}
`).join('')}${set.label}
${set.type === 'range' ? (() => {
const applied = (window.collection?.filters?.applied?.[set.key] || [])[0];
const parts = applied ? String(applied).split('-') : [];
const lo = parts.length === 2 ? Number(parts[0]) : Number(set.min);
const hi = parts.length === 2 ? Number(parts[1]) : Number(set.max);
const span = (Number(set.max) - Number(set.min)) || 1;
const rate = Shopify.currency.rate || 1;
const fmt = n => new Intl.NumberFormat(Shopify.locale, { style: 'currency', currency: Shopify.currency.active, maximumFractionDigits: 0 }).format(n * rate);
return `
`;
})() : set.type === 'swatch' ? `
`).join('')}
`}
${fmt(lo)}
${fmt(hi)}
${(set.options || []).filter(option => {
if (!option.depth) return true;
const applied = window.collection?.filters?.applied || {};
const selfApplied = (applied[option.filterKey || set.key] || []).includes(option.value);
const parentValue = option.value.includes(';') ? option.value.split(';').slice(0, -1).join(';') : '';
const parentChecked = Object.values(applied).some(vals => (vals || []).includes(parentValue));
return parentChecked || selfApplied;
}).map(option => `
`).join('')}
` : `
${(set.options || []).filter(option => {
if (!option.depth) return true;
const applied = window.collection?.filters?.applied || {};
const selfApplied = (applied[option.filterKey || set.key] || []).includes(option.value);
const parentValue = option.value.includes(';') ? option.value.split(';').slice(0, -1).join(';') : '';
const parentChecked = Object.values(applied).some(vals => (vals || []).includes(parentValue));
return parentChecked || selfApplied;
}).map(option => `
Related Articles
No matching content
`
: '';
})()}
No matching products
`
: Array(20).fill(0).map(() => `
`))
)}
{% if collection.pagination.pages.size > 1 %}
{% assign current_page = collection.page %}
{% assign total_pages = collection.pagination.pages.size %}
{% assign start_page = current_page | minus: 2 %}
{% if start_page < 1 %}{% assign start_page = 1 %}{% endif %}
{% assign end_page = current_page | plus: 2 %}
{% if end_page > total_pages %}{% assign end_page = total_pages %}{% endif %}
{% endif %}