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.
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.
You can fix the SKU and availability issue easily as well:
To fix the brand
warning, head over to WordPress Dashboard > Rank Math > General Settings > WooCommerce
and choose from any of the available fields to use as your product’s brands.
If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:
// Add Brand for Products.
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
$entity['brand'] = 'Rank Math;
return $entity;
});
Replace the “Rank Math” text with your actual brand name then run your website through the Structured Data Testing tool once again.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hi Michael,
thanks. But what about variable products? I can’t insert the SKU and inventory there. Is there a way to actually make this dynamic for different attributes?
Thanks
Hello Tarek,
Thank you for contacting Rank Math today.
Check out the video in this link on how to add SKU to variable products
I hope this helps. Thank you.
That video doesn’t help, as it shows me exactly what I already did.
I added SKUs to every attribute and the amount of articles I have and I still get these errors vor every variation attribute I add to my shop!
Could that be a bug in the rank math markup?
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi Tarek,
We are so extremely very sorry for missing in your initial post that it was a category page.
I see that you have correctly disabled the product Schema from your product category archives which we should have suggested you do in the very first post.
I am extremely sorry for the trouble this must have caused you and I am glad that the Schema is working fine now.
https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fa-game-fishing.de%2F
I see just one issue and that can be remedied by adding a featured image to that page you are using:
Please do not hesitate to let us know if you need our assistance with anything else.
Hi,
I did everythingand emptied my cache, but still get the same reports. Is there anything else I can do?
Hello,
could this be a Rankmath markup issue? Or is it related to WooCommerce maybe?
Or both? Am I setting it up correctly?
Hello,
Thank you for contacting Rank Math today.
Could you please get in touch with your host and check if there is any server caching that is configured and temporarily disable it?
Looking forward to helping you. Thank you.
My host disabled it for now but I need to bring it back, soon.
I hope that fixes the issue.
Suggestions if it doesn’t help?
I also updated the sitemap in the search console, checked live-URLs and it still shows it as empty.
I also have issues with my sitemap. My category pages are not included in it: https://a-game-fishing.de/sitemap_index.xml
Seems like a lot of things are not working 100% with my settings / Woocommerce.
Hi Tarek,
I see the category archives showing fine: https://a-game-fishing.de/category-sitemap.xml
If you are talking about WooCommerce categories, please ensure that they are indexable and you have at least one category with products inside
WordPress Dashboard > Rank Math > Titles & Meta > Product Categories
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
I’ll have server caching reactivated.
Them main issue is, that I get notifications from search console that the infos are missing on product side.
It told me or still tells me the same for my category pages, which is obviously not correct, as it is not a product page.
In addition to that, I don’t have any category pages in my sitemap.
They are indexable.
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.