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

237 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",
"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>"
}
},
2023-02-01 23:51:21 +00:00
"html#pix": {
"props": {
"blockClass": "pix",
"testId": "pix-price"
},
"children": ["pix"]
2023-02-01 23:51:21 +00:00
},
"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
}
},
"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", "textPlaceholder"]
}
}