Product Schema Incorrect Price Issue

#1072683
  • Resolved Toby Tonks
    Rank Math free

    I’m currently experiencing an issue where the product schema output generated by Rank Math is excluding VAT from the price field. This is causing disapprovals in Google Merchant Center, which requires prices to be inclusive of VAT to match what’s shown on the product landing page.

    My WooCommerce setup is configured as follows:

    Prices are entered excluding tax

    Prices are displayed including tax

    UK VAT is applied at 20%

    On the front end, customers see the correct VAT-inclusive price. However, the structured data output in the JSON-LD schema (particularly the Offer > price and valueAddedTaxIncluded fields) shows the ex-VAT price, and valueAddedTaxIncluded is set to false.

    As a result, Google is flagging this as a mismatch.

    Could you advise whether Rank Math is responsible for this part of the schema, and if so, is there a recommended way to ensure VAT-inclusive pricing is used in the schema output? Or do you suggest any workaround or settings we can use to correct this?

    Appreciate your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with the product schema output in Rank Math. It seems that the structured data is not reflecting the VAT-inclusive prices as required by Google Merchant Center, which can indeed lead to disapprovals.

    To ensure that your product schema includes VAT in the price field, you can follow these steps:

    1. Check WooCommerce Settings: Make sure that your WooCommerce settings are correctly configured. Since you mentioned that prices are entered excluding tax and displayed including tax, ensure that you have enabled the option for tax calculations in WooCommerce:

      • Go to WooCommerce → Settings → General.
      • Under General Options, ensure that Enable tax rates and calculations is checked.

      Enable Tax rates and calculations

    2. Product Price Configuration: Ensure that the prices for your products are set correctly in the product data section. The regular price should reflect the VAT-inclusive price if you want it to be shown that way in the schema.

      Regular price of product in WooCommerce

    3. Schema Settings: Rank Math should automatically include the VAT-inclusive price in the schema if configured correctly. If it still shows the ex-VAT price, please check if there are any conflicting plugins or settings that might be affecting this.

    4. Value Added Tax (VAT) Configuration: Ensure that your VAT settings are correctly applied in WooCommerce. You can refer to this detailed guide on configuring tax options in WooCommerce.

    If after checking these settings the issue persists, we recommend replying to this ticket with your site URL so a human agent from our support team can assist you further. They can provide more specific guidance based on your setup.

    Thank you for raising this concern, and we hope to resolve it promptly for you!

    Sources:
    How to Use Product Schema for WooCommerce Products » Rank Math

    Hello,

    In this case, you may need to add this code to forcibly display prices in the schema with tax rates included:

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

    And here’s a guide on how you can add a filter to your website:
    https://rankmath.com/kb/filters-hooks-api-developer/

    Looking forward to helping 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 ‘Product Schema Incorrect Price Issue’ is closed to new replies.