Missing field "image" for Google rich results, Dawn theme - can't figure how to fix it

Missing field "image" for Google rich results, Dawn theme - can't figure how to fix it

OlivierC
Visitor
2 0 3

Hi,

 

We are using the Dawn theme. I need some assistance, I couldn't find any solution to this specific issue after searching past discussions on rich results and missing fields.

 

I have an error in Google Search Console for all products' rich results: Missing field "image":

 

missing field image.png

 

My understanding is that the rich results are defined under the main-product.liquid section of the code of the theme:

 

{
    "@context": "http://schema.org/",
    "@type": "Product",
    "name": {{ product.title | json }},
    "url": {{ shop.url | append: product.url | json }},
    {%- if product.selected_or_first_available_variant.featured_media -%}
      {%- assign media_size = product.selected_or_first_available_variant.featured_media.preview_image.width | append: 'x' -%}
      "image": [
        {{ product.selected_or_first_available_variant.featured_media | img_url: media_size | prepend: "https:" | json }}
      ],
    {%- endif -%}
    "description": {{ product.description | strip_html | json }},
    {%- if product.selected_or_first_available_variant.sku != blank -%}
      "sku": {{ product.selected_or_first_available_variant.sku | json }},
    {%- endif -%}

I suspect there is an issue with this line:

"image": [
{{ product.selected_or_first_available_variant.featured_media | img_url: media_size | prepend: "https:" | json }}
],


Any assistance would be greatly appreciated!

 

 

Replies 6 (6)

ebeerhalter
Visitor
1 0 0

We are having the same issue, so hoping we can find a resolution 🙂

BlancaBinaryBit
Tourist
3 0 2

Same here. Wish I had a solution for you.

sanelda
Tourist
5 0 1

I am having the same issue, were you able to fix the error?

OlivierC
Visitor
2 0 3

No solution so far.

Kalpesh-Patel
Tourist
8 0 1

Facing the same issue, no solution yet. All product under merchant listing show missing field image.

SurajTest
Shopify Partner
3 0 1

I am facing the same issue. Has this issue been resolved?