Schema data

#45208
  • Resolved Rich Walker
    Rank Math free
    Content AI Starter

    Google shopping keeps failing because the schema price is wrong. It’s showing the price without tax

    I have

    
    add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
        global $product;
        $entity['offers']['price'] = wc_get_price_including_tax( $product );
        return $entity;
    });
    

    In my functions file. Really stuck. I have put my url in the Sensitive Data.

Viewing 1 replies (of 1 total)
  • Michael Davis
    Rank Math pro

    Hello,

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

    I have just checked the affected product and the right price has been added the schema as shown below:
    Schema

    There is however an error relating to “One of offers or review or aggregateRating should be provided.”. I can suggest that you fix this by adding some review and ratings to your products.

    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.

Viewing 1 replies (of 1 total)

The ticket ‘Schema data’ is closed to new replies.