fix product structured data on pdp#1302
Open
JimmyHoenderdaal wants to merge 3 commits into
Open
Conversation
Jade-GG
requested changes
Jun 2, 2026
Jade-GG
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes invalid structured data on product detail pages by making the core Product and Offer microdata more complete and consistent with Google’s product structured data guidelines.
The product microdata now includes an explicit product name and cleaned plain-text description near the Product item. The visible PDP title and description no longer carry duplicate itemprop attributes, keeping the structured data in one predictable place.
Offer data now includes itemCondition, and priceValidUntil is rendered as a date-only value when present.
Breadcrumb structured data was also adjusted so linked breadcrumb items expose an explicit item URL, fixing the missing item field in Google validation.
Review microdata stays handled by the reviews package, as before.
Tests
Checked rendered Product and Offer microdata on rapidez.test/marco-lightweight-active-hoodie.html
Checked rendered breadcrumb structured data on rapidez.test/marco-lightweight-active-hoodie.html
Checked rendered review/product separation by keeping rapidez-reviews microdata include intact
Ran PHP syntax checks
Ran git diff --check
Reference
RAP-1899