Product Rich Snippets is Not Working on E-Commerce.

#24892
  • Resolved INNRECH UCHENNA EDEH
    Rank Math free

    Hi,

    I installed Rank Math and used it to replace my previous Yoast SEO. I like RankMath but the problem is that the Rich Snippets is not working on my e-Commerce website. I have read through your guidelines on https://rankmath.com/kb/rich-snippets/ and https://rankmath.com/kb/titles-and-meta/ over and over again and I have followed every procedure in great details but yet I have so many errors on all my product pages when I test it with Google Structured Data Testing Tool.

    When I click on the Rich Snippet tap on the product page; it is not allowing me to enter the data requested on the google error. When I click on the RankMath Rich Snippet tab, all I can see is “Rank Math automatically inserts additional Rich Snippet meta data for WooCommerce products. You can set the Rich Snippet Type to “None” to disable this feature and just use the default data added by WooCommerce.”

    But still is not allowing me to edit the rich snippet for the product and enter some data like (brand, sku, description, priceValidUntil etc.). These are the data I’m getting warnings about on the Google Structured Data Testing Tool.

    Please how do I edit the RankMath Rich Snippet and provide these values for my E-Commerce products??? You guidelines says that when I click on the the rich snippet tab for the product, I can enter the values but that is not working.

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

    Hi,

    Thanks 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.
    https://i.rankmath.com/Ni50EF

    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 quickly as well: https://i.rankmath.com/wtM5aM

    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.
    https://i.rankmath.com/Atiq6s

    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:
    https://pastebin.com/Uc2wmTSL

    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 me know if you need our assistance with anything else.

    This did not work for me.

    I am not seeing Brand for isRelatedTo Product. Also, I am not seeing UPC from the plugin https://wordpress.org/plugins/product-gtin-ean-upc-isbn-for-woocommerce/.

    Please help.

    Hello,

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

    We are working on updating the schema attributes for the is_RelatedTo data. I can suggest that you remove this from your products to fix the problem by adding the following code on your theme’s functions.php file:

    /**
     * Filter to modify schema data.
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        if(isset($entity['isRelatedTo'])){
           unset($entity['isRelatedTo']);
           return $entity;
        }
       
        return $entity;
    });

    Looking forward to helping you. 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Product Rich Snippets is Not Working on E-Commerce.’ is closed to new replies.