Modifying product schema

#290445
  • Resolved Sunny T
    Rank Math free

    Hi there,

    I have a post on my blog that is an affiliate review of someone else’s digital product.

    I have changed the post’s scheme to Product, added a rating, and added the Gutenberg block to the article.

    However, I have a couple questions:
    1. Do we need to show the availability? The block shows “Product In-Stock: InStock”, which I’d prefer not to display.
    2. The block also shows the review image. Can I remove this?
    3. Your documentation references inputting a Product URL, but I don’t see that anywhere under the Product schema options?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us.

    Please refer to the Product schema article from Google for a complete reference:
    https://developers.google.com/search/docs/advanced/structured-data/product

    1. The availability of the product is a recommended property but not a required property. So it can be removed and the schema would still be valid with a warning.

    2. The image is also a recommended property but not a required one. So it can also be removed.

    3. If you’re using the Product schema of Rank Math, then you can enter the product URL here: https://rankmath.com/kb/product-schema/#num-2-product-url

    Here’s a screenshot: https://i.rankmath.com/fWDBIb

    If in case you’re checking this in a product page using the WooCommerce Product schema, then that schema is automatically populated with data based on the details present on the product page. So you do not need to manually enter the data in the schema here.

    Hope this helps.

    Thank you.

    Hi Prabhat,

    For 1 and 2, how do you suggest I remove it? Custom CSS?

    That’s not even an option though since there is no class around the “product in-stock” text.

    It would be nice if there were more customization options for the block. Unless I’m missing something?

    3) I don’t see that field anywhere. Here’s a gif recording: https://gyazo.com/73912f20c6c365c3c77c71af5b7be7bd

    Thanks!

    Hello,

    Assuming you are using our “Product Schema” which you need to manually enter all the details. If so, you can simply leave it empty as even you remove it from the schema structure, Google will still look for it and mark it as warning.

    If you are however using our “Woocommerce Product” Schema which automatically fills all the necessary fields from your product page details, you may need to apply some filter codes using this guide here: https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data

    3. We can’t seem to replicate it, could you please confirm if you make use of our pre-built schema type “Product” as shown on this guide? https://rankmath.com/kb/rich-snippets/#product

    Looking forward to helping you on this one.

    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 ‘Modifying product schema’ is closed to new replies.