Once you added the product-list to the minicart-product-list, no further actions are required, as the block works with a default implementation behind the scenes. In other words, the Product List component is ready to be rendered.
Advanced Configuration
Currently, the product-list default implementation is as follows:
By default implementation we mean that whenever you declare the product-list block in your store you're actually telling your theme to render the json above behind the scenes.
Therefore, in order to customize the product-list configuration, you can simply copy the code above, paste it and then change it as you wish.
Block name
Description
product-list
Top level block that must be declared in the minicart-product-list block to render a default detailed list with all products added to the shopping cart.
product-list-content-desktop
Creates the product list layout for desktop devices.
product-list-content-mobile
Creates the product list layout for mobile devices.
message
Renders a message text about the product availability.
product-name
Renders the product names.
product-reference
Renders the product reference information.
price
Renders the product prices.
unit-price
Renders the price for each product unit added to the cart.
product-list-image
Renders the product images.
product-brand
Renders the product brands.
product-variations
Renders the product variations.
product-quantity-label
Renders a product label that displays a sua quantidade de unidades added to the cart.
quantity-selector
Renders a selector that allows users to add a chosen number of a product in their cart.
remove-button
Renders a button that allows users to remove a product from the list.
product-list props
Prop name
Type
Description
Default value
itemCountMode
enum
Quantity badge behavior when displaying the number of total items added in Minicart. Possible values are: total (quantity badge displays the number of items added to the cart), distinct (quantity badge only displays the number of different products added to the cart), totalAvailable (quantity badge displays the number of available items added to the cart), and distinctAvailable (quantity badge only displays the number of different and available products added to the cart).
distinct
lazyRenderHeight
number
The height (px) of each item's loading element.
100
lazyRenderOffset
number
The distance (px) to the bottom of the viewport that each item should be at the moment of it's render.
300
message props
Prop name
Type
Description
Default value
layout
enum
Availability message position on the list. Possible values are: rows (displaying the message in the product row) or cols (displaying in the product column).
cols
price props
Prop name
Type
Description
Default value
textAlign
string
Product price position on the list.
left
showListPrice
boolean
Whether the product prices should be displayed on the list (true) or not (false).
true
unit-price props
Prop name
Type
Description
Default value
textAlign
string
Product unit prices position on the list.
left
unitPriceType
enum
Defines whether the price type should be displayed. Possible values are: sellingPrice or price
price
unitPriceDisplay
enum
Defines when the unit price should be displayed. Possible values are: always (unit price is always displayed) or default (unit price is only displayed when the number of products is greater than one).
default
displayUnitListPrice
enum
Defines whether the product list price should be displayed or not. Possible values are: showWhenDifferent (list price is displayed when it is different from the regular price) ornotShow (list price is never displayed).
notShow
product-list-image props
Prop name
Type
Description
Default value
width
number
Product image width (in pixels).
96
product-reference props
Prop name
Type
Description
Default value
identifierLabel
string
Text label to be displayed to the left of the product reference value.
undefined
identifierOption
enum
Desired product reference data i.e. product identifier to be displayed. Possible options are: ProductId, ProductSkuItemId, ProductReferenceId, and ProductSkuReferenceId.
ProductReferenceId
remove-button props
Prop name
Type
Description
Default value
variation
enum
Variation for the button visual proeminence based on the VTEX Styleguide. Possible values are: primary, secondary, tertiary, inverted-tertiary, danger and danger-tertiary.
danger
displayMode
enum
Defines how the remove button should be displayed. Possible values are: icon-button (to render an icon button) and text-button (to render a text message button). If you desire to create a modal in the remove button, use the icon-button value.
icon-button
quantity-selector props
Prop name
Type
Description
Default value
mode
enum
Mode of the quantity selector input. Possible values are default and stepper. On the default mode, the quantity stepper will initially render a dropdown component, and after the quantity exceeds 10, it will switch to an input. In the stepper mode it will always render a numeric stepper component.
default
quantitySelectorStep
enum
Defines how the number of products that have unitMultiplier will works. Possible values are: singleUnit (the quantity will be not affected with the unitMultiplier) and unitMultiplier (the quantity will be affected with the unitMultiplier).