challenge-vtex-io-daniel-mo.../store/blocks/pdp/product.jsonc

396 lines
8.7 KiB
Plaintext
Raw Permalink Normal View History

{
"store.product": {
"children": [
2023-01-20 14:59:33 +00:00
"html#breadcrumb",
"condition-layout.product#availability",
"flex-layout.row#description",
"flex-layout.row#specifications-title",
// "product-specification-group#table",
// "shelf.relatedProducts",
"product-questions-and-answers",
"list-context.product-list#demo1",
"product-questions-and-answers",
"newsletter"
]
},
"list-context.product-list#demo1": {
"blocks": ["product-summary.shelf#demo1"],
"children": ["html#slider-layout"]
},
"product-summary.shelf#demo1": {
"children": [
"html#sliderPrateleira"
// "product-summary-name",
// "product-summary-description",
// "product-summary-image",
// "product-summary-price",
// "product-summary-sku-selector",
// "product-summary-buy-button"
]
},
"html#sliderPrateleira": {
"props": {
"testId": "vtex-product-summary",
"blockClass": "prateleira-flexcol"
},
"children": [
"product-summary-image",
"product-summary-name",
"product-list-price",
"product-selling-price"
]
},
"html#slider-layout": {
"props": {
"testId": "product-summary-list"
},
"children": ["slider-layout#demo-products"]
},
"slider-layout#demo-products": {
"props": {
"itemsPerPage": {
"desktop": 4,
"tablet": 3,
"phone": 2
},
"infinite": true,
"showNavigationArrows": "always",
"blockClass": "carousel"
}
},
"html#breadcrumb": {
"props": {
"tag": "section",
"testId": "breadcrumbs",
"blockClass": "pdp-breadcrumb"
},
"children": ["breadcrumb"]
},
"flex-layout.row#specifications-title": {
"props": {
"props": {
"marginBottom": 7,
"marginTop": 7
}
},
"children": ["rich-text#specifications"]
},
"rich-text#specifications": {
"props": {
"text": "##### Você também pode gostar:",
"textPosition": "CENTER",
"textAlignment": "CENTER",
"blockClass": "specifications-texto"
}
},
"flex-layout.row#description": {
"props": {
"marginBottom": 7
},
"children": ["html#product-description"]
},
"html#product-description": {
"props": {
"testId": "product-description"
},
"children": ["tab-layout#description"]
},
"tab-layout#description": {
"children": ["tab-list#description", "tab-content#description"],
"props": {
"blockClass": "description",
"defaultActiveTabId": "description1"
}
},
"tab-content#description": {
"children": ["product-images#description", "product-description"]
},
"product-images#description": {
"props": {
"displayMode": "first-image",
"zoomMode": "disable",
"blockClass": "imageDescricao"
}
},
"tab-list#description": {
"props": {
"blockClass": "listaDescricao"
},
"children": [
"tab-list.item#description1",
"tab-list.item#description2",
"tab-list.item#description3",
"tab-list.item#description4",
"tab-list.item#description5"
]
},
"tab-list.item#description1": {
"props": {
"tabId": "description1",
"label": "Descrição",
"defaultActiveTab": true
}
},
"tab-list.item#description2": {
"props": {
"tabId": "description2",
"label": "Descrição"
}
},
"tab-list.item#description3": {
"props": {
"tabId": "description3",
"label": "Descrição"
}
},
"tab-list.item#description4": {
"props": {
"tabId": "description4",
"label": "Descrição"
}
},
"tab-list.item#description5": {
"props": {
"tabId": "description5",
"label": "Descrição"
}
},
"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": [
"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": {
"children": ["html#product-images"]
},
"html#product-images": {
"props": {
"testId": "product-images"
},
"children": ["product-images"]
},
"product-images": {
"props": {
"aspectRatio": {
"desktop": "auto",
"testId": "",
"phone": "16:9"
},
"displayThumbnailsArrows": false,
"showNavigationArrows": false,
"showPaginationDots": false,
"thumbnailsOrientation": "horizontal"
}
},
"flex-layout.col#right-col": {
"props": {
"preventVerticalStretch": true,
"rowGap": 0
},
"children": [
"html#product-name",
"html#codigo",
"product-rating-summary",
"html#selling-price",
// "flex-layout.row#selling-price",
"html#product-installments",
"html#pix-component",
"html#sku-selector",
// "html#product-quantity",
// "html#add-to-cart-button",
"html#cart-content",
"Placeholder",
"product-assembly-options",
"product-gifts",
"availability-subscriber",
"html#shipping-simulator"
]
},
"html#product-name": {
"props": {
"marginBottom": 3,
"testId": "product-name",
"blockClass": "productName"
},
"children": ["vtex.store-components:product-name"]
},
"html#codigo": {
"props": {
"blockClass": "codigo",
"testId": "product-code"
},
"children": ["product-identifier.product"]
},
"html#product-installments": {
"props": {
"testId": "product-installments"
},
"children": ["product-installments"]
},
"html#selling-price": {
"props": {
"testId": "product-price"
},
"children": ["flex-layout.row#selling-price"]
},
"html#pix-component": {
"props": {
"testId": "pix-price",
"blockClass": "pix"
},
"children": ["pix-component"]
},
"html#add-to-cart-button": {
"props": {
"testId": "add-to-cart-button",
"blockClass": "addButton"
},
"children": ["flex-layout.row#buy-button"]
},
"html#product-quantity": {
"props": {
"testId": "product-quantity"
},
"children": ["product-quantity"]
},
"html#cart-content": {
"props": {
"blockClass": "cart-content"
},
"children": ["html#product-quantity", "html#add-to-cart-button"]
},
"html#sku-selector": {
"props": {
"testId": "sku-selector"
},
"children": ["sku-selector"]
},
"html#shipping-simulator": {
"props": {
"testId": "shipping-simulator",
"blockClass": "shippingSimulator"
},
"children": ["shipping-simulator"]
},
"flex-layout.row#product-name": {
"props": {
"marginBottom": 3
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true,
"blockClass": "sku-selector"
}
},
"flex-layout.row#buy-button": {
"props": {
"marginTop": 4,
"marginBottom": 7,
"blockClass": "buyButton"
},
"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"
]
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
},
"children": ["availability-subscriber"]
},
"share#default": {
"props": {
"social": {
"Facebook": true,
"WhatsApp": true,
"Twitter": false,
"Pinterest": true
}
}
}
}