challenge-vtex-io-thiago-dutra/store/blocks/product-summary/product-summary.jsonc

102 lines
2.2 KiB
Plaintext
Raw Permalink Normal View History

{
"product-summary.shelf": {
"children": [
"stack-layout#prodsum",
"product-summary-name",
"flex-layout.col#productRating",
"product-summary-space",
"product-list-price#summary",
2023-02-08 14:20:15 +00:00
"flex-layout.row#selling-price-savings"
]
},
"flex-layout.col#productRating": {
"props": {
"blockClass": "productRating"
},
"children": ["product-rating-inline"]
},
"stack-layout#prodsum": {
"children": [
"product-summary-image#shelf",
2023-02-08 14:20:15 +00:00
"vtex.product-highlights@2.x:product-highlights#collection" // Check quickview.jsonc
]
},
"product-summary-image#shelf": {
"props": {
"showBadge": false,
"aspectRatio": "1:1",
"maxHeight": 300
}
},
"vtex.product-highlights@2.x:product-highlights#collection": {
"props": {
"type": "collection"
},
"children": ["product-highlight-wrapper"]
},
"product-highlight-wrapper": {
"props": {
"blockClass": "collection"
},
"children": ["product-highlight-text"]
},
"product-highlight-text": {
"props": {
"message": "{highlightName}"
}
},
"product-list-price#summary": {
"props": {
"blockClass": "summary"
}
},
"flex-layout.row#selling-price-savings": {
"props": {
"colGap": 2,
"preserveLayoutOnMobile": true,
"preventHorizontalStretch": true,
2023-02-08 14:20:15 +00:00
"marginBottom": 4,
"blockClass": "container-price-slider"
},
"children": [
"product-selling-price#summary",
"product-price-savings#summary"
]
},
"product-installments#summary": {
"props": {
"blockClass": "summary"
}
},
"product-selling-price#summary": {
"props": {
"blockClass": "summary"
}
},
"product-price-savings#summary": {
"props": {
2023-02-08 14:20:15 +00:00
"markers": ["discount"],
"blockClass": "summary"
}
2023-02-08 14:20:15 +00:00
},
"list-context.product-list#container-products": {
"blocks": ["product-summary.shelf"],
"children": ["html#slider-layout#demo-products"]
},
"rich-text#slider-text": {
"props": {
"text": "#### Você também pode gostar:",
"textAlignment": "CENTER",
"textPosition": "CENTER",
"textColor": "#575757",
"blockClass": "slider-text"
}
}
}