-
Dear Rank Math Support Team,
I am facing an issue with my product schema where the price is incorrectly displayed as “0”. I use the PPOM plugin to manage product prices, and I believe this is affecting the schema generated by Rank Math. Despite multiple attempts to modify the schema through filters and custom code, the price still shows as “0” at Offers schema instead of reflecting the correct value from PPOM fields.
I should also mention that I am using a multisite environment, with multiple sites under different languages. The schema issue occurs across all sites in the multisite setup.
Here are some details of what I have tried so far:
Custom PHP Code: I have written custom functions to extract the PPOM price from product meta fields and use it to override the price in the Rank Math schema. Despite this, the schema output still displays the price as “0”.
JavaScript Modifications: I attempted to use JavaScript to dynamically update the price in the meta tags, including Twitter meta tags, after the page load. This approach was also unsuccessful, and the price remains “0”.
Removing and Replacing Schema Tags: I tried removing the existing schema tags and replacing them with updated ones that include the correct price from the PPOM fields. Unfortunately, this also did not resolve the issue.
WooCommerce Price Filters: I have used WooCommerce hooks like woocommerce_get_price_html to try and modify the displayed price, but this has not been reflected in the schema or meta tags.
It seems that the Rank Math schema generation may not be picking up the dynamic pricing set through PPOM, and my attempts to override it programmatically have not been effective.
Could you please provide guidance or a solution on how I can ensure the Rank Math schema correctly reflects the product price set by PPOM?
Thank you very much for your assistance. Any help you can provide would be greatly appreciated.
Best regards,
Alex
You must be logged in to reply to this ticket.