challenge-vtex-io-Patrick-R.../store/blocks/pdp/product.jsonc

196 lines
4.4 KiB
Plaintext
Raw 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"
]
},
"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,
2023-01-29 16:14:48 +00:00
"paddingBottom": 7,
"blockClass": "product-container"
},
"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"
},
"displayThumbnailsArrows": true
}
},
"flex-layout.col#right-col": {
"props": {
"preventVerticalStretch": true,
2023-01-29 16:14:48 +00:00
"rowGap": 0,
"blockClass": "right-col"
},
"children": [
"flex-layout.row#product-name",
"product-rating-summary",
2023-01-29 16:14:48 +00:00
/* "flex-layout.row#list-price-savings", */
"product-identifier.product",
"flex-layout.row#selling-price",
2023-01-31 22:53:00 +00:00
"product-installments#summary",
2023-01-29 16:14:48 +00:00
"pix-discount",
/* "product-separator", */
"sku-selector",
2023-02-01 22:54:14 +00:00
"flex-layout.row#add-bag", ///// //
/* "product-quantity", */ "product-assembly-options",
"product-gifts", //
/* "flex-layout.row#buy-button", */ "availability-subscriber",
"shipping-simulator",
"share#default"
]
},
2023-02-01 22:54:14 +00:00
"flex-layout.row#add-bag": {
"props": {
"blockClass": "addToBag"
},
"children": ["product-quantity", "add-to-cart-button"]
},
"flex-layout.row#product-name": {
"props": {
2023-01-29 16:14:48 +00:00
"marginBottom": 0,
"blockClass": "product-name-container"
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
2023-01-29 16:14:48 +00:00
"showValueNameForImageVariation": true,
"blockClass": "sku-selector"
}
},
"flex-layout.row#buy-button": {
"props": {
2023-02-01 22:54:14 +00:00
"marginTop": 0,
"marginBottom": 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"]
},
"share#default": {
"props": {
"social": {
"Facebook": true,
"WhatsApp": true,
"Twitter": false,
"Pinterest": true
}
}
}
}