Price meta property without VAT, confusing Google Merchant

#147773
  • Resolved Alex
    Rank Math free

    Hi,

    We recently created a feed with Google Merchant and we got some errors mentioning a difference between site price and feed price.
    It’s actually not wright, if you look on the front-end page, but if you check the code inspector you will notice that there a is a meta property under Rank Math, that contains the price without VAT – screenshot. And this is where Google is taking the different price.

    So I’m looking for a solution to display the price including VAT in the meta property=”product:price:amount”.

    I tried to use this code:
    add_filter( “rank_math/snippet/rich_snippet_product_entity”, function( $entity ) {
    global $product;
    $entity[‘offers’][‘price’] = wc_get_price_including_tax( $product );
    return $entity;
    });
    from this ticket, but it doesn’t solve it.

    My page url is this.

    Please help me out with a solution.

    Many thanks
    Alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • Danial
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Rank math takes the product data as set in WooCommerce. We do not add those values separately and instead rely on WooCommerce to provide that information.

    If you want to show the price with the tax on product pages, then you’ll have to add the price with the tax on product pages and select the Yes, I will enter prices inclusive of tax option in the WooCommerce > Tax settings.

    I hope this helps you with your issue.

    Alex
    Rank Math free

    I appreciate the quick response.
    Thanks.

    Hello,

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

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you 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)

The ticket ‘Price meta property without VAT, confusing Google Merchant’ is closed to new replies.