Add To Cart Button
The add-to-cart-button-list
block displays a button that allows users to add products in the Minicart from a guest page if the quantity purchased has not yet reached the limit.
Configuration
- Import the
vtex.list
app to your theme's peer dependencies in themanifest.json
file as in the following example:
"peerDependencies": {
"vtex.list": "3.x"
}
- Add the
add-to-cart-button-list
block to other theme block using the product context, such as theproduct-summary.shelf
. For example:
"product-summary.shelf": {
"children": [
"product-summary-image",
"flex-layout.row",
"flex-layout.col",
+ "add-to-cart-button-list",
"gifted-button"
]
}