challenge-vtex-io-saulo-klein/store/blocks/pdp/product.jsonc

368 lines
7.6 KiB
Plaintext
Raw Normal View History

{
"store.product": {
"children": [
2023-01-20 14:59:33 +00:00
"html#breadcrumb",
//"example-component",
"condition-layout.product#availability",
"tab-layout",
2023-02-09 10:47:26 +00:00
//"flex-layout.row#specifications-title",
//"product-specification-group#table",
2023-02-10 15:23:49 +00:00
"flex-layout.row#shelf-row"
2023-02-09 10:47:26 +00:00
//"product-questions-and-answers"
]
},
2023-02-09 10:47:26 +00:00
2023-02-10 15:23:49 +00:00
"flex-layout.row#shelf-row": {
"children": ["flex-layout.col#shelf-col"],
"props": {
"blockClass": "shelf-product-row"
}
},
"flex-layout.col#shelf-col": {
"children": ["rich-text#shelf-related", "list-context.product-list"],
"props": {
"blockClass": "shelf-product-col"
}
},
"rich-text#shelf-related": {
"props": {
"text": "### Você também pode gostar:",
"blockClass": "shelf-title"
}
},
"list-context.product-list": {
"children": ["slider-layout#shelf-prod"],
"blocks": ["product-summary.shelf"]
},
"slider-layout#shelf-prod": {
"props": {
"itemsPerPage": {
"(min-width:1025px)": 4,
"(min-width:768px)": 3,
"(max-width:767px)": 2
},
"infinite": true,
"showNavigationArrows": "always",
"showPaginationDots": "always",
"blockClass": "slide-shelf",
"colGap": 16
}
},
"html#breadcrumb": {
"props": {
"tag": "section",
"testId": "breadcrumbs",
"blockClass": "pdp-breadcrumb"
},
"children": ["breadcrumb"]
},
"flex-layout.row#specifications-title": {
"children": ["rich-text#specifications"]
},
"rich-text#specifications": {
"props": {
"text": "##### Product Specifications"
}
},
"condition-layout.product#availability": {
"props": {
"conditions": [
{
"subject": "isProductAvailable"
}
],
"Then": "flex-layout.row#product-main",
"Else": "flex-layout.row#product-availability"
}
},
"flex-layout.row#product-main": {
"props": {
"blockClass": "productPanel",
"colGap": 7,
"rowGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7,
"paddingBottom": 7
},
"children": ["flex-layout.col#stack", "flex-layout.col#right-col"]
},
"stack-layout": {
"props": {
"blockClass": "product"
},
"children": [
"flex-layout.row#product-image",
"product-bookmark",
"product-specification-badges"
]
},
"product-specification-badges": {
"props": {
"specificationGroupName": "Group",
"specificationName": "On Sale",
"visibleWhen": "True",
"displayValue": "SPECIFICATION_NAME"
}
},
"flex-layout.col#stack": {
"children": ["stack-layout"],
"props": {
"width": "50%",
"rowGap": 0,
"blockClass": "productShowcase"
}
},
"flex-layout.row#product-image": {
"children": ["product-images"]
},
"product-images": {
"props": {
"aspectRatio": {
"desktop": "auto"
},
"thumbnailsOrientation": "horizontal",
"displayThumbnailsArrows": true,
"showNavigationArrows": false,
"showPaginationDots": false,
"contentType": "images"
}
},
2023-02-03 00:37:40 +00:00
"product-installments": {
"props": {
"blockClass": "sellingInfo"
}
},
"flex-layout.row#selling-prices": {
"props": {
"blockClass": "sellingPrice"
},
"children": ["product-selling-price"]
},
"flex-layout.col#right-col": {
"props": {
"blockClass": "rightCol",
"preventVerticalStretch": true,
"rowGap": 0
},
"children": [
"flex-layout.row#product-name",
2023-02-09 10:47:26 +00:00
"product-identifier.product",
//"availability-subscriber",
//"product-assembly-options",
"product-rating-summary",
//"flex-layout.row#list-price-savings",
2023-02-03 00:37:40 +00:00
"flex-layout.row#selling-prices",
"product-installments",
2023-02-03 00:37:40 +00:00
"pix-component",
//"product-separator",
"sku-selector",
2023-02-03 00:37:40 +00:00
//"product-quantity",
2023-02-09 10:47:26 +00:00
//"product-gifts",
"flex-layout.row#buy-button",
"shipping-simulator",
"placeholder-component"
//"share#default"
]
},
"flex-layout.row#product-name": {
"props": {
2023-02-06 23:47:29 +00:00
"marginBottom": 3,
"blockClass": "productName"
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true,
"hideImpossibleCombinations": false
}
},
2023-02-03 00:37:40 +00:00
"product-quantity": {
"props": {
"size": "large",
"showLabel": false
}
},
"flex-layout.row#buy-button": {
"props": {
"marginTop": 4,
2023-02-03 00:37:40 +00:00
"marginBottom": 7,
"blockClass": "quantityAndBuy"
},
2023-02-03 00:37:40 +00:00
"children": ["product-quantity", "add-to-cart-button"]
},
2023-02-06 23:47:29 +00:00
"add-to-cart-button": {
"props": {
"blockClass": "addToCartButton",
"text": "ADICIONAR À SACOLA"
}
},
"flex-layout.row#product-availability": {
"props": {
"blockClass": "productPanel"
},
"children": [
"flex-layout.col#stack",
"flex-layout.col#right-col-availability"
]
},
"flex-layout.col#right-col-availability": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0,
"blockClass": "info-availability"
},
"children": [
"flex-layout.row#product-name",
2023-02-09 10:47:26 +00:00
"product-identifier.product",
"flex-layout.row#availability",
2023-02-09 10:47:26 +00:00
"sku-selector"
]
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
},
"children": ["availability-subscriber"]
},
// "share#default": {
// "props": {
// "social": {
// "Facebook": true,
// "WhatsApp": true,
// "Twitter": false,
// "Pinterest": true
// }
// }
// }
"product-images#2": {
"props": {
"blockClass": "productImage2",
"aspectRatio": {
"desktop": "auto"
},
"displayMode": "first-image"
}
},
"tab-layout": {
"props": {
"blockClass": "tabLayout"
},
"children": ["tab-list", "tab-content"]
},
"tab-list": {
"children": [
"tab-list.item#1",
"tab-list.item#2",
"tab-list.item#3",
"tab-list.item#4",
"tab-list.item#5"
]
},
"tab-content": {
"children": [
"tab-content.item#1",
"tab-content.item#2",
"tab-content.item#3",
"tab-content.item#4",
"tab-content.item#5"
]
},
"tab-list.item#1": {
"props": {
"tabId": "Desc1",
"label": "Descrição",
"defaultActiveTab": true
}
},
"tab-list.item#2": {
"props": {
"tabId": "Desc2",
"label": "Descrição"
}
},
"tab-list.item#3": {
"props": {
"tabId": "Desc3",
"label": "Descrição"
}
},
"tab-list.item#4": {
"props": {
"tabId": "Desc4",
"label": "Descrição"
}
},
"tab-list.item#5": {
"props": {
"tabId": "Desc5",
"label": "Descrição"
}
},
"product-description": {
"props": {
"collapseContent": false
}
},
"tab-content.item#1": {
"children": ["product-images#2", "product-description"],
"props": {
"tabId": "Desc1"
}
},
"tab-content.item#2": {
"children": ["product-images#2", "product-description"],
"props": {
"tabId": "Desc2"
}
},
"tab-content.item#3": {
"children": ["product-images#2", "product-description"],
"props": {
"tabId": "Desc3"
}
},
"tab-content.item#4": {
"children": ["product-images#2", "product-description"],
"props": {
"tabId": "Desc4"
}
},
"tab-content.item#5": {
"children": ["product-images#2", "product-description"],
"props": {
"tabId": "Desc5"
}
}
}