Hello,
Google has a rich snippet problem with our prices and somehow puts the commas wrong in the organic area. Instead of “34,90 €” it shows “349.000,00 €” in the rich snippet testing tool and in the Google search results.
I could only see it with variable products. We found a code that might be responsible for this (see private content). But after deactivating all plugins it was still there. So we think that it’s coming from Enfold.
Do you have any idea where this code is coming from or how we can fix the issue in general?
Best regards
Hey FelixB,
Thank you for the inquiry.
We cannot reproduce the issue on our end. The schema is showing the correct value or the correct format of the product price.
lowPrice 34.9000
highPrice 74.9000
Unfortunately, we are not sure where the extra zeroes came from, but the value is still valid even if the price has those extra zeroes.
Best regards,
Ismael
Hello Ismael,
thank you for the feedback. Is there any way to change the . (dot) to a , (comma)? So instead of “349.000” show it like this “349,000”?
And do you know if this code I posted is coming from your theme?
Best regards
Hi,
The schema markup comes from the shop plugin itself; it is not generated by the theme. It is probably from the plugins\woocommerce\includes\class-wc-structured-data.php file, and in the generate_product_data function. If that is correct, we should be able to use the woocommerce_structured_data_product filter to adjust the markup.
Thank you for your patience.
Best regards,
Ismael