What are solutions for missing field issues in Shopify?

shamsul96
Tourist
7 0 0

I got that error and warning from GSC. How can I solve the issues?

Missing field "aggregateRating"
Missing field "review"
Missing field "sku"
No global identifier provided (e.g., gtin, mpn, isbn)
Missing field "image"
Either "offers", "review", or "aggregateRating" should be specified
Missing field "name" "Passed"
Missing field "author" "Passed"
Missing field "priceValidUntil" "Passed"
Missing field "brand"


I used Shopify and the "simple" theme also used the SEO King and Judge.me app.

Need help to solve the issues...
Thanks In Advance!

Replies 2 (2)

kaylo
Visitor
1 0 0
Click to expand...
 

I am having a similar issue/warning with avada SEO suite

Missing field 'review'

Missing field 'priceValidUntil'

Missing field 'aggregateRating'

Farchance
Tourist
3 0 2
  • First of all, for aggregateRating and review you will need to go to App->find "product review" and follow its instruction and install it. So when people review your product, it will display the aggregateRating and review. 

 

  • For priceValidUntil, Go to your theme-> edit code-> sections-> product-template.liquid

1) Find this code below in the liquid file

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">

 

2) Then Copy this code:  <meta itemprop="priceValidUntil" content="{{ 'now' | date: '%s' | plus: 31536000 | date: '%Y-%m-%d' | uri_encode | replace:'+','%20' }}">

and paste it under the code above(1).

 

  • For brand, you can just go to your product and fill in the "vendor".
  • For image, you can just add image to your product.
  • For sku and global identifier, you can follow the step below:

1) Find this code at the topmost of product-template.liquid: <div itemscope itemtype="http://schema.org/Product" id="ProductSection" data-section-id="{{ section.id }}" data-section-type="product-template" data-image-zoom-type="{{ section.settings.product_image_zoom_type }}" data-show-extra-tab="{{ section.settings.show_extra_tab }}" data-extra-tab-content="{{ section.settings.extra_tab_content }}" data-cart-enable-ajax="{{ settings.cart_enable_ajax }}" data-enable-history-state="true">

2) Paste this code under the code above(1)

 {% assign fa_product_id_alpha2_code = 'US' %} 
{% assign fa_prices_with_decimal_separator = true %} 
{% assign fa_product_id = 'default' %}

{%- assign fa_current_variant = product.selected_or_first_available_variant -%}
{%- assign fa_variant_count = product.variants | size -%}
{%- assign fa_count = 0 -%}

{%- if fa_product_id == 'default' -%}
{%- capture fa_product_id_value -%}shopify_{{ fa_product_id_alpha2_code }}_{{ product.id }}_{{ fa_current_variant.id }}{%- endcapture -%}
{% elsif fa_product_id == 'product_id' %}
{%- capture fa_product_id_value -%}{{ fa_current_variant.id }}{%- endcapture -%}
{% elsif fa_product_id == 'parent_id' %}
{%- capture fa_product_id_value -%}{{product.id }}{%- endcapture -%}
{% elsif fa_product_id == 'sku' %}
{%- capture fa_product_id_value -%}{{ fa_current_variant.sku }}{%- endcapture -%}
{% endif %} 

 

3) edit the second step code: 

fa_product_id_alpha2_code Change the 'US' to your country code based on this: https://help.shopify.com/en/api/custom-storefronts/storefront-api/reference/enum/countrycode

If you’re in the US, then keep fa_prices_with_decimal_separator to true, if you are in a European country then change it to false.

The following step requires you to check the product id in Google Merchant Center > Products > List. And see what ID you are using.

  1. If it looks like shopify_US_81191654332_1055121650148, then keep fa_product_id set to default
  2. If it looks like 1055121650148 then set the value fa_product_id to product_id
  3. If it looks like the main id 81191654332 then set the value fa_product_id to parent_id
  4. If it looks like a sku then set the value fa_product_id to sku

(if you don't know then just keep it default)

4) Then paste this code under the edited second step code:

<meta itemprop="sku" content="{{fa_product_id_value}}">

{%- if product.variants.first.barcode.size == 12 -%}
<meta itemprop="gtin12" content="{{ product.variants.first.barcode }}">
{%- endif -%}
{%- if product.variants.first.barcode.size == 13 -%}
<meta itemprop="gtin13" content="{{ product.variants.first.barcode }}">
{%- endif -%}
{%- if product.variants.first.barcode.size == 14 -%}
<meta itemprop="gtin14" content="{{ product.variants.first.barcode }}">
{%- endif -%}

 

I hope this help you out. I was able to figure it out after making some change based on this link: https://feedarmy.com/kb/shopify-microdata-for-google-shopping/.