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
Google Structure Data Issues
-
radhavallabh
- Senior Contributor
- Posts: 466
- Joined: Tue Oct 27, 2020 4:09 am
- Phoenix Version: 1.1.0.6
- Has thanked: 29 times
- Been thanked: 3 times
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: Google Structure Data Issues
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.
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.
-
radhavallabh
- Senior Contributor
- Posts: 466
- Joined: Tue Oct 27, 2020 4:09 am
- Phoenix Version: 1.1.0.6
- Has thanked: 29 times
- Been thanked: 3 times
Re: Google Structure Data Issues
Issues fixed!!ecartz wrote: ↑Sat Jul 30, 2022 8:38 pm 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.
Thank you again!!
Very Warm Regds./
radhavallabh
-
raiwa
- Certified Developer
- Posts: 1641
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Has thanked: 70 times
- Been thanked: 152 times
Re: Google Structure Data Issues
I can confirm this, it should be "format_raw", but it seems it has not been addressed yet in core.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.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
lecarlb
- Contributor
- Posts: 316
- Joined: Mon Oct 26, 2020 5:26 pm
- Phoenix Version:
- Has thanked: 48 times
- Been thanked: 9 times
Re: Google Structure Data Issues
Hello,ecartz wrote: ↑Sat Jul 30, 2022 8:38 pm 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.
I changed format() to format_raw() on version 1.0.8.16 and the same warning above is displayed: invalid price format.
Thanks
-
raiwa
- Certified Developer
- Posts: 1641
- Joined: Sat Dec 21, 2019 8:08 am
- Phoenix Version: 1.1.0.6
- : Buy Me A Beverage
- Has thanked: 70 times
- Been thanked: 152 times
Re: Google Structure Data Issues
I applied this fix and it solved the warning.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
lecarlb
- Contributor
- Posts: 316
- Joined: Mon Oct 26, 2020 5:26 pm
- Phoenix Version:
- Has thanked: 48 times
- Been thanked: 9 times
Re: Google Structure Data Issues
It fixed it for some products but not the ones flagged in Google Search Console. Maybe Google needs to recrawl the sitemap.
- burt
- Core Team
- Posts: 4561
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 413 times
Re: Google Structure Data Issues
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
Of course, it does mean that a hook needs to be created but that is fairly straightforward, see viewtopic.php?p=13777#p13777