Product Schema Error – OfferCount is not working
-
Hello,
We’re trying to fix some issues with the Schema on our pages.
We followed the instruction in https://www.ads-software.com/support/topic/product-schema-issue/ with these codesadd_filter( 'site-reviews/schema/Product', function( $schema ) { $postId = get_the_ID(); $schema['sku'] = get_post_meta( $postId, 'schema_sku', true ); $schema['brand'] = get_post_meta( $postId, 'schema_brand', true ); $schema['offercount'] = get_post_meta( $postId, 'schema_offercount', true ); return $schema; });
Other fields are okay, but the offercount does not work. Here is the screenshot of the error: https://prnt.sc/1ckvrso
It seems that the code couldn’t get the offerCount field in the right position (under “offers” meta data)offerCount
1 (The property offerCount is not recognised by the schema (e.g. schema.org) for an object of type Product.)offerCount
The offerCount field is recommended. Please provide a value if available.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Product Schema Error – OfferCount is not working’ is closed to new replies.