learnshopify.dev/Workspace
debugging

Refactor without changing the output. Delete the counting loop (`{% assign featured_count = 0 %}` and the `{% for f in collection.products %}` block) from inside the product loop, and add one line ABOVE the `<section>`: `{% assign featured_count = collection.products.size %}`. The badge keeps rendering `One of 3 coffees in this collection`.

0 / 1 task solved
northwind-coffee.com
Live Storefront