Woocommerce Schema Errors

  • I have been using RankMath for a little while and its great but I have errors on Woocommerce Products such as below when I test with Google Test tool. I just have RankMath Schema set to Product but I don’t see how to fix the errors can you point me into the right direction.

Viewing 1 replies (of 1 total)
  • Hello,

    Rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content. Likewise, the aggregateRating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.
    http://i.mythemeshop.com/cIBqH4

    If you don’t have any reviews yet, that is going to show up as a warning in the schema testing tool. That’s because Google will actually look for those fields.

    Please acquire some reviews and ratings to get rid of the aggregateRating and review warnings.

    For the missing global identifier error, I can suggest that you install the following plugin that will add this field to your products: https://wordpress.org/plugins/product-gtin-ean-upc-isbn-for-woocommerce/

    You can fix the ‘priceValidUntil’ warning by adding a date for the expiry of the sale price.

    Since there are a couple of errors for the related products, you can add the following code to your theme’s functions.php file to address this:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	if ( isset( $entity['isRelatedTo'] ) ) {
    		unset( $entity['isRelatedTo'] );
    	}
    	return $entity;
    });

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Woocommerce Schema Errors’ is closed to new replies.