---
title: "How to solve &#8220;missing fields&#8221; errors in Google Structured Data Types (schemas)"
url: "https://www.seopress.org/support/guides/how-to-solve-missing-fields-errors-in-google-structured-data-types-schemas/"
lang: en-US
updated: 2024-08-02
---

# How to solve &#8220;missing fields&#8221; errors in Google Structured Data Types (schemas)

## Prerequisites

[SEOPress PRO](https://www.seopress.org/wordpress-seo-plugins/pro/) is required to add structured data types to your WordPress site.

If you want to learn more about schemas, we recommend you our [free ebook about Structured data types](https://www.seopress.org/support/ebooks/master-google-structured-data-types-schemas/).

## The problem

[Google Search Console](https://www.seopress.org/newsroom/featured-stories/getting-started-with-google-search-console/) has reported that some of your URL have missing fields in your structured data types such as:

- Missing field “`hasMerchantReturnPolicy`” (optional)
- Missing field “`deliveryTime`” (optional)
- …

## The solution

Using [hooks](https://www.seopress.org/support/hooks/#topic-84)!

### Example with the automatic product schema

Below is a snippet to add the 2 missing properties mentioned above (`hasMerchantReturnPolicy` and `deliveryTime`) for each product offer (works with simple and variable products).

Of course, the code must been edited to match your needs. You can also optimize it by adding your own product fields (with ACF for example) and add the values dynamically to the schema.

Add it to your `functions.php`\` file of your child theme/theme. Or by using your own plugin / must-use plugin.

If you need help with this code, please open a [support ticket from your customer area](https://www.seopress.org/account/your-tickets/). We are here to help!
