Repository navigation
feat(storefront): TRAC-1023 Display product attributes on the PDP - #2746
Conversation
c47c812 to
bc3b852
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bc3b852. Configure here.
jorgemoya
left a comment
There was a problem hiding this comment.
Approved but I would look into the Copilot find
|
Probably a dumb question. How are product.attributes populated. Where does the data come from? I've checked a bunch of product types with variants, modifier options, and a default variant, and they don't populate it. I'm interested because I set up structured data including attributes like material, color, pattern, size, etc., and would like to know if this is a new source for that information. |
… tab Attributes and custom fields now share the Additional Information tab instead of each getting their own. show_attributes_tabs and show_custom_fields_tabs still decide which of the two go in the tab; the rest stay inline. The separate pdp-attributes-tab-label setting is removed, and the tab label field is no longer tied to the custom fields checkbox, so it can be set when only attributes are in the tab. An empty tab label now falls back to page_builder.pdp-custom-fields-tab-label, so the tab is never untitled, and the tab is active when it is the first one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tab label field now uses i18n.ProductAdditionalInformationTabLabel, and stencil bundle fails on translation keys that schema.json no longer references. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Tiggerito Definitely not a dumb question! Product attributes are a feature that we are working on that will make products more extensible with custom attributes of different types, that can be saved across multiple products. This PR is just laying the Stencil groundwork for this.
This sounds like it would be a perfect use-case for the feature! So definitely stay tuned :) |

What?
Shows product attributes on the PDP and in quick view, using the same label/value rows as custom fields. Attributes are listed before custom fields.
show_attributes_tabssetting (default off) moves attributes into the Additional Information tab, alongside custom fields whenshow_custom_fields_tabsis on. The tab keeps itspdp-custom-fields-tab-labelsetting.Requirements
Tickets / Documentation
Testing
npm testpasses.🤖 Generated with Claude Code
Note
Low Risk
Presentation-only PDP/tab template and theme-setting changes with no checkout, auth, or data-handling impact.
Overview
Product attributes now render on the PDP (and quick view, via the shared
product-viewpartial) as name/value rows matching custom fields, listed before custom fields when both are shown.Merchants get a new
show_attributes_tabstheme setting (default off). When off, attributes stay in the product info area; when on, they move into the Additional Information tab together with tabbed custom fields (show_custom_fields_tabs).The PDP tabs logic is refactored so that tab appears when either attributes-in-tabs or custom-fields-in-tabs applies, uses a resolved tab label (theme setting or “Additional Information” fallback when empty), and is active by default when description/warranty tabs are absent.
Theme editor copy is updated (
ProductAttributesInTabs, renamed Additional Information tab label). Newcomponents/products/attributespartial outputs escaped attribute values (unlike custom fields’ raw HTML).Reviewed by Cursor Bugbot for commit 6a4cb56. Bugbot is set up for automated code reviews on this repo. Configure here.