Allow other Schema Data Set for Products

  • We enhance with some Plugins a WooCommerce Shop to show trainings as products. But that means that the standard Schema wich RankMath are assign if the posttype was a woocommerce product was not the correct one.
    Is there a way to allow also event as possible Schema for such product?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

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

    To change schema on Woocommerce Products page, you can use plugin’s filter code.
    Please try the solution given in this thread: https://support.rankmath.com/ticket/event-snippet-with-woo-products/

    Hope that helps. Please let us know, if that doesn’t help.

    Thank you.
    ​​​​​​​

    I place these filter in functions.php of Childtheme, but there was no difference in view.
    Or must the filter placed in an other area?

    Hello,

    No, the filter code needs to be added in the functions.php file. Maybe cache is enabled on your site? Please disable cache or check in incognito mode.

    If you could share your WP login details in the Sensitive Data Section, I would love to take a look.

    Thank you.

    Hi Pratik,

    the cache was cleared and in one instance also deactivated.
    One problem i see was that with the choosen Snippet i could not edit elements like location, Start and enddate and so on.
    Is there no way to handle the structured data for Woocommerce also as for other post types – f.e. for posts.
    Means that i can choose the rich snippet type – and change it then to event – and fill the other datas with shortcodes (%wc_price, %title%) or with hand?

    Hello,

    Is there no way to handle the structured data for Woocommerce also as for other post types – f.e. for posts.

    For other post types, you will see an option in Post Metabox to edit the snippet values. For Woocommerce, we’ve intentionally limited the Rich Snippet to Product, you can use the filter code I gave you before to change the snippet and its data.

    If you could share your WP logins, I would love to take a look and fix it for you.

    Looking forward to helping you. Thank you.

    Hi Pratik,

    i place it now on the development system and found the way to handle it. The snippet will shown, but the problem is that there are a lot of data wich i could not get from an existant value to fill the needed areas.
    I must filled it from hand – but these was not possible.
    Therefor the request if it was possible to edit the snippets in PostMetabox too.

    Hello,

    Thank you for your valuable suggestion. I’ve forwarded this suggestion to our Development team, if it’s something that we’re able to introduce, we’ll be sure to let you know.

    For now, you can use WP custom fields to add the snippet value and fetch it on frontend using the plugin filter.

    Hope that helps. Thank you.

    ok, tnx for info.

    Hi Thomas,

    You are very welcome.

    If you need our assistance with anything else, please do not hesitate to open a new ticket.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘Allow other Schema Data Set for Products’ is closed to new replies.