Gifted Button
The gifted-button
block displays the counter of purchases that have already been made for a product within the list.
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
gifted-button
block to other theme block inside a product context, such as theproduct-summary.shelf
. For example:
"product-summary.shelf": {
"children": [
"product-summary-image"#OwnerListDesktopImage"",
"flex-layout.row",
"flex-layout.col",
"add-to-list-button",
+ "gifted-button",
]
}