challenge-vtex-io-emmanuelv.../store/blocks/pdp/product.jsonc

223 lines
5.0 KiB
Plaintext
Raw Normal View History

{
"store.product": {
"children": [
2023-01-20 14:59:33 +00:00
"html#breadcrumb",
"condition-layout.product#availability",
"tab-layout#tab-product",
"list-context.product-list#m3-shelf-retaletd",
"newsletter#m3-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"]
},
"rich-text#specifications": {
"props": {
"text": "##### Product Specifications"
}
},
"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": {
"blockClass": "product-main",
"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": {
"rowGap": 0
}
},
"flex-layout.row#product-image": {
"children": ["product-images"]
},
"product-images": {
"props": {
"aspectRatio": {
"desktop": "auto",
"phone": "auto"
},
"showPaginationDots": false,
"displayThumbnailsArrows": false,
"thumbnailsOrientation": "horizontal",
"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#selling-price",
"product-installments#parcelas",
// "m3-pix",
"sku-selector",
"product-assembly-options",
"product-gifts",
"html#buy-button",
"availability-subscriber",
"html#m3-shipping-simulator"
]
},
"product-installments#parcelas": {
"props": {
"blockClass": "desconto",
"installmentsCriteria": "max-quantity-without-interest",
"markers": ["x"],
"message": "{installmentsNumber} <x>x</x> de {installmentValue} sem juros"
}
},
"flex-layout.row#product-name": {
"props": {
"marginBottom": 3
},
"children": ["vtex.store-components:product-name"]
},
"sku-selector": {
"props": {
"variationsSpacing": 3,
"showValueNameForImageVariation": true
}
},
"html#buy-button": {
"props": {
"blockClass": "container__buyButton",
"marginTop": 4,
"marginBottom": 7,
"paddingRight": 0
},
"children": ["html#sizeQuantity", "add-to-cart-button"]
},
"html#sizeQuantity": {
"props": {
"blockClass": "quantity",
"testid": "product-quantity"
},
"children": ["product-quantity#size"]
},
"product-quantity#size": {
"props": {
"blockClass": "quantity__wrapper",
"size": "regular",
"width": "25%",
"showLabel": false
}
},
"flex-layout.row#product-availability": {
"props": {
"blockClass": "indisponivel",
"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",
"flex-layout.row#availability",
"sku-selector"
]
},
"flex-layout.row#availability": {
"props": {
"blockClass": "message-availability"
},
"children": ["availability-subscriber"]
},
"html#m3-shipping-simulator": {
"props": {
"blockClass": "m3-shipping-simulator"
},
"children": ["rich-text", "shipping-simulator", "m3-placeholder"]
},
"rich-text": {
"props": {
"blockClass": "m3-shipping-simulator-title",
"textAlignment": "LEFT",
"text": "Calcular o frete"
}
},
"share#default": {
"props": {
"social": {
"Facebook": true,
"WhatsApp": true,
"Twitter": false,
"Pinterest": true
}
}
},
"newsletter#m3-newsletter": {
"props": {
"placeholder": "Digite seu e-mail"
}
}
}