Split: GTIN missing in Rich Results

#115108
  • Resolved spacid007
    Rank Math free

    Code did not help for me! put lot of houres work in it how to fix , understand..
    Great software i think!? but my products are not taken up in google.
    Reason ->Erros by Missing fields -> Reviews, Aggregate,Gtin,priceValidUntil’.

    If you install or uninstall this plugin, everything remains the same.. Links will not been taken up in google.

    so whats the point of the use of this plugin? i dont’ know.
    the only thing i could fix = ‘Brand’

Viewing 3 replies - 1 through 3 (of 3 total)
  • @spacid007

    Review&Aggregate cant be filled if your product doesnt have a user rating.

    GTIN: woocommerce doesnt support gtin. you need a plugin to add the gtin and modify the above code so it uses the GTIN value of your plugin

    priceValidUntil: search the support forum for this value and you will find code that you can add to your functions.php

    Btw other plugins doesnt even have custom code to add stuff like gtin or pricevalid value.

    Review = turned of, have 6000 products, i will not fill 6000 products in.
    Gtin -> i dont need that on my website, want to keep my database clean.
    priceValidUntil -> i dont need that on my website. and the codes i’ve tested didn’t work so far.

    Now it got much more worser.. red errors.. aaargh.. dont know what to anymore.

    Thanks for your reply.. I’m not going PRO until i found a solution.

    Hello @spacid007,

    Thank you for getting in touch with us.

    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.

    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.

    For the GTIN, ISBN, MPN issue, you can fix it by adding that to your products using the custom product attribute feature in WooCommere or you can use this plugin: https://wordpress.org/plugins/product-gtin-ean-uc-isbn-for-woocommerce/

    These warnings, if not fixed, show up as errors on Products taxonomy pages. You should remove the schema from categories by enabling this option in Rank math > Titles & Meta > Product Categories. Google recommends to have the product schema on your specific product pages, not categories: https://developers.google.com/search/docs/data-types/product/#guidelines

    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 ‘Split: GTIN missing in Rich Results’ is closed to new replies.