Skip to content

feat(storefront): TRAC-1023 Display product attributes on the PDP - #2746

Merged
jordanarldt merged 3 commits into
masterfrom
jordanarldt/ltrac-1056-w1-cornerstone-attributes-on-pdp-inline-tabs-settings-i18n
Nov 3, 2026
Merged

jordanarldt merged 3 commits into
masterfrom
jordanarldt/ltrac-1056-w1-cornerstone-attributes-on-pdp-inline-tabs-settings-i18n

Conversation

@jordanarldt

@jordanarldt jordanarldt commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • New show_attributes_tabs setting (default off) moves attributes into the Additional Information tab, alongside custom fields when show_custom_fields_tabs is on. The tab keeps its pdp-custom-fields-tab-label setting.
  • Fixes the existing tab: an empty label now falls back to "Additional Information" instead of an untitled tab, and the tab opens when it is the first one.
  • Values are HTML-escaped. Custom fields output raw HTML, but attribute values are plain text.
  • Products without attributes render nothing extra.
  • Only English strings are added; the translation pipeline fills in the other locales.

Requirements

  • CHANGELOG.md entry added (required for code changes only)

Tickets / Documentation

  • LTRAC-1056

Testing

Screenshot 2026-10-30 at 12 07 50 PM
  • npm test passes.
  • Screenshot above is from a local stencil-cli run.

🤖 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-view partial) as name/value rows matching custom fields, listed before custom fields when both are shown.

Merchants get a new show_attributes_tabs theme 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). New components/products/attributes partial 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.

@jordanarldt
jordanarldt force-pushed the jordanarldt/ltrac-1056-w1-cornerstone-attributes-on-pdp-inline-tabs-settings-i18n branch from c47c812 to bc3b852 Compare October 30, 2026 17:07
@jordanarldt jordanarldt changed the title feat(storefront): LTRAC-1056 Display product attributes on the PDP feat(storefront): TRAC-1023 Display product attributes on the PDP Oct 30, 2026
@jordanarldt
jordanarldt marked this pull request as ready for review October 30, 2026 20:59
@jordanarldt
jordanarldt requested a review from a team as a code owner October 30, 2026 21:00

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

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

@jordanarldt
jordanarldt marked this pull request as draft October 30, 2026 22:09

@jorgemoya jorgemoya left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but I would look into the Copilot find

@Tiggerito

Copy link
Copy Markdown
Contributor

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>
@jordanarldt
jordanarldt marked this pull request as ready for review November 2, 2026 19:04
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>
@jordanarldt

Copy link
Copy Markdown
Contributor Author

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.

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

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.

This sounds like it would be a perfect use-case for the feature! So definitely stay tuned :)

@jordanarldt
jordanarldt merged commit fd5b945 into master Nov 3, 2026
2 checks passed
@jordanarldt
jordanarldt deleted the jordanarldt/ltrac-1056-w1-cornerstone-attributes-on-pdp-inline-tabs-settings-i18n branch November 3, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants