Rich Snippets module not available in control panel

#76686
  • Resolved jimmyegypt
    Rank Math free

    There is no Rich Snippet module available or visible in my Rank Math control panel.

    I need to change the price schema data of my products as they are showing up as excluding vat on the schema which means they have a 20% variance with what appears to the customer on the front end. Google are therefore disallowing all of my products in my Google product feed. I have pricing metadata available including vat and I need to insert this in the schema. I hope Rank Math can help me do this but I believe I need to have the rich Snippets module available.
    Using Flatsome theme.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Alberto
    Rank Math business

    Hello,

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

    To achieve that, you can add the following code at the end of your functions.php file:

    add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
        global $product;
        $entity['offers']['price'] = wc_get_price_including_tax( $product );
        return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thanks.
    This code adds the schema of price. The problem is the price is excluding the VAT.
    For example front end product price is £120. VAT is 20% so this front end price includes 20% VAT. It is £100 + £20 VAT. The schema price is showing as £100 because I must list products in admin back end without VAT due to a requirement of a 3rd party feed. This can’t be changed. Woocommerce however adds the VAT on the front end so that my customers see the correct price I will charge of £120. The problem is that my schema shows £100 and Google has a problem with this and disallows all my products. I need the schema for all my products to show the price as including VAT (£120 in this case).
    Thanks for your asistance

    Hello,

    Rank math takes the product data as set in WooCommerce. To modify these prices, you would have to change the prices in WooCommerce product settings to be tax inclusive. If for some reason, you do not want to change the WooCommerce Settings then please use the filter code, my colleague provided: https://support.rankmath.com/ticket/rich-snippets-module-not-available-in-control-panel/?view=all#post-76908

    Please add this code in your theme’s functions.php file to include price with tax in Schema.

    I hope that helps.

    That seems to have worked but I am worried that I still have the price ex VAT still showing also in schema. Here price 2729 is now correct. THANKS! How can I remove the line which is still existing in the schema”{“price”:”2274.17″,”priceCurrency”:”GBP”,”valueAddedTaxIncluded”:”false” as I think this may confuse the GOOGLE feedand is not the price i want to show.
    Can you also please help me add a “priceValidUntil” value?
    I appreciate your help.

    https://ibb.co/b1Ythsy

    {“@type”:”Offer”,”price”:2729,”priceCurrency”:”GBP”,”priceValidUntil”:””,”availability”:”https:\/\/schema.org\/InStock”,”itemCondition”:”NewCondition”,”url”:”https:\/\/www.jimmyegypt.com\/product\/rickenbacker-360-fireglo\/”,”seller”:{“@type”:”Organization”,”@id”:”https:\/\/www.jimmyegypt.com\/”,”name”:”Jimmy Egypt & Sons Musical Instruments”,”url”:”https:\/\/www.jimmyegypt.com”,”logo”:”https:\/\/www.jimmyegypt.com\/wp-content\/uploads\/2020\/08\/Jimmy-Egypt-Master-Badge-Emblem-01-e1597168645578.jpg”},”priceSpecification”:{“price”:”2274.17″,”priceCurrency”:”GBP”,”valueAddedTaxIncluded”:”false”}}}]}

    Hello,

    For priceValidUntil field, Rank Math by default uses the value from the following WooCommerce Product Settings: https://i.rankmath.com/YA7rQh

    To change it and to change the priceSpecification value, please use following filter code:

    
    add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
        global $product;
        $entity['offers']['price'] = wc_get_price_including_tax( $product );
        $entity['offers']['priceSpecification']['price'] = wc_get_price_including_tax( $product );
        $entity['offers']['priceValidUntil'] = 'Add PriceValid until value here.';
        return $entity;
    });
    

    I hope that helps.

    This has changed the Rich Snippet, thanks but I am still having a problem. Google is still disallowing my feed “Insufficient match of microdata price information…87% of crawls within the last 7 days had a price mismatch”
    The meta is still showing prices without VAT to google and they are disallowing all my products.
    For example my item URL;
    https://www.jimmyegypt.com/product/squier-affinity-series-stratocaster-competition-orange/
    You provided me with the code to show the correct customer price with Rich Snippets of £169. However other metadata is showing the price without VAT and this is causing the problem <meta property=”product:price:amount” content=”140.83″>
    This is the ex VAT price and google is picking this up and disallowing all my products. Here is full metadata. How can I fix this? Thanks.

    <!– Search Engine Optimisation by Rank Math – https://s.rankmath.com/home –>
    <title>Squier Affinity Series Stratocaster, Competition Orange – Jimmy Egypt & Sons</title>
    <meta name=”description” content=”The best value available today in electric guitar design, Squier Affinity Series guitars deliver solid sound with slick style. The Affinity Series Stratocaster combines the classic features that made the Stratocaster a rock 'n' roll favorite: sonic flexibility, authentic Fender sound, vintage style and eye-catching finishes.”/>
    <meta name=”robots” content=”follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large”/>
    <link rel=”canonical” href=”https://www.jimmyegypt.com/product/squier-affinity-series-stratocaster-competition-orange/&#8221; />
    <meta property=”og:locale” content=”en_GB”>
    <meta property=”og:type” content=”product”>
    <meta property=”og:title” content=”Squier Affinity Series Stratocaster, Competition Orange – Jimmy Egypt & Sons”>
    <meta property=”og:description” content=”The best value available today in electric guitar design, Squier Affinity Series guitars deliver solid sound with slick style. The Affinity Series Stratocaster combines the classic features that made the Stratocaster a rock 'n' roll favorite: sonic flexibility, authentic Fender sound, vintage style and eye-catching finishes.”>
    <meta property=”og:url” content=”https://www.jimmyegypt.com/product/squier-affinity-series-stratocaster-competition-orange/”&gt;
    <meta property=”og:site_name” content=”Jimmy Egypt & Sons”>
    <meta property=”og:updated_time” content=”2020-08-15T12:16:41+01:00″>
    <meta property=”fb:app_id” content=”192889972135059″>
    <meta property=”og:image” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-1-256×800.png”&gt;
    <meta property=”og:image:secure_url” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-1-256×800.png”&gt;
    <meta property=”og:image:width” content=”256″>
    <meta property=”og:image:height” content=”800″>
    <meta property=”og:image:alt” content=”Squier Affinity Series Stratocaster, Competition Orange”>
    <meta property=”og:image:type” content=”image/png”>
    <meta property=”og:image” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-2-254×800.png”&gt;
    <meta property=”og:image:secure_url” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-2-254×800.png”&gt;
    <meta property=”og:image:width” content=”254″>
    <meta property=”og:image:height” content=”800″>
    <meta property=”og:image:alt” content=”Squier Affinity Series Stratocaster, Competition Orange”>
    <meta property=”og:image:type” content=”image/png”>
    <meta property=”og:image” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-3.jpg”&gt;
    <meta property=”og:image:secure_url” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-3.jpg”&gt;
    <meta property=”og:image:width” content=”800″>
    <meta property=”og:image:height” content=”539″>
    <meta property=”og:image:alt” content=”Squier Affinity Series Stratocaster, Competition Orange”>
    <meta property=”og:image:type” content=”image/jpeg”>
    <meta property=”og:image” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-4.jpg”&gt;
    <meta property=”og:image:secure_url” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-4.jpg”&gt;
    <meta property=”og:image:width” content=”800″>
    <meta property=”og:image:height” content=”486″>
    <meta property=”og:image:alt” content=”Squier Affinity Series Stratocaster, Competition Orange”>
    <meta property=”og:image:type” content=”image/jpeg”>
    <meta property=”og:image” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-5.jpg”&gt;
    <meta property=”og:image:secure_url” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-5.jpg”&gt;
    <meta property=”og:image:width” content=”800″>
    <meta property=”og:image:height” content=”524″>
    <meta property=”og:image:alt” content=”Squier Affinity Series Stratocaster, Competition Orange”>
    <meta property=”og:image:type” content=”image/jpeg”>
    <meta property=”product:brand” content=”Squier”>
    <meta property=”product:price:amount” content=”140.83″>
    <meta property=”product:price:currency” content=”GBP”>
    <meta property=”product:availability” content=”instock”>
    <meta name=”twitter:card” content=”summary_large_image”>
    <meta name=”twitter:title” content=”Squier Affinity Series Stratocaster, Competition Orange – Jimmy Egypt & Sons”>
    <meta name=”twitter:description” content=”The best value available today in electric guitar design, Squier Affinity Series guitars deliver solid sound with slick style. The Affinity Series Stratocaster combines the classic features that made the Stratocaster a rock 'n' roll favorite: sonic flexibility, authentic Fender sound, vintage style and eye-catching finishes.”>
    <meta name=”twitter:site” content=”@jimmyegypt”>
    <meta name=”twitter:creator” content=”@jimmyegypt”>
    <meta name=”twitter:image” content=”https://www.jimmyegypt.com/wp-content/uploads/2020/02/Squier-Affinity-Telecaster-Competition-Orange-1-256×800.png”&gt;
    <script type=”application/ld+json”>{“@context”:”https:\/\/schema.org”,”@graph”:[{“@type”:”Product”,”sku”:”037-0200-596″,”name”:”Squier Affinity Series Stratocaster, Competition Orange”,”description”:”The best value available today in electric guitar design, Squier Affinity Series guitars deliver solid sound with slick style. The Affinity Series Stratocaster combines the classic features that made the Stratocaster a rock ‘n’ roll favorite: sonic flexibility, authentic Fender sound, vintage style and eye-catching finishes.”,”releaseDate”:”2020-02-07T13:23:30+00:00″,”brand”:{“@type”:”Thing”,”name”:”Squier”},”category”:”Electric Guitars”,”image”:{“@type”:”ImageObject”,”url”:”https:\/\/www.jimmyegypt.com\/wp-content\/uploads\/2020\/02\/Squier-Affinity-Telecaster-Competition-Orange-1.png”,”width”:769,”height”:2400},”offers”:{“@type”:”Offer”,”price”:169,”priceCurrency”:”GBP”,”priceValidUntil”:”2020-12-30″,”availability”:”https:\/\/schema.org\/InStock”,”itemCondition”:”NewCondition”,”url”:”https:\/\/www.jimmyegypt.com\/product\/squier-affinity-series-stratocaster-competition-orange\/”,”seller”:{“@type”:”Organization”,”@id”:”https:\/\/www.jimmyegypt.com\/”,”name”:”Jimmy Egypt & Sons Musical Instruments”,”url”:”https:\/\/www.jimmyegypt.com”,”logo”:”https:\/\/www.jimmyegypt.com\/wp-content\/uploads\/2020\/08\/Jimmy-Egypt-Master-Badge-Emblem-01-e1597168645578.jpg”},”priceSpecification”:{“price”:169,”priceCurrency”:”GBP”,”valueAddedTaxIncluded”:”true”}}}]}</script>
    <!– /Rank Math WordPress SEO plugin –>

    Hello,

    I checked your product URL on Google rich results and it seems to appear fine. I couldn’t find an issue with the pricing. Even previewing the results shows price inclusive of vat:
    img

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi Michael. Thanks. What’s confusing is I have checked my Google XML feed and it has the correct pricing information for all items (VAT included in the feed prices) however in Google Merchant Centre it is reporting prices without VAT as if it’s taken from the open graph information (see my previous message) and what is even more confusing is that some products are crawled with the proper including VAT pricing and some with the incorrect Excluding VAT pricing.
    These products were uploaded from the same feed at the same time and the pricing information in the admin is correct for each product with a site wide tax credentials.I have supplied 2 screenshots… the products “Stagg Wooden Block/Practice pads” as seen in the first jpg are exactly the correct price with a VAT included price I want to show ….but the second jpg with the guitars all have the incorrect VAT NOT INCLUDED price crawled!Google is still disallowing my feed “Insufficient match of microdata price information…87% of crawls within the last 7 days had a price mismatch”
    https://ibb.co/Tbqgwhm
    https://ibb.co/1GPzyz4

    I do appreciate your help. Thanks.

    Hello,

    We are sorry but we do not have any features in Rank Math to make your products work with Google Merchant. This is something we plan on introducing soon though.

    For now, you can use some custom solution and disable the WooCommerce Schema in Rank Math.

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

The ticket ‘Rich Snippets module not available in control panel’ is closed to new replies.