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

258 lines
5.2 KiB
Plaintext

{
"store.product": {
"children": [
"html#breadcrumb",
"condition-layout.product#availability",
"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"]
},
"html#specifications-title": {
"props": {
"tag": "div",
"blockClass": "specifications-title"
},
"children": ["rich-text#specifications"]
},
"rich-text#specifications": {
"props": {
"text": "##### Product Specifications"
}
},
"html#description": {
"props": {
"tag": "div",
"blockClass": "description"
},
"children": ["product-description"]
},
"condition-layout.product#availability": {
"props": {
"conditions": [
{
"subject": "isProductAvailable"
}
],
"Then": "html#product-main",
"Else": "html#product-availability"
}
},
"html#product-main": {
"props": {
"tag": "section",
"blockClass": "product-main"
},
"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"
}
},
"html#stack": {
"props": {
"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",
"html#buy-button"
]
},
"html#pix-price": {
"props": {
"blockClass": "pix",
"testId": "pix-price"
},
"children": ["pix-component"]
},
"html#right-col": {
"props": {
"tag": "section",
"blockClass": "right-col"
},
"children": [
"html#product-name",
"product-identifier.product",
"product-rating-summary",
"flex-layout.row#selling-price",
"product-installments#m3",
"html#pix-price",
"html#sku-selector-m3",
"html#product-quantity-cart-button",
"product-assembly-options",
"product-gifts",
"availability-subscriber",
"html#shipping-simulator"
//"share#default"
]
},
"html#shipping-simulator": {
"props": {
"tag": "div",
"testId": "shipping-simulator",
"blockClass": "shipping-simulator"
},
"children": ["shipping-simulator"]
},
"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"
}
},
"html#product-name": {
"props": {
"tag": "div",
"blockClass": "product-name"
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true,
"imageHeight": 48,
"imageWidth": 48
}
},
"html#sku-selector-m3": {
"props":{
"tag": "section",
"testId": "sku-selector",
"blockClass": "sku-selector-m3"
},
"children": ["sku-selector"]
},
"html#buy-button": {
"props": {
"tag": "div",
"blockClass": "buy-button"
},
"children": ["html#add-to-cart-button"]
},
"html#product-availability": {
"props": {
"tag": "section",
"blockClass": "product-availability"
},
"children": [
"html#stack",
"html#right-col-availability"
]
},
"html#right-col-availability": {
"props": {
"tag": "section",
"blockClass": "info-availability"
},
"children": [
"html#product-name",
"product-identifier.product",
"html#availability",
"html#sku-selector-m3"
]
},
"html#availability": {
"props": {
"blockClass": "message-availability",
"tag": "div"
},
"children": ["availability-subscriber"]
},
"share#default": {
"props": {
"social": {
"Facebook": true,
"WhatsApp": true,
"Twitter": false,
"Pinterest": true
}
}
}
}