Hello,
We apologize for the issue you are facing with the currency code in the Product Schema generated by Rank Math. Thank you for bringing this to our attention.
Currently, the correct ISO 4217 code for the Iranian currency is indeed "IRR", and it seems that there is a discrepancy in how Rank Math is outputting this value. We recommend checking your WooCommerce settings to ensure that the currency is set correctly under WooCommerce → Settings → General.
If the issue persists, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Your feedback is valuable, and we will consider it for future updates.
Thank you for your understanding!
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Here is a product page on my site where the currency is still showing as RIAL instead of IRR in the schema: https://rtlhtml.com/downloads/%d9%82%d8%a7%d9%84%d8%a8-%d8%b4%d8%ae%d8%b5%db%8c-beny/
Hello,
Thank you for your previous reply. I wanted to update you:
I confirmed that the issue comes from Rank Math’s Product schema where priceCurrency outputs as RIAL/IRT instead of the valid ISO 4217 code IRR.
As a temporary workaround, I added the following snippet to my site, and now Google Rich Results Test no longer shows the “Invalid ISO 4217 currency code” error:
add_action(‘template_redirect’, function () {
if ( is_admin() ) return;
ob_start(function ($html) {
$html = str_replace(‘”priceCurrency”:”RIAL”‘, ‘”priceCurrency”:”IRR”‘, $html);
$html = str_replace(‘”priceCurrency”:”IRT”‘, ‘”priceCurrency”:”IRR”‘, $html);
$html = str_replace(‘itemprop=”priceCurrency” content=”RIAL”‘, ‘itemprop=”priceCurrency” content=”IRR”‘, $html);
$html = str_replace(‘itemprop=”priceCurrency” content=”IRT”‘, ‘itemprop=”priceCurrency” content=”IRR”‘, $html);
return $html;
});
});
Could you please confirm if it is safe to use this snippet until you release an official fix? Also, do you plan to correct the currency code in an upcoming update?
Thanks again for your support!
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
You may keep the code you shared as a temporary workaround.
As for the issue, we can’t seem to replicate this from our end. 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.
Hello,
Thank you for your reply and the detailed instructions.
For security reasons, I prefer not to share WordPress or FTP access at the moment. I’ll keep the temporary workaround in place.
It would be great if your team could consider adding proper support for the Iranian currency (IRR/Rial) in one of the upcoming updates, so that it works without manual fixes.
Thanks again for your support!
Hello,
We checked the Iranian currency on our end, and we can see Rank Math is using IRR for the “priceCurrency” value in the schema:

In this case, could you please share a screenshot of the product schema you’re using on your page? You can use any image-sharing tool like https://imgur.com/upload to share the screenshot with us.
Looking forward to helping you.
Thank you.