[Example] Display product attributes to PLP#1110
Draft
cctina516 wants to merge 4 commits intointegrationfrom
Draft
[Example] Display product attributes to PLP#1110cctina516 wants to merge 4 commits intointegrationfrom
cctina516 wants to merge 4 commits intointegrationfrom
Conversation
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.
Ticket: https://jira.corp.adobe.com/browse/ACCS-332
This PR uses an alpha package ("@dropins/storefront-product-discovery": "3.0.0-alpha21") for the product discovery drop-in that is currently in the code review queue. This PR serves as an implementation example for two capabilities for the Product Listing Page:
ProductImageslotbuild.mjsto fetch additional product fields (e.g.,lowStock) that aren't in the default payloadTest Instructions
Part 1: Display product attributes on PLP
npm installblocks/product-list-page/product-list-page.js(line 157-163)Part 2: Extending the GraphQL fragment via
build.mjsbuild.mjs. Review the example integration inbuild.mjsnpm install. This extends theProductViewfragment in storefront-product-discovery to includelowStockblocks/product-list-page/product-list-page.js(line 165-170)Note
Please ignore files in
scripts/__dropins__as those are generated withnpm install. To fetch additional data not in the default payload, please modifybuild.mjs.Preview URL: https://plp-attributes--aem-boilerplate-commerce--hlxsites.aem.live/apparel
Test URLs:
https://plp-attributes--aem-boilerplate-commerce--hlxsites.aem.live/apparel