Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
The WooCommerce Product Schema fetches all the data from the products automatically according to your settings. If you’re already using that schema, you can manage the settings of your products in WooCommerce > Settings > Tax to include the vat/tax like in this image
I hope that helps.
Thank you.
Hello,
Thank you for your quick response. The WooCommerce settings are set already to include the vat/tax like in your image, so this sadly does not solve the issue.
Are there other solutions?
Hello,
Could you please share a screenshot of the settings you have on the Tax options of WooCommerce so we can advise you better?
Looking forward to hearing back from you.
It is in Dutch, but the same options are selected.
Hello,
In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I went ahead and add a filter to forcibly display price in the schema with tax rate included. I tested it in the Google Rich Result Test and the desired price is now showing:
Kindly check from your end.
Looking forward to helping you with this one.
Hi,
Thank you for your reply. Where have you applied the filter? I have another website with the same issue so hopefully the same solution works.
However for this website it is not solved completely yet, there are 18 disapproved products left in Merchant Center. This is one of them.
Hello,
It seems the tax-included price is showing on the schema from my end. Please see the screenshot of the affected URL that you just sent me:
Please resubmit the product to the Google merchant center and let us know if the error is still there.
I have added the code to your theme’s functions.php file as you can see in the screenshot:
You can apply this filter code to the rest of your website if you wish to forcibly include the tax.
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;
});
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hello,
Thank you for your reply. We have resubmitted the products again, but Google keeps on disapproving the price. Is there anything else we can do?
Thanks in advance!
Hello,
Could you please share the error message you are getting? Also, please confirm if you are submitting the same URL in the sensitive data section or you have used a different URL so we can check.
Meanwhile, we also recommend that you read through this guide to learn more about the way Google tries to identify the price and the guidelines that you need to set for your prices on the website: https://support.google.com/merchants/answer/6324371
I hope that helps.
Thank you.
Hi,
We resolved the issue after contacting Google, something went wrong on their side.
Thanks for the assistance!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
Thank you.