Hide woocommerce products prices from Google

#605980
  • Resolved Anonymous
    Rank Math free

    Hi I want to hide Woocommerce products pricing from the Google. Please remember that, I could not see any price option under the Rank Math Title and Meta option.

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

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

    The price in the SERPs is coming from your WooCommerce Product Schema. If you want to remove the price property from the schema, then you can try to add the following filter on your website:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        if ( isset( $entity['offers'] ) ) {
    		unset( $entity['offers'] );
    	}
        return $entity;
    } );
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    However, please note that Price is a required field in the Product Schema. Hence, we do not recommend removing it: https://developers.google.com/search/docs/appearance/structured-data/product#product-information

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Anonymous
    Rank Math free

    I have added the code can you please check for me here https://radincon.com.au/accessories/bips-contrast-agents/

    Also, Will Google hide the price automatically OR do i need to submit the sitemap again OR anything needs to be done from our side ?

    Hello,

    We’ve checked your page and we can see that the price property is removed from the product schema. Now Google will also automatically remove this from the SERPs when it will recrawl your website.

    However, currently, your product schema becomes invalid and is showing the following error:

    In order to resolve the issue, you can follow this guideline: https://rankmath.com/kb/either-offers-review-or-aggregaterating-should-be-specified/#offers-review-aggregateRating

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Anonymous
    Rank Math free

    Thanks for your reply.

    I have followed the guideline. However, I could not see any option to remove the snippet under product category please see the attached.screenshot

    Hello,

    The Remove Snippet Data option is only necessary when the error appears on your Product category page. But as the error is appearing on your product page, in this case, the option will not work.

    In order to resolve the issue, you’ll have to add some reviews to this product page.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    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.

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

The ticket ‘Hide woocommerce products prices from Google’ is closed to new replies.