Google displaying exVAT pricing when Woocommerce is set to display with tax

#657908
  • Resolved Bunker Media
    Rank Math free

    We enter prices on website without tax, and display front end with tax.

    Google is displaying the price without tax (Google the phrase “Ampere Hilux”).

    Here is the actual product: https://ampereelectric.co.uk/ampere-hilux/

    We would like them to display with tax, like everywhere else on the website, but I can’t find any setting within RankMath to do this?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    Please note that the pricing should match everything, not only on the Schema but if you update the Schema to include the price with taxes, the data displayed to your users also needs to be the same.

    If you want to force this in the Schema markup, you can add the following filter to the website:

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

    Here’s a guide to adding the code to the website:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    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 ‘Google displaying exVAT pricing when Woocommerce is set to display with tax’ is closed to new replies.