現在、コレクションページの商品一覧に、商品名が表示されない状態になっています。
他のページでは表示されるのですが、コレクションページのみ表示されません。テーマはNarrativeです。
改善方法など教えていただきたいです。
以下、コレクションページのコードとなります。箇所が違いましたら、ご指摘ください。
よろしくお願いいたします。
{%- assign limit = section.settings.products | times: section.settings.rows -%}
{%- assign totalProducts = collection.products.size -%}
{% paginate collection.products by limit %}
{% if section.settings.collection_hero_image and collection.image %}
{% endif %}
{%- assign desktopColumns = section.settings.products -%}
{%- assign mobileColumns = '2' -%}
{%- capture gridClasses -%}
{% if desktopColumns == '3' and totalProducts > 2 %}medium-up--one-third {% else %}medium-up--one-half {% endif %}
{% if mobileColumns == '2' %}small--one-half {% endif %}
{%- endcapture -%}
{% for product in collection.products %}
{% include 'product-card', product: product, grid_style: section.settings.grid_style %}
{% endfor %}
{% if collection.products.size == 0 %}
{{ 'collections.general.no_matches' | t }}
{% endif %}
{% if paginate.pages > 1 %}
{% include 'pagination' %}
{% endif %}
{% endpaginate %}
{% schema %}
{
"name": {
"de": "Kategorie",
"en": "Collection",
"es": "Colección",
"fr": "Collection",
"it": "Collezione",
"ja": "コレクション",
"pt-BR": "Coleção"
},
"settings": [
{
"type": "select",
"id": "products",
"label": {
"de": "Produkte per Reihe",
"en": "Products per row",
"es": "Productos por fila",
"fr": "Produits par rangée",
"it": "Prodotti per riga",
"ja": "行あたりの商品数",
"pt-BR": "Produtos por linha"
},
"default": "2",
"options": [
{
"value": "2",
"label": {
"de": "2",
"en": "2",
"es": "2",
"fr": "2",
"it": "2",
"ja": "2",
"pt-BR": "2"
}
},
{
"value": "3",
"label": {
"de": "3",
"en": "3",
"es": "3",
"fr": "3",
"it": "3",
"ja": "3",
"pt-BR": "3"
}
}
]
},
{
"type": "select",
"id": "rows",
"label": {
"de": "Zeilen pro Seite",
"en": "Rows per page",
"es": "Filas por página",
"fr": "Rangées par page",
"it": "Righe per pagina",
"ja": "ページあたりの行数",
"pt-BR": "Linhas por página"
},
"default": "4",
"options": [
{
"value": "2",
"label": {
"de": "2",
"en": "2",
"es": "2",
"fr": "2",
"it": "2",
"ja": "2",
"pt-BR": "2"
}
},
{
"value": "3",
"label": {
"de": "3",
"en": "3",
"es": "3",
"fr": "3",
"it": "3",
"ja": "3",
"pt-BR": "3"
}
},
{
"value": "4",
"label": {
"de": "4",
"en": "4",
"es": "4",
"fr": "4",
"it": "4",
"ja": "4",
"pt-BR": "4"
}
},
{
"value": "5",
"label": {
"de": "5",
"en": "5",
"es": "5",
"fr": "5",
"it": "5",
"ja": "5",
"pt-BR": "5"
}
},
{
"value": "6",
"label": {
"de": "6",
"en": "6",
"es": "6",
"fr": "6",
"it": "6",
"ja": "6",
"pt-BR": "6"
}
}
]
},
{
"type": "checkbox",
"id": "product_tags_enable",
"label": {
"de": "Tag-Filtern erlauben",
"en": "Enable tag filtering",
"es": "Habilitar filtro de etiquetas",
"fr": "Activer le filtrage par balises",
"it": "Attiva filtro tag",
"ja": "タグでの絞り込みを有効にする",
"pt-BR": "Ativar filtragem de tag"
}
},
{
"type": "checkbox",
"id": "product_sorting_enable",
"label": {
"de": "Kategoriesortierung aktivieren",
"en": "Enable collection sorting",
"es": "Habilitar la la función ordenar colecciones",
"fr": "Activer le tri de la collection",
"it": "Abilita ordinamento collezione",
"ja": "コレクションの並べ替えを有効にする",
"pt-BR": "Ativar a ordenação de coleções"
}
},
{
"type": "header",
"content": {
"de": "Collection-Bild",
"en": "Collection image",
"es": "Imagen de colección",
"fr": "Image de la collection",
"it": "Immagine collezione",
"ja": "コレクションの画像",
"pt-BR": "Imagem da coleção"
}
},
{
"type": "checkbox",
"id": "collection_hero_image",
"label": {
"de": "Kategorie-Foto anzeigen",
"en": "Show collection image",
"es": "Mostrar imagen de la colección",
"fr": "Afficher l'image de la collection",
"it": "Mostra immagine collezione",
"ja": "コレクションの画像を表示する",
"pt-BR": "Exibir imagem da coleção"
}
},
{
"type": "checkbox",
"id": "collection_hero_image_parallax",
"label": {
"de": "Parallax-Animation für Kategoriebild anzeigen",
"en": "Show collection image parallax animation",
"es": "Mostrar animación de paralaje de imagen de colección",
"fr": "Afficher l'image de la collection animée en parallaxe",
"it": "Mostra animazione parallasse immagine collezione",
"ja": "コレクション画像のパララックスアニメーションを表示する",
"pt-BR": "Exibir animação de paralaxe de imagem da coleção"
}
},
{
"type": "header",
"content": {
"de": "Produkte",
"en": "Products",
"es": "Productos",
"fr": "Produits",
"it": "Prodotti",
"ja": "商品",
"pt-BR": "Produtos"
}
},
{
"type": "select",
"id": "grid_style",
"label": {
"de": "Rasterstil",
"en": "Grid style",
"es": "Estilo de cuadrícula",
"fr": "Style de grille",
"it": "Stile griglia",
"ja": "グリッドスタイル",
"pt-BR": "Estilo da grade"
},
"default": "collage",
"options": [
{
"value": "collage",
"label": {
"de": "Collage",
"en": "Collage",
"es": "Collage",
"fr": "Collage",
"it": "Collage",
"ja": "コラージュ",
"pt-BR": "Colagem"
}
},
{
"value": "grid",
"label": {
"de": "Raster",
"en": "Grid",
"es": "Cuadrícula",
"fr": "Grille",
"it": "Griglia",
"ja": "グリッド",
"pt-BR": "Grade"
}
}
]
},
{
"type": "checkbox",
"id": "show_spacing",
"label": {
"de": "Bildabstand aktivieren",
"en": "Enable image spacing",
"es": "Habilitar espaciado de imagen",
"fr": "Activer l'espacement des images",
"it": "Abilita spaziatura immagini",
"ja": "画像の間隔を有効にする",
"pt-BR": "Ativar espaçamento de imagem"
}
},
{
"type": "checkbox",
"id": "show_vendor",
"label": {
"de": "Produktverkäufer anzeigen",
"en": "Show product vendor",
"es": "Mostrar proveedor del producto",
"fr": "Afficher le distributeur du produit",
"it": "Mostra fornitore prodotto",
"ja": "商品の販売元を表示する",
"pt-BR": "Exiba o fornecedor do produto"
},
"default": true
}
]
}
{% endschema %}