Woo Product Category Pages Schema errors

  • I have moved from Yoast to Rank Math. Everything worked good but next day I have a lot of errors in the Google Seach Console. Basically, Rank math is telling Goolge that the Product category pages are actually product pages.

    And google is complaining about Either “offers”, “review”, or “aggregateRating” should be specified on product category pages.

    And on the product pages, I have multiple warnings for each product.

    The priceValidUntil field is recommended. Please provide a value if available.
    The brand field is recommended. Please provide a value if available.
    This Product is missing a global identifier (e.g. isbn, mpn or gtin8). Please see documentation for valid identifiers.

Viewing 12 replies - 1 through 12 (of 12 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.

    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.

    Brand Value

    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.

    Thanks for a canned response which is not helpful at all.

    I am talking about the product category pages. I am unable to set the product category pages to archive schema.

    Hello,

    When Google loads the product archive pages, it also gets the product schema inside of the products in those archive pages.

    That is why you get those warnings/errors. It would mean those products need that data added, that is why I sent you the previous answer since solving it on each product should solve it too in the product archive pages.

    If it isn’t, just let us know and we will continue helping you until your issue is solved.

    Looking forward to help you.

    Either “offers”, “review”, or “aggregateRating” should be specified

    This is actually coming as an error. Not warning.

    It wasn’t the case when I had Yoast.

    How can I set the offers schema data? Because it’s not under my control which product gets review.

    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.
    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.

    Sensitive Data Updated

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I removed the schema from your category in Rank math > Titles&Meta > Product Categories
    img

    This has removed the product markup being added in your product category pages.

    Please note that the warnings will still appear on individual product pages until you acquire reviews for aggregate rating and fix other warnings as shown by colleague in the first reply.

    Looking forward to helping you. Thank you.

    Hello,

    Thank you. I don’t know why but the “Remove Snippet Data” was not showing before I gave you access to the wp admin dashboard.

    Did you add anything to the site’s code?

    • This reply was modified 2 weeks, 1 day ago by mkmeking.

    Hello,

    Thank you for contacting Rank Math today.

    Nothing was added. One of our recent changes to the plugin was introduction of the two modes; easy mode and advanced mode. You can always switch it in Rank math dashboard as shown below:
    img

    Looking forward to helping you. Thank you.

    I just got an email from Google that the “brand” field is still missing. I added the PHP code as instructed, but still it’s not getting fixed.

    Hello,

    I have tested a product on your store on SDTT and the brand is showing perfectly, please check the screenshot attached in sensitive section

    Looking forward to helping you. Thank you.

    ​​​​​​

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this ticket.