Hello,
Thank you for contacting Rank Math today.
The prices shown on Google are from the schema added to the product which Rank math automatically adds from data added in WooCommerce.
For this to change on Google, you should change it on your WooCommerce settings then test your URL here: https://search.google.com/test/rich-results and if the lowprice and high price values are correctly added then Google should update the same as soon as the page is crawled again.
Looking forward to helping you. Thank you.
Hi!
“change it on your WooCommerce settings”
I’m a little confused – I managed to remove availability from the structured data with the rank_math/snippet/rich_snippet_product_entity filter. As far as I understand, the filter is related to rank_math … Now I added highPrice to the filter (see below), and Google’s test for rich search results tells me highPrice is missing (optional). I’m curious how this will display in the search results… If you see something I can improve about the code … (I’m quite a beginner :-))
Thanks anyway for pointing me to highPrice!!
Frank
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
if ( isset( $entity['offers']['availability'] ) ) {
unset( $entity['offers']['availability'] );
}
if ( isset( $entity['offers']['highPrice'] ) ) {
unset( $entity['offers']['highPrice'] );
}
return $entity;
});
Hello,
Thank you for the follow up.
The highPrice is a recommended, not required, property for your products so this will show up on rich results test as a warning. Since you now only have the lowPrice, this might show up as the only price in your product rich results. Here is a screenshot:
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.