• Resolved Upperfield

    (@upperfield)


    Hi,

    For our wholesale business prices are only visible after logging in, but I noticed that prices were also visible in Google Search results (coming from Rankmath).

    After some research I have taken the following steps to stop this:

    • Changed schema type for products to none instead of Woocommerce
    • Change Products Robots Meta to index and no snippet
    • Added the following snippet to stop Rankmath passing on the price:
    • add_filter( “rank_math/snippet/rich_snippet_product_entity”, function( $entity ) {
    • unset($entity[‘offers’][‘price’]);
    • return $entity;
    • });
    • As well as this snippet:
    • function wc_remove_some_structured_data( $markup ) {
    • unset( $markup[‘offers’] );
    • return $markup;
    • }
    • add_filter( ‘woocommerce_structured_data_product’, ‘wc_remove_some_structured_data’ );

    Went into Google Search Console and selected 1 product page to reindex, checked results after reindex, but price is still passed on through Rankmath?

    !– Search Engine Optimisation by Rank Math – https://rankmath.com/

    meta property=”product:price:amount” content=”33.13″

    meta property=”product:price:currency” content=”AUD”

    How do I configure Rankmath to stop passing on the product price to Google Search. I don’t want any product meta data to be displayed by Google, only the product title, so I don’t want the availability be visible either.

    Thank you very much for your assistance,

    Hans

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @upperfield,

    Thank you for contacting Rank Math support.

    Since you have already set the Schema to None, you don’t need to use the filter to remove the price from our plugin’s Schema. To remove the OpenGraph price tags, add the following filters to your site:

    add_filter("rank_math/opengraph/facebook/product_price_amount", function ($content) {
    return false;
    });
    add_filter("rank_math/opengraph/facebook/product_price_currency", function ($content) {
    return false;
    });

    Please note that, it can take some time for Google to recrawl the products and update the snippet in the SERPs.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter Upperfield

    (@upperfield)

    Thank you, that worked fine!

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @upperfield,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on
    https://www.ads-software.com/support/plugin/seo-by-rank-math/reviews/#new-post

    about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.