-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product page #11
Comments
Oopsie, something went wrong 😿Results✅✅✅✅✅✅✅❌✅ Tests✅ Getting the file Try again 😁 |
4 similar comments
Oopsie, something went wrong 😿Results✅✅✅✅✅✅✅❌✅ Tests✅ Getting the file Try again 😁 |
Oopsie, something went wrong 😿Results✅✅✅✅✅✅✅❌✅ Tests✅ Getting the file Try again 😁 |
Oopsie, something went wrong 😿Results✅✅✅✅✅✅✅❌✅ Tests✅ Getting the file Try again 😁 |
Oopsie, something went wrong 😿Results✅✅✅✅✅✅✅❌✅ Tests✅ Getting the file Try again 😁 |
You did great! 😁Results✅✅✅✅✅✅✅✅✅ Tests✅ Getting the file |
You have successfully completed this step!Go to the next step! |
Product page
✨ Branch: pdp
Introduction
Once the store's homepage is done, we can start working on a new store template: the product page. Product pages are probably the templates with the most blocks, which makes them extremely flexible and customizable.
MVP
Let's build a minimal product page, with only the bare essentials:
Product blocks
Most product blocks, unlike content blocks, are inserted into a certain context, making them a little bit "plug-n-play": placing
product-images
on the product page will automatically lead to images being rendered on that page, the same being valid for price and name.This doesn't mean that these blocks are less customizable, quite the opposite actually, as we'll soon see.
Activity
Build a product page using the following blocks in
product.jsonc
and declare it in thestore/blocks
folder:product-images
,product-price
,product-name
andbuy-button
. We expect the structure to contain the following:A line in
store.product
;That line should have two columns;
The left column must contain a
product-images
;The right column must contain the
product-name
,product-price
andbuy-button
;In addition, we want:
verticalAlign
andpreventVerticalStretch
props in the Flex Layout Column documentation)product-price
to show the total savings and list price (showSavings
andshowListPrice
)ℹ️ Remember to access the
product-images
,product-price
,product-name
ebuy-button
documentation in case you have any questions during your activity.🚫 Are you lost?
Is there any problem with this step? What about sending us a feedback? 🙏
Submit feedback
If you're still unsure as to how to send your answers, click here.
The text was updated successfully, but these errors were encountered: