Prices without VAT in schema.

#281589
Viewing 2 replies - 1 through 2 (of 2 total)
  • Nathan Wilde
    Rank Math business
    Content AI Creator

    I need to change this: https://ibb.co/b1TpTz9 from False to True

    “valueAddedTaxIncluded”:”false”

    Any ideas how I can do this?

    Azib Yaqoob
    Rank Math business

    Hello,

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

    To achieve that, you can add the following code at the end of your functions.php file:

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

    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 2 replies - 1 through 2 (of 2 total)

The ticket ‘Prices without VAT in schema.’ is closed to new replies.