forked from M3-Academy/challenge-vtex-io
254 lines
5.6 KiB
Plaintext
254 lines
5.6 KiB
Plaintext
{
|
|
"store.product": {
|
|
"children": [
|
|
"html#breadcrumb",
|
|
"condition-layout.product#availability",
|
|
"flex-layout.row#description",
|
|
"flex-layout.row#specifications-title",
|
|
"tab-layout#product",
|
|
"list-context.product-list#shelf",
|
|
"newsletter",
|
|
"product-questions-and-answers"
|
|
]
|
|
},
|
|
"html#breadcrumb": {
|
|
"props": {
|
|
"tag": "section",
|
|
"testId": "breadcrumbs",
|
|
"blockClass": "pdp-breadcrumb"
|
|
},
|
|
"children": ["breadcrumb"]
|
|
},
|
|
"flex-layout.row#specifications-title": {
|
|
"children": []
|
|
},
|
|
"rich-text#specifications": {
|
|
"props": {
|
|
"text": "##### Product Specifications"
|
|
}
|
|
},
|
|
"flex-layout.row#description": {
|
|
"props": {
|
|
"marginBottom": 7
|
|
},
|
|
"children": []
|
|
},
|
|
"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": ["product-images"]
|
|
},
|
|
"product-images": {
|
|
"props": {
|
|
"thumbnailsOrientation": "horizontal",
|
|
|
|
"aspectRatio": {
|
|
"desktop": "auto",
|
|
"phone": "auto"
|
|
},
|
|
|
|
"showPaginationDots": false,
|
|
"showNavigationArrows": false
|
|
}
|
|
},
|
|
"product-images#descricao": {
|
|
"props": {
|
|
"aspectRatio": {
|
|
"desktop": "auto",
|
|
"phone": "16:9"
|
|
},
|
|
"displayThumbnailsArrows": false,
|
|
"displayMode": "first-image"
|
|
}
|
|
},
|
|
"flex-layout.col#right-col": {
|
|
"props": {
|
|
"preventVerticalStretch": true,
|
|
"rowGap": 0
|
|
},
|
|
"children": [
|
|
"flex-layout.row#product-name",
|
|
"product-identifier.product",
|
|
"product-rating-summary",
|
|
"flex-layout.row#selling-price",
|
|
"product-installments",
|
|
"product-paymentPix-component",
|
|
"sku-selector",
|
|
|
|
"flex-layout.row#cart",
|
|
"product-assembly-options",
|
|
"product-gifts",
|
|
|
|
"availability-subscriber",
|
|
"shipping-simulator"
|
|
]
|
|
},
|
|
"flex-layout.row#cart": {
|
|
"props": {
|
|
"blockClass": "cart"
|
|
},
|
|
"children": ["product-quantity", "flex-layout.row#buy-button"]
|
|
},
|
|
"flex-layout.row#product-name": {
|
|
"props": {
|
|
"marginBottom": 3
|
|
},
|
|
"children": ["vtex.store-components:product-name"]
|
|
},
|
|
|
|
"sku-selector": {
|
|
"props": {
|
|
"variationsSpacing": 3,
|
|
"showValueNameForImageVariation": true
|
|
}
|
|
},
|
|
|
|
"flex-layout.row#buy-button": {
|
|
"props": {
|
|
"width": "80%",
|
|
"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": [
|
|
"flex-layout.row#product-name",
|
|
"product-identifier.product",
|
|
"sku-selector",
|
|
"flex-layout.row#availability"
|
|
]
|
|
},
|
|
"flex-layout.row#availability": {
|
|
"props": {
|
|
"blockClass": "message-availability"
|
|
},
|
|
"children": ["availability-subscriber"]
|
|
},
|
|
|
|
"tab-layout#product": {
|
|
"children": ["tab-list#product", "tab-content#product"],
|
|
"props": {
|
|
"blockClass": "product",
|
|
"defaultActiveTabId": "product1"
|
|
}
|
|
},
|
|
"tab-list#product": {
|
|
"children": ["tab-list.item#product1", "tab-list.item#product2"]
|
|
},
|
|
"tab-list.item#product1": {
|
|
"props": {
|
|
"tabId": "product1",
|
|
"label": "Descrição",
|
|
"defaultActiveTab": true
|
|
}
|
|
},
|
|
"tab-list.item#product2": {
|
|
"props": {
|
|
"tabId": "product2",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-content#product": {
|
|
"children": ["tab-content.item#product1", "tab-content.item#product2"]
|
|
},
|
|
"tab-content.item#product1": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "product1"
|
|
}
|
|
},
|
|
"tab-content.item#product2": {
|
|
"children": ["product-description"],
|
|
"props": {
|
|
"tabId": "product2"
|
|
}
|
|
},
|
|
"list-context.product-list#shelf": {
|
|
"blocks": ["product-summary.shelf#shelf"],
|
|
"children": ["slider-layout#shelf-products"]
|
|
},
|
|
"product-summary.shelf#shelf": {
|
|
"children": ["product-summary-image#shelf", "product-summary-price"]
|
|
},
|
|
"slider-layout#shelf-products": {
|
|
"props": {
|
|
"itemsPerPage": {
|
|
"desktop": 4,
|
|
"tablet": 1,
|
|
"phone": 1
|
|
},
|
|
"infinite": true,
|
|
"showNavigationArrows": "desktopOnly",
|
|
"blockClass": "carousel"
|
|
},
|
|
"children": []
|
|
}
|
|
}
|