forked from M3-Academy/challenge-vtex-io
325 lines
7.1 KiB
Plaintext
325 lines
7.1 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"
|
|
],
|
|
"props": {
|
|
"blockClass": "productAll"
|
|
}
|
|
},
|
|
"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#qtd", "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
|
|
}
|
|
},
|
|
"product-quantity#qtd": {
|
|
"props": {
|
|
"width": "25%",
|
|
"size": "regular",
|
|
"blockClass": "buyQtd"
|
|
}
|
|
//"children": ["product-quantity"]
|
|
},
|
|
"flex-layout.row#buy-button": {
|
|
"props": {
|
|
"blockClass": "buyButton",
|
|
"marginTop": "4",
|
|
"marginBottom": "7",
|
|
"paddingRight": "0"
|
|
},
|
|
|
|
"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#product3",
|
|
"tab-list.item#product4",
|
|
"tab-list.item#product5"
|
|
]
|
|
},
|
|
"tab-list.item#product1": {
|
|
"props": {
|
|
"tabId": "product1",
|
|
"label": "Descrição",
|
|
"defaultActiveTab": true
|
|
}
|
|
},
|
|
"tab-list.item#product2": {
|
|
"props": {
|
|
"tabId": "product2",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#product3": {
|
|
"props": {
|
|
"tabId": "product3",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#product4": {
|
|
"props": {
|
|
"tabId": "product4",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#product5": {
|
|
"props": {
|
|
"tabId": "product5",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-content#product": {
|
|
"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": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "product1"
|
|
}
|
|
},
|
|
"tab-content.item#product2": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "product2"
|
|
}
|
|
},
|
|
"tab-content.item#product3": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "product3"
|
|
}
|
|
},
|
|
"tab-content.item#product4": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "product4"
|
|
}
|
|
},
|
|
"tab-content.item#product5": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "product5"
|
|
}
|
|
},
|
|
"list-context.product-list#shelf": {
|
|
"blocks": ["product-summary.shelf#shelf"],
|
|
"children": ["rich-text#shelf", "slider-layout#shelf-products"]
|
|
},
|
|
"rich-text#shelf": {
|
|
"props": {
|
|
"textAlignment": "CENTER",
|
|
"textPosition": "CENTER",
|
|
"text": "Você também pode gostar: ",
|
|
"blockClass": "shelfTitle"
|
|
}
|
|
},
|
|
"product-summary.shelf#shelf": {
|
|
"children": [
|
|
"product-summary-image#shelf",
|
|
"product-summary-name",
|
|
"product-summary-price"
|
|
]
|
|
},
|
|
"slider-layout#shelf-products": {
|
|
"props": {
|
|
"itemsPerPage": {
|
|
"desktop": 4,
|
|
"tablet": 3,
|
|
"phone": 2
|
|
},
|
|
"infinite": true,
|
|
"showNavigationArrows": "always",
|
|
"blockClass": "carousel"
|
|
},
|
|
"children": []
|
|
}
|
|
}
|