Woocommerce schema for rich snippet

#922739
  • Hello, in Rank Math – Title and Meta – Product, I chose “Woocommerce” for rich snippet. I use a plugin to setup discounts and offers on my site that is called “Advanced Dynamic Pricing for WooCommerce” by Algolplus. The problem is that in Google Search my products are shown with full price, and not the discounted price. This is causing us losing lots of traffic, especially if customers compare the price with other sites while they are still on Google Search. I reached the plugin support and they told me to set the product schema to “None”, but I am really not sure that it’s the best thing for our results and our Seo. Can you please advise on this matter? What do you suggest to do to fix the issue? Thank you in advance for your help.

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

    Thank you so much for getting in touch.

    Can you please confirm if the plugin “Advanced Dynamic Pricing for WC” suggests setting the product schema to because they have their own schema?

    Please note that the sale price is a field that is available by default in WooCommerce and our Schema data is able to work with that information to update the Schema when relevant, but not with any custom plugins that might use custom fields with data for the same purpose.

    You can however modify our schema to ensure the custom discounted price is implanted to our schema structure: You can use the following filter to modify the Product Schema:

    add_filter('rank_math/snippet/rich_snippet_product_entity', function ($entity) {
    	return $entity;
    });

    Don’t hesitate to get in touch if you have any other questions.

    Thank you for your reply. Setting the product schema to “none” the prices in google search are now the discounted ones. But as I said, I don’t know if it’s the best solution for SEO. I guess your product schema is better. Can you help me to understand where do I have to add your code?

    Hello,

    The code needs to be customized and added to your theme’s functions.php file or rank-math.php file.

    You can follow our guide here on how to add a filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.