challenge-vtex-io-samuelcon.../store/blocks/pdp/product.jsonc

486 lines
9.5 KiB
Plaintext

{
"store.product": {
"children": [
"html#breadcrumb",
"condition-layout.product#availability",
"html#product-description",
"flex-layout.row#specifications-title",
// "product-specification-group#table",
"html#slider",
"product-questions-and-answers",
"newsletter"
]
},
"list-context.product-list#demo1": {
"blocks": [
"product-summary.shelf#demo1"
],
"children": [
"slider-layout#demo-products"
]
},
"product-summary.shelf#demo1": {
"children": [
"html#prateleira"
]
},
"html#prateleira": {
"props": {
"blockClass": "prate",
"testId": "vtex-product-summary"
},
"children": [
"product-summary-image",
"product-summary-name",
"product-list-price",
"product-selling-price",
"product-summary-description"
// "product-summary-price",
]
},
"product-summary-image": {
"props": {
"aspectRatio": {
"desktop": "1:1"
}
}
},
"slider-layout#demo-products": {
"props": {
"itemsPerPage": {
"desktop": 4,
"tablet": 3,
"phone": 2
},
"infinite": true,
"showNavigationArrows": "always",
"blockClass": "carousel"
}
},
"html#slider": {
"props": {
"testId": "product-summary-list"
},
"children": [
"list-context.product-list#demo1"
]
},
"html#quantityAndButton": {
"props": {
"blockClass": "quantityAndButton"
},
"children": [
"html#product-quantity",
"html#add-to-cart-button"
]
},
"html#product-quantity": {
"props": {
"testId": "product-quantity"
},
"children": [
"product-quantity"
]
},
"html#shipping-simulator": {
"props": {
"testId": "shipping-simulator"
},
"children": [
"shipping-simulator"
]
},
"Pix-academy": {
"props": {
"blockClass": "pix-wrapper"
}
},
"tab-layout#desc": {
"children": [
"tab-list#home",
"tab-content#desc"
],
"props": {
"blockClass": "desc",
"defaultActiveTabId": "desc1"
}
},
"tab-list#home": {
"children": [
"tab-list.item#desc1",
"tab-list.item#desc2",
"tab-list.item#desc3",
"tab-list.item#desc4",
"tab-list.item#desc5"
]
},
"tab-list.item#desc1": {
"props": {
"tabId": "desc1",
"label": "Descrição",
"defaultActiveTab": true
}
},
"tab-list.item#desc2": {
"props": {
"tabId": "desc2",
"label": "Descrição"
}
},
"tab-list.item#desc3": {
"props": {
"tabId": "desc3",
"label": "Descrição"
}
},
"tab-list.item#desc4": {
"props": {
"tabId": "desc4",
"label": "Descrição"
}
},
"tab-list.item#desc5": {
"props": {
"tabId": "desc5",
"label": "Descrição"
}
},
"tab-content#desc": {
"children": [
"tab-content.item#desc1",
"tab-content.item#desc2",
"tab-content.item#desc3",
"tab-content.item#desc4",
"tab-content.item#desc5"
]
},
"tab-content.item#desc1": {
"children": [
"flex-layout.row#description-row"
],
"props": {
"tabId": "desc1"
}
},
"tab-content.item#desc2": {
"children": [
"flex-layout.row#description-row"
],
"props": {
"tabId": "desc2"
}
},
"tab-content.item#desc3": {
"children": [
"flex-layout.row#description-row"
],
"props": {
"tabId": "desc3"
}
},
"tab-content.item#desc4": {
"children": [
"flex-layout.row#description-row"
],
"props": {
"tabId": "desc4"
}
},
"tab-content.item#desc5": {
"children": [
"flex-layout.row#description-row"
],
"props": {
"tabId": "desc5"
}
},
"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"
}
},
"flex-layout.row#description-row": {
"props": {
"blockClass": "description-row"
},
"children": [
"flex-layout.col#image-description",
"flex-layout.col#description"
]
},
"flex-layout.col#description": {
"props": {
"blockClass": "description"
},
"children": [
"product-description"
]
},
"html#product-description": {
"props": {
"testId": "product-description"
},
"children": [
"tab-layout#desc"
]
},
"product-description": {
"props": {
"blockClass": "product-description-m3"
}
},
"flex-layout.col#image-description": {
"props": {
"blockClass": "image-description"
},
"children": [
"image#img-descricao"
]
},
"image#img-descricao": {
"props": {
"blockClass": "img-descricao",
"src": "https://agenciamagma.vtexassets.com/arquivos/ids/164491-800-auto?v=637781133812700000&width=800&height=auto&aspect=true"
}
},
"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": {
"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": [
"html#imagens",
"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": "54%",
"rowGap": 0
}
},
"html#imagens": {
"props": {
"testId": "product-images"
},
"children": [
"product-images"
]
},
"flex-layout.row#product-image": {
"children": [
"product-images"
]
},
"product-images": {
"props": {
"aspectRatio": {
"desktop": "auto",
"phone": "1:1"
},
"thumbnailsOrientation": "horizontal",
"displayThumbnailsArrows": false,
"showNavigationArrows": false,
"showPaginationDots": false
}
},
"flex-layout.col#right-col": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0
},
"children": [
"html#product-name",
"html#codigo",
"product-rating-summary",
"html#selling-price",
"html#product-installments",
"html#pixacademy",
"availability-subscriber",
"html#sku-selector",
"html#quantityAndButton",
"Placeholder",
"html#shipping-simulator"
]
},
"html#selling-price": {
"props": {
"testId": "product-price"
},
"children": [
"product-selling-price"
]
},
"html#pixacademy": {
"props": {
"testId": "pix-price",
"blockClass": "pix-wrapper"
},
"children": [
"Pix-academy"
]
},
"html#product-installments": {
"props": {
"testId": "product-installments"
},
"children": [
"product-installments"
]
},
"html#product-name": {
"props": {
"testId": "product-name"
},
"children": [
"vtex.store-components:product-name"
]
},
"flex-layout.row#product-name": {
"props": {
"marginBottom": 3,
"blockClass": "product-name",
"testId": "product-name"
},
"children": [
"vtex.store-components:product-name"
]
},
"html#sku-selector": {
"props": {
"testId": "sku-selector"
},
"children": [
"sku-selector"
]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true
}
},
"flex-layout.row#buy-button": {
"props": {
"marginTop": 4,
"marginBottom": 7
},
"children": [
"add-to-cart-button"
]
},
"html#add-to-cart-button": {
"props": {
"blockClass": "add-to-cart-button",
"testId": "add-to-cart-button"
},
"children": [
"add-to-cart-button"
]
},
"flex-layout.row#product-availability": {
"props": {
"colGap": 7,
"marginTop": 4,
"marginBottom": 7,
"paddingTop": 7
},
"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": [
"html#product-name",
"html#codigo",
"flex-layout.row#availability",
"html#sku-selector"
]
},
"html#codigo": {
"props": {
"blockClass": "codigo",
"testId": "product-code"
},
"children": [
"product-identifier.product"
]
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
},
"children": [
"availability-subscriber"
]
},
"share#default": {
"props": {
"social": {
"Facebook": true,
"WhatsApp": true,
"Twitter": false,
"Pinterest": true
}
}
}
}