forked from M3-Academy/challenge-vtex-io
458 lines
10 KiB
Plaintext
458 lines
10 KiB
Plaintext
{
|
|
"store.product": {
|
|
"children": [
|
|
"html#pageProduct",
|
|
"newsletter"
|
|
]
|
|
},
|
|
"html#pageProduct": {
|
|
"props": {
|
|
"blockClass":"page-product"
|
|
},
|
|
"children": [
|
|
"html#breadcrumb",
|
|
"condition-layout.product#availability",
|
|
"tab-layout#product",
|
|
|
|
// "flex-layout.row#description",
|
|
// "flex-layout.row#specifications-title",
|
|
// "product-specification-group#table",
|
|
// "shelf.relatedProducts",
|
|
// "product-questions-and-answers",
|
|
|
|
"rich-text#titleSlick",
|
|
"list-context.product-list#demo",
|
|
"PlaceholderCep"
|
|
]
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"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": {
|
|
"blockClass": "divProduct",
|
|
"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": [
|
|
"flex-layout.row#product-image",
|
|
"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": "50%",
|
|
"rowGap": 0
|
|
}
|
|
},
|
|
|
|
"flex-layout.row#product-image": {
|
|
"props": {},
|
|
"children": ["product-images"]
|
|
},
|
|
|
|
"product-images": {
|
|
"props": {
|
|
"testId":"product-images",
|
|
"blockClass": "divImagens",
|
|
"aspectRatio": {
|
|
"desktop": "auto",
|
|
"phone": "auto"
|
|
},
|
|
"thumbnailsOrientation": "horizontal",
|
|
"displayThumbnailsArrows": false,
|
|
"showNavigationArrows": false,
|
|
"showPaginationDots": false
|
|
}
|
|
},
|
|
|
|
"flex-layout.col#right-col": {
|
|
"props": {
|
|
"blockClass": "divInfoProduct",
|
|
"preventVerticalStretch": true,
|
|
"rowGap": 0
|
|
},
|
|
"children": [
|
|
"flex-layout.row#product-name",
|
|
"flex-layout.row#product-modelo",
|
|
// "product-rating-summary",
|
|
"flex-layout.row#selling-price",
|
|
// "flex-layout.row#list-price-savings",
|
|
"product-installments#custom",
|
|
"pixCustom",
|
|
"sku-selector",
|
|
"html#quantidadeEButtonCustom",
|
|
// "product-separator",
|
|
// "product-quantity",
|
|
// "product-assembly-options",
|
|
// "product-gifts",
|
|
// "flex-layout.row#buy-button",
|
|
// "availability-subscriber"
|
|
"rich-text#titleCep",
|
|
"shipping-simulator"
|
|
// "share#default"
|
|
]
|
|
},
|
|
"pixCustom":{
|
|
"props":{
|
|
"testId":"pix-price"
|
|
}
|
|
},
|
|
"shipping-simulator":{
|
|
"props":{
|
|
"blockClass":"divCep"
|
|
// "placeholder": "Digite seu CEP"
|
|
}
|
|
},
|
|
"rich-text#titleCep": {
|
|
"props": {
|
|
"blockClass": "titleCep",
|
|
"text": "CALCULAR FRETE:"
|
|
}
|
|
},
|
|
"html#quantidadeEButtonCustom":{
|
|
"props": {
|
|
"blockClass": "quantidadeEBuy"
|
|
},
|
|
"children": ["product-quantity","flex-layout.row#buy-button"]
|
|
},
|
|
"product-quantity":{
|
|
"props":{
|
|
"testId":"product-quantity",
|
|
"blockClass":"divQuantidade",
|
|
"size":"regular"
|
|
}
|
|
},
|
|
"product-installments#custom":{
|
|
"props":{
|
|
"blockClass":"divParcelamente",
|
|
"markers": ["discount"],
|
|
"message": "{installmentsNumber} de {installmentValue} sem juros",
|
|
"installmentsCriteria":"max-quantity-without-interest"
|
|
}
|
|
},
|
|
"flex-layout.row#product-modelo": {
|
|
"props": {
|
|
"blockClass": "divNomeProductModelo"
|
|
},
|
|
"children": ["product-identifier.product"]
|
|
},
|
|
|
|
"flex-layout.row#product-name": {
|
|
"props": {
|
|
"blockClass": "divNomeProduct",
|
|
"marginBottom": 3
|
|
},
|
|
"children": ["vtex.store-components:product-name"]
|
|
},
|
|
|
|
"sku-selector": {
|
|
"props": {
|
|
"testId":"sku-selector",
|
|
"blockClass":"divSku",
|
|
"variationsSpacing": 3,
|
|
"showValueNameForImageVariation": true
|
|
}
|
|
},
|
|
|
|
"flex-layout.row#buy-button": {
|
|
"props": {
|
|
"blockClass":"divButtonBuy",
|
|
"marginTop": 4,
|
|
"marginBottom": 7
|
|
},
|
|
"children": ["add-to-cart-button"]
|
|
},
|
|
"add-to-cart-button":{
|
|
"props":{
|
|
"testId":"add-to-cart-button"
|
|
}
|
|
},
|
|
"flex-layout.row#product-availability": {
|
|
"props": {
|
|
"blockClass":"divProductIndisponivel",
|
|
"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": [
|
|
"flex-layout.row#product-name",
|
|
"product-identifier.product",
|
|
"flex-layout.col#availability",
|
|
"sku-selector"
|
|
]
|
|
},
|
|
"flex-layout.col#availability": {
|
|
"props": {
|
|
"blockClass": "message-availability"
|
|
},
|
|
"children": ["availability-subscriber"]
|
|
},
|
|
"availability-subscriber":{
|
|
"props":{
|
|
"blockClass":"buttonIndisponivel"
|
|
}
|
|
},
|
|
|
|
"share#default": {
|
|
"props": {
|
|
"social": {
|
|
"Facebook": true,
|
|
"WhatsApp": true,
|
|
"Twitter": false,
|
|
"Pinterest": true
|
|
}
|
|
}
|
|
},
|
|
|
|
"tab-layout#product": {
|
|
"children": ["tab-list#product", "tab-content#product"],
|
|
"props": {
|
|
"blockClass": "estrutura",
|
|
"defaultActiveTabId": "product1"
|
|
}
|
|
},
|
|
"tab-list#product": {
|
|
"props": {
|
|
"blockClass": "Guias"
|
|
},
|
|
"children": [
|
|
"tab-list.item#product1",
|
|
"tab-list.item#product2",
|
|
"tab-list.item#product3",
|
|
"tab-list.item#product4",
|
|
"tab-list.item#product5"
|
|
]
|
|
},
|
|
"tab-list.item#product1": {
|
|
"props": {
|
|
"blockClass": "renderGuia",
|
|
"tabId": "product1",
|
|
"label": "Descrição",
|
|
"defaultActiveTab": true
|
|
}
|
|
},
|
|
"tab-list.item#product2": {
|
|
"props": {
|
|
"blockClass": "renderGuia",
|
|
"tabId": "product2",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#product3": {
|
|
"props": {
|
|
"blockClass": "renderGuia",
|
|
"tabId": "product3",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#product4": {
|
|
"props": {
|
|
"blockClass": "renderGuia",
|
|
"tabId": "product4",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#product5": {
|
|
"props": {
|
|
"blockClass": "renderGuia",
|
|
"tabId": "product5",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-content#product": {
|
|
"props": {
|
|
"blockClass": "listRender"
|
|
},
|
|
"children": [
|
|
"tab-content.item#product1",
|
|
"tab-content.item#product2",
|
|
"tab-content.item#product3",
|
|
"tab-content.item#product4",
|
|
"tab-content.item#product5"
|
|
]
|
|
},
|
|
"tab-content.item#product1": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "product1",
|
|
"blockClass": "renderConteudo"
|
|
}
|
|
},
|
|
"tab-content.item#product2": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "product2",
|
|
"blockClass": "renderConteudo"
|
|
}
|
|
},
|
|
"tab-content.item#product3": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "product3",
|
|
"blockClass": "renderConteudo"
|
|
}
|
|
},
|
|
"tab-content.item#product4": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "product4",
|
|
"blockClass": "renderConteudo"
|
|
}
|
|
},
|
|
"tab-content.item#product5": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "product5",
|
|
"blockClass": "renderConteudo"
|
|
}
|
|
},
|
|
|
|
"flex-layout.col#divImgDescription": {
|
|
"props": {
|
|
"blockClass": "divImgDescription",
|
|
"width": "50%"
|
|
},
|
|
"children": ["product-images#imgDescription"]
|
|
},
|
|
"product-images#imgDescription": {
|
|
"props": {
|
|
"displayMode": "first-image",
|
|
"blockClass": "imgDescription"
|
|
}
|
|
},
|
|
|
|
"flex-layout.row#description": {
|
|
"props": {
|
|
"blockClass":"divDescription",
|
|
"marginBottom": 7
|
|
},
|
|
"children": ["flex-layout.col#divImgDescription", "product-description"]
|
|
},
|
|
"rich-text#titleSlick": {
|
|
"props": {
|
|
"textAlignment": "CENTER",
|
|
"textPosition": "CENTER",
|
|
"text": "Você também pode gostar:",
|
|
"blockClass": "tituloSlick"
|
|
}
|
|
},
|
|
"list-context.product-list#demo": {
|
|
"blocks": ["product-summary.shelf#demo"],
|
|
"children": ["slider-layout#demo-product"]
|
|
},
|
|
|
|
"product-summary.shelf#demo": {
|
|
"props":{
|
|
"testId":"vtex-product-summary"
|
|
},
|
|
"children": [
|
|
"product-summary-image",
|
|
"product-summary-name",
|
|
// "product-summary-description",
|
|
"product-summary-price"
|
|
// "product-summary-sku-selector",
|
|
// "product-summary-buy-button"
|
|
]
|
|
},
|
|
|
|
"slider-layout#demo-product": {
|
|
"props": {
|
|
"testId":"product-summary-list",
|
|
"itemsPerPage": {
|
|
"desktop": 4,
|
|
"tablet": 3,
|
|
"phone": 2
|
|
},
|
|
"infinite": true,
|
|
"showNavigationArrows": "desktopOnly",
|
|
"blockClass": "carousel"
|
|
}
|
|
// ,
|
|
// "children": ["shelf.relatedProducts"]
|
|
},
|
|
|
|
// "rich-text#1": {
|
|
// "props": {
|
|
// "text": "Test1"
|
|
// }
|
|
// },
|
|
// "rich-text#2": {
|
|
// "props": {
|
|
// "text": "Test2"
|
|
// }
|
|
// },
|
|
// "rich-text#3": {
|
|
// "props": {
|
|
// "text": "Test3"
|
|
// }
|
|
// },
|
|
|
|
"newsletter": {
|
|
"props": {
|
|
"blockClass": "newsletter",
|
|
"label": "Assine nossa newsletter",
|
|
"placeholder": "Digite Seu e-mail"
|
|
}
|
|
}
|
|
}
|