Tax not included in Rankmath Product Schema

#413710
  • Resolved Kevinff
    Rank Math free

    Hello!
    I have an issue where the tax is not included in the product schema. I searched in the previous tickets in here and found a few people with the same issue and with a possible fix by using a filter, however I have implemented that firstly in the functions.php file, and that did not work and secondly I also tried implementing it by creating a “rank-math.php”-file in the theme map.

    What am I doing wrong? (I have cleaned the cache multiple times, and used a different browser just to make sure there is not any cookies or cache interfering).

    Rank Math Filter (rank-math.php)

    Cheers!

    Kind Regards,
    Kevin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting the support.

    I checked the source of the product page and the price with tax is already included. The price without tax is under the priceSpecification Schema where valueAddedTaxIncluded property is false, meaning that it is the amount without the tax, whereas the actual amount with tax is included in the offers Schema (which is what defines the actual/current price of the product).

    Please have a look at the screencast in the sensitive data section of this ticket for a quick reference.

    Hope that helps.

    Thank you.

    Hello Prabhat!
    Thanks for your help. However, I believe your are mistaken since there are two product schemas. Google seems to be crawling the second Product Schema for pricing and not the first one which states the price incl. VAT and excl. VAT, not sure why I even have two but maybe it is done that way when there are reviews?

    If you look at the “Second” product schema in the validator, you will see that the price is excl. VAT. Furthermore, the price excl. VAT is seen under Rank Math generated “Meta” and under “Facebook Microdata” in the source code of the website and not the price incl. VAT.

    The issue if I don’t get it resolved is that I will get value mismatched errors on Google and they will temporarily remove all products from their shopping ads, I would appreciate if there is a known fix to this?

    Cheers!

    Prabhat
    Rank Math agency

    Hello,

    I checked and the second product Schema is not added by Rank Math. It seems like some other plugin/theme is adding the other Product Schema with the price excluding the taxes. You can have a look at the screencast in the sensitive data section of this ticket.

    Filter/code that you’ve added cannot modify the values of Schema generated by any other plugin/theme.

    It is not recommended to have multiple Product Schemas for the same product on the same page. Please follow this troubleshooting guide to determine the plugin/theme adding the other Schema: https://rankmath.com/kb/check-plugin-conflicts/

    Once found, disable the Schema and other similar features of that plugin/theme and that should fix the issue.

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

The ticket ‘Tax not included in Rankmath Product Schema’ is closed to new replies.