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

423 lines
8.9 KiB
Plaintext
Raw Normal View History

{
"store.product": {
"children": [
2023-01-20 14:59:33 +00:00
"html#breadcrumb",
"condition-layout.product#availability",
2023-02-10 17:04:56 +00:00
"html#product-description",
"rich-text#textproducts",
2023-02-10 17:04:56 +00:00
"list-context.product-list#produtos",
"product-questions-and-answers"
]
},
2023-02-04 23:08:29 +00:00
2023-02-07 02:08:58 +00:00
"ProductContext": {
"props": {}
},
2023-02-05 22:30:36 +00:00
"newsletter": {
"props": {
"text": "Você também pode gostar:"
}
},
"rich-text#textnewsletter": {
"props": {
"textAlignment": "CENTER",
"textPosition": "CENTER",
"text": "Receba ofertas e novidades por e-mail",
"id": "textNewsletter",
"blockClass": "textNewsletter"
}
2023-02-05 16:15:08 +00:00
},
"rich-text#textproducts": {
"props": {
"textAlignment": "CENTER",
"textPosition": "CENTER",
"text": "Você também pode gostar:"
}
},
"html#prateleira": {
"props": { "testId": "vtex-product-summary" },
"children": [
2023-02-11 00:37:39 +00:00
"product-summary-image",
"product-summary-name",
2023-02-11 00:37:39 +00:00
"product-summary-price",
"product-list-price#summary",
"product-selling-price#summary"
]
},
"product-summary.shelf#demo1": {
"props": {},
"children": ["html#prateleira"]
},
2023-02-10 17:04:56 +00:00
"list-context.product-list#produtos": {
"blocks": ["product-summary.shelf#demo1"],
2023-02-10 17:04:56 +00:00
"children": ["html#slider"]
},
"html#slider": {
"props": { "testId": "product-summary-list" },
"children": ["slider-layout#demo-products"]
},
"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": {
"props": {
2023-02-10 17:04:56 +00:00
"width": {
"tablet": "100%"
},
"marginBottom": 7
},
2023-02-04 23:08:29 +00:00
"children": ["image#tab", "product-description"]
},
"condition-layout.product#availability": {
"props": {
2023-02-10 17:04:56 +00:00
"blockClass": "produtoHome",
"id": "produtoHome",
"conditions": [
{
"subject": "isProductAvailable"
}
],
"Then": "flex-layout.row#product-main",
"Else": "flex-layout.row#product-availability"
}
},
"flex-layout.row#product-main": {
"props": {
"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": {
"rowGap": 0
}
},
"flex-layout.row#product-image": {
2023-02-10 17:04:56 +00:00
"props": { "blockClass": "product-images" },
"children": ["html#product-images"]
},
"product-images": {
"props": {
2023-02-10 17:04:56 +00:00
"blockClass": "product-images",
"contentType": "images",
"showNavigationArrows": false,
"showPaginationDots": false,
"thumbnailsOrientation": "horizontal",
"aspectRatio": {
"desktop": "auto",
2023-02-08 19:26:33 +00:00
"phone": "auto"
},
"displayThumbnailsArrows": true
}
},
2023-02-10 17:04:56 +00:00
"html#shipping-simulator": {
"props": {
"blockClass": "shipping",
"testId": "shipping-simulator"
},
"children": ["shipping-simulator"]
},
"html#product-images": {
"props": {
2023-02-10 17:04:56 +00:00
"blockClass": "product-images",
"testId": "product-images"
},
"children": ["product-images"]
},
"flex-layout.col#right-col": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0
},
"children": [
"flex-layout.row#product-name",
2023-02-10 17:04:56 +00:00
"html#codigo",
"product-rating-summary",
"flex-layout.row#list-price-savings",
"html#selling-price",
2023-02-10 17:04:56 +00:00
"html#product-installments",
"html#pix",
"html#sku-selector",
"html#product-quantity",
"product-gifts",
"flex-layout.row#buy-button",
"availability-subscriber",
2023-02-10 17:04:56 +00:00
"html#shipping-simulator"
]
},
"html#selling-price": {
"props": { "testId": "product-price" },
"children": ["flex-layout.row#selling-price"]
},
2023-02-10 17:04:56 +00:00
"html#sku-selector": {
"props": { "testId": "sku-selector" },
"children": ["sku-selector"]
},
"html#pix": {
"props": { "testId": "pix-price", "blockClass": "pix" },
"children": ["ProductContext"]
},
"html#product-installments": {
"props": { "testId": "product-installments" },
"children": ["product-installments"]
},
2023-02-04 23:08:29 +00:00
"image#tab": {
"props": {
"src": "assets/img-sapato.png"
}
},
2023-02-10 17:04:56 +00:00
"tab-layout": {
2023-02-03 01:08:47 +00:00
"children": ["tab-list#home", "tab-content#home"],
"props": {
"blockClass": "home",
"defaultActiveTabId": "home1"
}
},
2023-02-10 17:04:56 +00:00
"html#product-description": {
"props": { "testId": "product-description" },
"children": ["tab-layout"]
},
2023-02-03 01:08:47 +00:00
"tab-list#home": {
2023-02-04 23:08:29 +00:00
"children": [
"tab-list.item#home1",
"tab-list.item#home2",
"tab-list.item#home3",
"tab-list.item#home4",
"tab-list.item#home5"
]
2023-02-03 01:08:47 +00:00
},
"tab-list.item#home1": {
"props": {
"tabId": "home1",
"label": "Descrição",
"defaultActiveTab": true
}
},
"tab-list.item#home2": {
"props": {
"tabId": "home2",
"label": "Descrição"
}
},
"tab-list.item#home3": {
"props": {
"tabId": "home3",
"label": "Descrição"
}
},
2023-02-04 23:08:29 +00:00
"tab-list.item#home4": {
"props": {
"tabId": "home4",
"label": "Descrição"
}
},
"tab-list.item#home5": {
"props": {
"tabId": "home5",
"label": "Descrição"
}
},
2023-02-03 01:08:47 +00:00
"tab-content#home": {
2023-02-04 23:08:29 +00:00
"children": [
"tab-content.item#home1",
"tab-content.item#home2",
"tab-content.item#home3",
"tab-content.item#home4",
"tab-content.item#home5"
]
2023-02-03 01:08:47 +00:00
},
"tab-content.item#home1": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "home1"
}
},
"tab-content.item#home2": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "home2"
}
},
"tab-content.item#home3": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "home3"
}
},
2023-02-04 23:08:29 +00:00
"tab-content.item#home4": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "home4"
}
},
"tab-content.item#home5": {
"children": ["flex-layout.row#description"],
"props": {
"tabId": "home5"
}
},
2023-02-10 17:04:56 +00:00
"product-installments": {
"props": {
"installmentsCriteria": "max-quantity-without-interest",
"markers": ["discount", "vezes"],
"blockClass": "m3-custom-installments",
2023-02-03 01:08:47 +00:00
"message": "{installmentsNumber}<vezes>x</vezes> de {installmentValue} <discount>sem juros</discount>"
}
},
"flex-layout.row#product-name": {
"props": {
"marginBottom": 3
},
2023-02-10 17:04:56 +00:00
"children": ["html#product-name"]
},
"html#product-name": {
"props": { "testId": "product-name" },
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true
}
},
"flex-layout.row#buy-button": {
"props": {
"paddingTop": 0,
"marginTop": 4,
"marginBottom": 7,
"blockClass": "button-cart"
},
2023-02-10 17:04:56 +00:00
"children": ["html#add-to-cart-button"]
},
"product-quantity": {
2023-02-10 17:04:56 +00:00
"props": {}
},
"html#product-quantity": {
"props": { "testId": "product-quantity" },
"children": ["product-quantity"]
},
"html#add-to-cart-button": {
"props": {
"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": [
"flex-layout.row#product-name",
2023-02-10 17:04:56 +00:00
"html#codigo",
"flex-layout.row#availability",
"sku-selector"
]
},
2023-02-10 17:04:56 +00:00
"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
}
}
}
}