You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this step we'll finish setting up our product page. We've learned how to stack blocks using Stack Layout, and we've also learned how to suggest similar product and better customize the SKU Selector for products with SKU images.
Use the following product URL to test this step: /3-colors-retro-stand-mixer/p.
Stack Layout
stack-layout is a type of layout that allows blocks to stack on top of others. It comes in handy when you want to a badge on top of an image or product. It's also useful when placing rich text onto images (using a rich-text and an image).
(In the image, a shelf is stacked on top a carrossel 👆)
In this step, we'll use stack-layout to place the brand on top of product images.
Activity
Develop the product page by adding the step below to product.jsonc:
Consult the documentation to change the way in which product-brand is displayed. You should make the logo appear with a height of 30 and include the displayMode: "logo" prop.
Review the documentation to make the sku-selector do the following:
start without any selected SKU;
show the name by SKU variation;
display an error message if no SKU variation was selected.
ℹ️ Remember to read through the Stack Layout documentation if you have any questions during the activity.
ℹ️ Remember to use the /3-colors-retro-stand-mixer/p product to test this step.
If you're still unsure as to how to send your answers, click here.
The text was updated successfully, but these errors were encountered:
✅ Code compilation
✅ Define related products shelf
✅ Use and define a stack-layout on the left column
✅ Use product images and product brand within the stack layout
✅ Define correct props on product-brand
❌ You didn't define the props correctly on sku-selector
✅ Code compilation
✅ Define related products shelf
✅ Use and define a stack-layout on the left column
✅ Use product images and product brand within the stack layout
✅ Define correct props on product-brand
✅ Define correct props on sku-selector
Finishing your pdp
✨ Branch: pdp3
Introduction
In this step we'll finish setting up our product page. We've learned how to stack blocks using Stack Layout, and we've also learned how to suggest similar product and better customize the SKU Selector for products with SKU images.
Use the following product URL to test this step:
/3-colors-retro-stand-mixer/p
.Stack Layout
stack-layout
is a type of layout that allows blocks to stack on top of others. It comes in handy when you want to a badge on top of an image or product. It's also useful when placing rich text onto images (using arich-text
and animage
).(In the image, a shelf is stacked on top a carrossel 👆)
In this step, we'll use
stack-layout
to place the brand on top of product images.Activity
Develop the product page by adding the step below to
product.jsonc
:shelf.relatedProducts
under the product's main line/3-colors-retro-stand-mixer/p
product.product-images
with astack-layout
declaration;stack-layout
and setproduct-images
andproduct-brand
as children;Consult the documentation to change the way in which
product-brand
is displayed. You should make the logo appear with a height of 30 and include thedisplayMode: "logo"
prop.Review the documentation to make the
sku-selector
do the following:ℹ️ Remember to read through the Stack Layout documentation if you have any questions during the activity.
ℹ️ Remember to use the
/3-colors-retro-stand-mixer/p
product to test this step.If you're still unsure as to how to send your answers, click here.
The text was updated successfully, but these errors were encountered: