Google Structure Data Issues

Open to all! Ask other shopowners for help.
Post Reply
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

Google Structure Data Issues

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
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

Post 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.
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

Post by radhavallabh »

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.
Issues fixed!! :)
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
Has thanked: 70 times
Been thanked: 152 times

Re: Google Structure Data Issues

Post by raiwa »

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 can confirm this, it should be "format_raw", but it seems it has not been addressed yet in core.
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
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

Post by lecarlb »

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.
Hello,

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
Has thanked: 70 times
Been thanked: 152 times

Re: Google Structure Data Issues

Post by raiwa »

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
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

Post 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.
User avatar
burt
Core Team
Posts: 4561
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 422 times

Re: Google Structure Data Issues

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply