Google Search Console critical error – missing ‘price’ field
-
I am using FOX plugin, and Google Search Console reports critical problems after Woocommerce 9.5.1 update – Missing ‘price’ field (in offers.priceSpecification). Everything was fine until this update.
WooCommerce changelog says:
= 9.5.0 2024-12-16
Fix – Fix “missing ‘price’ property in ‘offers’” error in Google Search Console
…
But this fix broke something when site has FOX currency switcher plugin installed. When deactivated, GSC testing tool says everything is fine and structured data are valid.Correct product structured data looks like this:
"offers":[{"@type":"Offer","priceSpecification":[{"@type":"UnitPriceSpecification","price":"75",...
But with FOX currency switcher active, it looks like this:
"offers":[{"@type":"Offer","priceSpecification":{"0":{"@type":"UnitPriceSpecification","price":"75",...
Somehow priceSpecification slightly changes from an array to zero-indexed object (or what). And Google Search Console reports critical error.
- You must be logged in to reply to this topic.