Need specific guidance on schema for products

#33448
  • Resolved Peter Monahan
    Rank Math free

    Google’s structure data test tool reports errors for our product page.

    Missing: SKU, Brand, Image and Description, yet the tool also reports it correctly picked up the same information that it claims is missing.

    This is conflicting and I am wondering if we have something duplicated …

    P

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    The error is stemming from the usage of the isSimilarTo product attribute that is not supported on the old schema testing tool.

    You can however test the same product on the new rich snippet test tool to see that these are not actual errors: https://search.google.com/test/rich-results

    If you would like to disable this attribute on your product schema then you can add the following code snippet to your theme’s functions.php file:

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

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Dirk
    Rank Math free

    I’m having the same issue with the ‘isSimilarTo’ product attribute in the old schema testing tool. The test runs fine with the new rich snippet test tool. Thanks for the URL.

    What would be the (dis)advantage of disabling this attribute with the provided code snippet ?

    Todd
    Rank Math free

    Hi Dirk,

    There is no disadvantage.

    Google Structured data testing tool throws warning but it’s a false positive. In isRelatedTo field only product name and URL is required. You can check this in the new Google Rich Snippet testing tool: https://search.google.com/test/rich-results

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Need specific guidance on schema for products’ is closed to new replies.