challenge-vtex-io-amanda-al.../store/blocks/pdp/product.jsonc

244 lines
5.0 KiB
Plaintext

{
"store.product": {
"children": [
"html#breadcrumb",
"condition-layout.product#availability",
"html#tab-layout",
"html#list-context.product-list#prateleira",
"product-questions-and-answers"
]
},
"html#breadcrumb": {
"props": {
"tag": "section",
"testId": "breadcrumbs",
"blockClass": "pdp-breadcrumb"
},
"children": ["breadcrumb"]
},
"condition-layout.product#availability": {
"props": {
"conditions": [
{
"subject": "isProductAvailable"
}
],
"Then": "html#product-main",
"Else": "html#product-availability"
}
},
"html#product-main": {
"props": {
"blockClass": "product-main"
},
"children": ["html#stack", "html#right-col"]
},
"stack-layout": {
"props": {
"blockClass": "product"
},
"children": [
"html#product-images",
"product-bookmark",
"product-specification-badges"
]
},
"product-specification-badges": {
"props": {
"specificationGroupName": "Group",
"specificationName": "On Sale",
"visibleWhen": "True",
"displayValue": "SPECIFICATION_NAME"
}
},
"html#stack": {
"props": {
"blockClass": "stack-layout"
},
"children": ["stack-layout"]
},
"html#product-images": {
"props": {
"blockClass": "product-images",
"testId": "product-images"
},
"children": ["product-images"]
},
"product-images": {
"props": {
"thumbnailsOrientation": "horizontal",
"aspectRatio": {
"desktop": "auto",
"phone": "auto"
},
"showNavigationArrows": false,
"showPaginationDots": false,
"thumbnailMaxHeight": 90
}
},
"html#right-col": {
"props": {
"blockClass": "right-col"
},
"children": [
"html#product-name",
"html#product-identifier",
"html#product-selling-price",
"html#product-installments",
"html#pix",
"html#sku-selector",
"html#buy-button",
"html#shipping-simulator"
]
},
"html#product-name": {
"props": {
"testId": "product-name",
"marginBottom": 3
},
"children": ["vtex.store-components:product-name"]
},
"html#product-identifier": {
"props": {
"testId": "product-code"
},
"children": ["product-identifier.product"]
},
"html#product-selling-price": {
"props": {
"testId": "product-price"
},
"children": ["product-selling-price"]
},
"product-selling-price": {
"props": {
"blockClass": "price-total"
}
},
"html#product-installments": {
"props": {
"testId": "product-installments"
},
"children": ["product-installments"]
},
"product-installments": {
"props": {
"markers": ["discount"],
"blockClass": "custom-installments",
"message": "{installmentsNumber} x <discount>de</discount> {installmentValue} <discount>sem juros</discount>"
}
},
"html#pix": {
"props": {
"blockClass": "pix",
"testId": "pix-price"
},
"children": ["pix"]
},
"html#sku-selector": {
"props": {
"blockClass": "sku-selector",
"testId": "sku-selector"
},
"children": ["sku-selector"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true
}
},
"html#buy-button": {
"props": {
"blockClass": "container-quantity-button"
},
"children": ["html#product-quantity", "html#add-to-cart-button"]
},
"html#product-quantity": {
"props": {
"blockClass": "product-quantity",
"testId": "product-quantity"
},
"children": ["product-quantity"]
},
"html#add-to-cart-button": {
"props": {
"blockClass": "cart-button",
"testId": "add-to-cart-button"
},
"children": ["add-to-cart-button"]
},
"product-quantity": {
"props": {
"width": 128
}
},
"add-to-cart-button": {
"props": {
"blockClass": "add-to-cart-button",
"text": "ADICIONAR À SACOLA"
}
},
"html#product-availability": {
"props": {
"blockClass": "product-main",
"colGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7
},
"children": ["html#stack", "html#right-col-availability"]
},
"html#right-col-availability": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0,
"blockClass": "info-availability"
},
"children": [
"html#product-name",
"html#product-identifier",
"flex-layout.row#availability",
"html#sku-selector"
]
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
},
"children": ["availability-subscriber"]
},
"availability-subscriber": {
"props": {
"blockClass": "message-availability"
}
},
"html#shipping-simulator": {
"props": {
"testId": "shipping-simulator",
"blockClass": "shipping-simulator"
},
"children": ["shipping-simulator"]
}
}