main
alexanderroese 2024-06-18 19:02:54 +02:00
parent bd8a979fc8
commit 65e73d117c
1 changed files with 3 additions and 2 deletions

View File

@ -16,13 +16,14 @@
-%}
<script>
console.log("3")
console.log("4")
</script>
{%- for collection in collections -%}
{%- assign filtered_products = collection.products | where: 'tags', tag_to_filter -%}
<script>
console.log("tag_to_filter", "{{ tag_to_filter }}")
console.log("Processing collection: {{ collection.title }}");
console.log("Collection products: ", {{ collection.products | json }});
console.log("Filtered products: ", {{ filtered_products | json }});