challenge-vtex-io-sabrina-m.../store/blocks/pdp/product.jsonc

240 lines
4.9 KiB
Plaintext
Raw Normal View History

{
"store.product": {
"children": [
2023-01-20 14:59:33 +00:00
"html#breadcrumb",
"condition-layout.product#availability",
2023-02-02 23:03:37 +00:00
"html#description",
"html#specifications-title",
"product-specification-group#table",
"shelf.relatedProducts",
"product-questions-and-answers"
]
},
"html#breadcrumb": {
"props": {
"tag": "section",
"testId": "breadcrumbs",
"blockClass": "pdp-breadcrumb"
},
"children": ["breadcrumb"]
},
2023-02-02 23:03:37 +00:00
"html#specifications-title": {
"props": {
"tag": "div",
"blockClass": "specifications-title"
},
"children": ["rich-text#specifications"]
},
"rich-text#specifications": {
"props": {
"text": "##### Product Specifications"
}
},
2023-02-02 23:03:37 +00:00
"html#description": {
"props": {
2023-02-02 23:03:37 +00:00
"tag": "div",
"blockClass": "description"
},
"children": ["product-description"]
},
"condition-layout.product#availability": {
"props": {
"conditions": [
{
"subject": "isProductAvailable"
}
],
2023-02-02 23:03:37 +00:00
"Then": "html#product-main",
"Else": "html#product-availability"
}
},
2023-02-02 23:03:37 +00:00
"html#product-main": {
"props": {
2023-02-02 23:03:37 +00:00
"tag": "section",
"blockClass": "product-main"
},
2023-02-02 23:03:37 +00:00
"children": ["html#stack", "html#right-col"]
},
"stack-layout": {
"props": {
"blockClass": "product"
},
"children": [
"html#product-image",
"product-bookmark",
"product-specification-badges"
]
},
"product-specification-badges": {
"props": {
"specificationGroupName": "Group",
"specificationName": "On Sale",
"visibleWhen": "True",
"displayValue": "SPECIFICATION_NAME"
}
},
2023-02-02 23:03:37 +00:00
"html#stack": {
"props": {
2023-02-02 23:03:37 +00:00
"tag": "section",
"blockClass": "stack"
},
"children": ["stack-layout"]
},
"html#product-image": {
"props":{
"tag": "div",
"testId": "product-images",
"blockClass": "product-image"
},
"children": ["product-images"]
},
"product-images": {
"props": {
"aspectRatio": "1:1",
"displayThumbnailsArrows": false,
"thumbnailsOrientation": "horizontal",
"showNavigationArrows": false,
"showPaginationDots": false,
"thumbnailAspectRatio": "1:1"
}
},
"html#product-quantity": {
"props": {
"tag": "div",
"testId": "product-quantity",
"blockClass": "product-quantity"
},
"children": ["product-quantity"]
},
"html#product-quantity-cart-button": {
"props": {
"tag": "div",
"blockClass": "product-quantity-cart-button"
},
"children": [
"html#product-quantity",
2023-02-02 23:03:37 +00:00
"html#buy-button"
]
},
2023-02-02 23:03:37 +00:00
"html#right-col": {
"props": {
2023-02-02 23:03:37 +00:00
"tag": "section",
"blockClass": "right-col"
},
"children": [
2023-02-02 23:03:37 +00:00
"html#product-name",
"product-identifier.product",
"product-rating-summary",
"flex-layout.row#selling-price",
"product-installments#m3",
2023-02-01 17:50:01 +00:00
"html#sku-selector-m3",
"html#product-quantity-cart-button",
"product-assembly-options",
"product-gifts",
"availability-subscriber",
"shipping-simulator",
"share#default"
]
},
"product-installments#m3": {
"props": {
"markers": ["highlight"],
"blockClass": "m3-custom-installments",
"message": "<highlight>{installmentsNumber} x</highlight> de <highlight>{installmentValue}</highlight> sem juros",
"installmentsCriteria": "max-quantity-without-interest"
}
},
2023-02-02 23:03:37 +00:00
"html#product-name": {
"props": {
2023-02-02 23:03:37 +00:00
"tag": "div",
"blockClass": "product-name"
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
2023-02-01 17:50:01 +00:00
"showValueNameForImageVariation": true,
"imageHeight": 48,
"imageWidth": 48
}
},
2023-02-01 17:50:01 +00:00
"html#sku-selector-m3": {
"props":{
"tag": "section",
"testId": "sku-selector",
"blockClass": "sku-selector-m3"
},
"children": ["sku-selector"]
},
2023-02-02 23:03:37 +00:00
"html#buy-button": {
"props": {
2023-02-02 23:03:37 +00:00
"tag": "div",
"blockClass": "buy-button"
},
"children": ["html#add-to-cart-button"]
},
2023-02-02 23:03:37 +00:00
"html#product-availability": {
"props": {
2023-02-02 23:03:37 +00:00
"tag": "div",
"blockClass": "product-availability"
},
"children": [
2023-02-02 23:03:37 +00:00
"html#stack",
"html#right-col-availability"
]
},
2023-02-02 23:03:37 +00:00
"html#right-col-availability": {
"props": {
2023-02-02 23:03:37 +00:00
"blockClass": "info-availability",
"tag": "div"
},
"children": [
2023-02-02 23:03:37 +00:00
"html#product-name",
"product-identifier.product",
2023-02-01 17:50:01 +00:00
"html#sku-selector-m3",
2023-02-02 23:03:37 +00:00
"html#availability"
]
},
2023-02-02 23:03:37 +00:00
"html#availability": {
"props": {
2023-02-02 23:03:37 +00:00
"blockClass": "message-availability",
"tag": "div"
},
"children": ["availability-subscriber"]
},
"share#default": {
"props": {
"social": {
"Facebook": true,
"WhatsApp": true,
"Twitter": false,
"Pinterest": true
}
}
}
}