Product Rich Snipped

#4874
  • Resolved Pau
    Rank Math free

    Is it possible to add “aggregateRating” and “review” on the Product Rich Snipped?

    Now, we just can show stars with review snipped, or price without stars with product snipped. And if I use another plugin for the review combined with your product snipped, google just show the first type it found.

    I think it’s an important issue to fix, to be the best seo pluggin.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Todd
    Rank Math free

    Hello Pau,

    Rank Math takes 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.

    You can fix the SKU and availability issue easily though: http://i.mythemeshop.com/3MmkPe

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

    How i can hide priceValidUnt from product? http://prntscr.com/nnvj5i (my products has not price until from-to, only 1 price
    How i can hide aggregateRating and review from product, when this data is unavailable on the product. It means, when user has not yet left a review and did not rate product http://prntscr.com/nnvj1u

    Hi there,

    Thanks for the follow up.

    These are mere warnings and will not affect the way the rich snippets are displayed on SERP. You can simply ignore these warnings if your products do not have reviews or priveValidUntil set already.
    You can also modify schema data by making use of the following filter on your theme:

    /**
     * Filter to Short-circuit Schema if a 3rd party is interested in generating their own data.
     * Replace $schmea_type with schema name like article, review, etc.
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( "rank_math/snippet/rich_snippet_{$schema_type}", function( $entity ) {
    	return $entity;
    });

    I hope this info helps.

    Pau
    Rank Math free

    if i’m not using woocommerce, so rankmath doesn’t take automatically data from product. I mean, I’m writing by hand all the information like, SKU, price, and the other fields, in that case, does it takes reviews automatically and add into meta?

    Hi Pau,

    Thanks for the response.

    In this case, Rank Math is unable to fetch the data automatically. You will need to assign the values to the product rich snippet using some code in your functions.php file.
    Please make use of the filter shown below to assign your custom schema data for the product snippet:

    /**
     * Filter to Short-circuit Schema if a 3rd party is interested in generating their own data.
     * Replace $schmea_type with schema name like article, review, etc.
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( "rank_math/snippet/rich_snippet_{$schema_type}", function( $entity ) {
    	return $entity;
    });

    Let me know if you have additional questions. Thank you.

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

The ticket ‘Product Rich Snipped’ is closed to new replies.