190 lines
4.0 KiB
Plaintext
190 lines
4.0 KiB
Plaintext
{
|
|
"store.product": {
|
|
"children": [
|
|
"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"
|
|
]
|
|
},
|
|
"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": "html#product-main",
|
|
"Else": "html#product-availability"
|
|
}
|
|
},
|
|
"html#product-main": {
|
|
"props": {
|
|
"blockClass": "product-main"
|
|
},
|
|
"children": ["html#stack", "html#right-col"]
|
|
},
|
|
|
|
"stack-layout": {
|
|
"props": {
|
|
"blockClass": "product"
|
|
},
|
|
"children": [
|
|
"html#product-image",
|
|
"product-bookmark",
|
|
"product-specification-badges"
|
|
]
|
|
},
|
|
|
|
"product-specification-badges": {
|
|
"props": {
|
|
"specificationGroupName": "Group",
|
|
"specificationName": "On Sale",
|
|
"visibleWhen": "True",
|
|
"displayValue": "SPECIFICATION_NAME"
|
|
}
|
|
},
|
|
|
|
"html#stack": {
|
|
"children": ["stack-layout"],
|
|
"props": {
|
|
"blockClass": "stack"
|
|
}
|
|
},
|
|
"html#product-image": {
|
|
"props": {
|
|
"blockClass": "product-image"
|
|
},
|
|
"children": ["product-images"]
|
|
},
|
|
"product-images": {
|
|
"props": {
|
|
"thumbnailAspectRatio": "1:1",
|
|
"thumbnailMaxHeight": 90,
|
|
"showNavigationArrows": false,
|
|
"showPaginationDots": false,
|
|
"thumbnailsOrientation": "horizontal",
|
|
"thumbnailVisibility": "visible"
|
|
}
|
|
},
|
|
"html#right-col": {
|
|
"props": {
|
|
"blockClass": "right-col"
|
|
},
|
|
"children": [
|
|
"html#product-name",
|
|
// "product-identifier.product",
|
|
// "product-rating-summary",
|
|
// "flex-layout.row#list-price-savings",
|
|
"html#selling-price",
|
|
// "product-installments",
|
|
"installments",
|
|
// "product-separator",
|
|
"pix",
|
|
"sku-selector",
|
|
// "product-quantity",
|
|
"html#buy-container",
|
|
// "product-assembly-options",
|
|
"product-gifts",
|
|
// "flex-layout.row#buy-button",
|
|
"availability-subscriber",
|
|
"shipping-simulator"
|
|
// "share#default"
|
|
]
|
|
},
|
|
"html#buy-container": {
|
|
"props": {
|
|
"blockClass": "buy-container"
|
|
},
|
|
"children": ["product-quantity", "flex-layout.row#buy-button"]
|
|
},
|
|
|
|
"html#product-name": {
|
|
"props": {
|
|
"blockClass": "product-name"
|
|
},
|
|
"children": [
|
|
"vtex.store-components:product-name",
|
|
"product-identifier.product"
|
|
]
|
|
},
|
|
|
|
"sku-selector": {
|
|
"props": {
|
|
"variationsSpacing": 3,
|
|
"showValueNameForImageVariation": true
|
|
}
|
|
},
|
|
|
|
"flex-layout.row#buy-button": {
|
|
"props": {
|
|
"marginTop": 4,
|
|
"marginBottom": 7
|
|
},
|
|
"children": ["add-to-cart-button"]
|
|
},
|
|
|
|
"html#product-availability": {
|
|
"props": {
|
|
"blockClass": "product-availability"
|
|
},
|
|
"children": ["html#stack", "html#right-col-availability"]
|
|
},
|
|
"html#right-col-availability": {
|
|
"props": {
|
|
"preventVerticalStretch": true,
|
|
"rowGap": 0,
|
|
"blockClass": "info-availability"
|
|
},
|
|
"children": [
|
|
"html#product-name",
|
|
// "product-identifier.product",
|
|
"html#availability",
|
|
"sku-selector"
|
|
]
|
|
},
|
|
"html#availability": {
|
|
"props": {
|
|
"blockClass": "message-availability"
|
|
},
|
|
"children": ["availability-subscriber"]
|
|
},
|
|
|
|
"share#default": {
|
|
"props": {
|
|
"social": {
|
|
"Facebook": true,
|
|
"WhatsApp": true,
|
|
"Twitter": false,
|
|
"Pinterest": true
|
|
}
|
|
}
|
|
}
|
|
}
|