Page 1 of 1
Google Structure Data Issues
Posted: Sat Jul 30, 2022 4:17 pm
by radhavallabh
Hi dear;
In Google Site Search console I get below errors for my product page;
Can you please guide me on how to fix these structure data errors-
Warning
Missing field "priceValidUntil" (in "offers")
Warning
Missing field "aggregateRating"
Warning
Invalid price format in property "price" (in "offers")
Not Started
1
Warning
Missing field "review"
Warning
Missing field "brand"
Warning
Missing field "sku"
Warning
Missing field "url" (in "offers")
Please help me fix this;
Thank you in advance;
Very Warm Regds./
radhavallabh
Re: Google Structure Data Issues
Posted: Sat Jul 30, 2022 8:38 pm
by ecartz
There are no errors. Those are warnings.
There are other threads about this. See here for example:
viewtopic.php?p=5318#p5318
The only serious warning that I see is the one about price. It's possible that
https://github.com/CE-PhoenixCart/Phoen ... ma.php#L56 should say format_raw rather than format.
Re: Google Structure Data Issues
Posted: Sun Jul 31, 2022 5:54 am
by radhavallabh
Issues fixed!!

Thank you again!!
Very Warm Regds./
radhavallabh
Re: Google Structure Data Issues
Posted: Tue Oct 11, 2022 12:49 pm
by raiwa
I can confirm this, it should be "format_raw", but it seems it has not been addressed yet in core.
Re: Google Structure Data Issues
Posted: Wed May 10, 2023 7:58 am
by lecarlb
Hello,
I changed
format() to
format_raw() on version 1.0.8.16 and the same warning above is displayed: invalid price format.
Thanks
Re: Google Structure Data Issues
Posted: Wed May 10, 2023 8:02 am
by raiwa
I applied this fix and it solved the warning.
Re: Google Structure Data Issues
Posted: Wed May 10, 2023 10:22 am
by lecarlb
raiwa wrote: ↑Wed May 10, 2023 8:02 am
I applied this fix and it solved the warning.
It fixed it for some products but not the ones flagged in Google Search Console. Maybe Google needs to recrawl the sitemap.
Re: Google Structure Data Issues
Posted: Tue Oct 24, 2023 11:03 pm
by burt
This
update (coming in 1.0.8.21) will be of interest to you, as this update (which you can add into any recentish version of Phoenix, just two lines of code in two files) will allow the product schema header tag module and the opengraph header tag module to be amended via HOOK.
Of course, it does mean that a hook needs to be created but that is fairly straightforward, see
viewtopic.php?p=13777#p13777