306 lines
6.9 KiB
Plaintext
306 lines
6.9 KiB
Plaintext
{
|
|
"store.product": {
|
|
"children": [
|
|
"html#breadcrumb",
|
|
"condition-layout.product#availability",
|
|
"tab-layout#description",
|
|
"list-context.product-list#list",
|
|
//"shelf.relatedProducts",
|
|
"product-questions-and-answers",
|
|
"newsletter"
|
|
]
|
|
},
|
|
"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": {
|
|
"marginBottom": 7
|
|
},
|
|
"children": ["product-description"]
|
|
},
|
|
"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": "60%",
|
|
"rowGap": 0
|
|
}
|
|
},
|
|
"flex-layout.row#product-image": {
|
|
"children": ["product-images"]
|
|
},
|
|
"product-images": {
|
|
"props": {
|
|
"aspectRatio": {
|
|
"desktop": "auto",
|
|
"phone": "16:9"
|
|
},
|
|
"thumbnailsOrientation": "horizontal",
|
|
"showPaginationDots": false,
|
|
"displayThumbnailsArrows": false,
|
|
"showNavigationArrows": false
|
|
}
|
|
},
|
|
"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#list-price-savings",
|
|
"flex-layout.row#selling-price",
|
|
"product-installments",
|
|
"Pix",
|
|
"sku-selector",
|
|
"product-quantity",
|
|
"product-assembly-options",
|
|
"product-gifts",
|
|
"flex-layout.row#buy-button",
|
|
"availability-subscriber",
|
|
"shipping-simulator"
|
|
]
|
|
},
|
|
|
|
"flex-layout.row#product-name": {
|
|
"props": {
|
|
"marginBottom": 3
|
|
},
|
|
"children": ["vtex.store-components:product-name"]
|
|
},
|
|
|
|
"sku-selector": {
|
|
"props": {
|
|
"variationsSpacing": 3,
|
|
"showValueNameForImageVariation": false
|
|
}
|
|
},
|
|
|
|
"flex-layout.row#buy-button": {
|
|
"props": {
|
|
"marginTop": 4,
|
|
"marginBottom": 7,
|
|
"blockClass": "btn-product"
|
|
},
|
|
"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"]
|
|
},
|
|
|
|
"share#default": {
|
|
"props": {
|
|
"social": {
|
|
"Facebook": true,
|
|
"WhatsApp": true,
|
|
"Twitter": false,
|
|
"Pinterest": true
|
|
}
|
|
}
|
|
},
|
|
|
|
"product-images#descricao": {
|
|
"props": {
|
|
"displayMode": "first-image",
|
|
"blockClass": "imagem-descricao"
|
|
}
|
|
},
|
|
|
|
"list-context.product-list#list": {
|
|
"blocks": ["product-summary.shelf#carrosselprodutos"],
|
|
"children": ["slider-layout#carrosselatualizado"]
|
|
},
|
|
"product-summary.shelf#carrosselprodutos": {
|
|
"children": [
|
|
"product-summary-image",
|
|
"product-summary-name",
|
|
"product-summary-price",
|
|
"product-summary-buy-button"
|
|
]
|
|
},
|
|
|
|
"slider-layout#carrosselatualizado": {
|
|
"props": {
|
|
"itemsPerPage": {
|
|
"desktop": 4,
|
|
"tablet": 3,
|
|
"phone": 1
|
|
},
|
|
"infinite": true,
|
|
"showNavigationArrows": "desktopOnly",
|
|
"blockClass": "carousel"
|
|
}
|
|
},
|
|
|
|
"tab-layout#description": {
|
|
"children": ["tab-list#description", "tab-content#description"]
|
|
},
|
|
"tab-list#description": {
|
|
"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": "descriptionTab1",
|
|
"label": "Descrição",
|
|
"defaultActiveTab": true,
|
|
"blockClass": "descriptionTab1"
|
|
}
|
|
},
|
|
"tab-list.item#description2": {
|
|
"props": {
|
|
"tabId": "descriptionTab2",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#description3": {
|
|
"props": {
|
|
"tabId": "descriptionTab3",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#description4": {
|
|
"props": {
|
|
"tabId": "descriptionTab4",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#description5": {
|
|
"props": {
|
|
"tabId": "descriptionTab5",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-content#description": {
|
|
"children": [
|
|
"tab-content.item#description1",
|
|
"tab-content.item#description2",
|
|
"tab-content.item#description3",
|
|
"tab-content.item#description4",
|
|
"tab-content.item#description5"
|
|
]
|
|
},
|
|
"tab-content.item#description1": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "descriptionTab1"
|
|
}
|
|
},
|
|
"tab-content.item#description2": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "descriptionTab2"
|
|
}
|
|
},
|
|
"tab-content.item#description3": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "descriptionTab3"
|
|
}
|
|
},
|
|
"tab-content.item#description4": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "descriptionTab4"
|
|
}
|
|
},
|
|
"tab-content.item#description5": {
|
|
"children": ["product-images#descricao", "product-description"],
|
|
"props": {
|
|
"tabId": "descriptionTab5"
|
|
}
|
|
}
|
|
}
|