196 lines
4.2 KiB
Plaintext
196 lines
4.2 KiB
Plaintext
{
|
|
"store.product": {
|
|
"children": [
|
|
"html#breadcrumb",
|
|
"condition-layout.product#availability",
|
|
"tab-layout#description",
|
|
"shelf.relatedProducts",
|
|
"product-questions-and-answers"
|
|
]
|
|
},
|
|
"html#breadcrumb": {
|
|
"props": {
|
|
"tag": "section",
|
|
"testId": "breadcrumbs",
|
|
"blockClass": "pdp-breadcrumb"
|
|
},
|
|
"children": ["breadcrumb"]
|
|
},
|
|
|
|
"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": [
|
|
"flex-layout.row#product-image",
|
|
"product-bookmark",
|
|
"product-specification-badges"
|
|
]
|
|
},
|
|
|
|
"product-specification-badges": {
|
|
"props": {
|
|
"specificationGroupName": "Group",
|
|
"specificationName": "On Sale",
|
|
"visibleWhen": "True",
|
|
"displayValue": "SPECIFICATION_NAME"
|
|
}
|
|
},
|
|
|
|
"html#stack": {
|
|
"props": {
|
|
"blockClass": "stack-layout"
|
|
},
|
|
"children": ["stack-layout"]
|
|
},
|
|
"flex-layout.row#product-image": {
|
|
"children": ["html#product-images"]
|
|
},
|
|
"html#product-images": {
|
|
"props": {
|
|
"blockClass": "product-images",
|
|
"testId": "product-images"
|
|
},
|
|
"children": ["product-images"]
|
|
},
|
|
"product-images": {
|
|
"props": {
|
|
"thumbnailsOrientation": "horizontal",
|
|
"aspectRatio": {
|
|
"desktop": "auto",
|
|
"phone": "auto"
|
|
},
|
|
"showNavigationArrows": false,
|
|
"showPaginationDots": false
|
|
}
|
|
},
|
|
"html#right-col": {
|
|
"props": {
|
|
"blockClass": "right-col"
|
|
},
|
|
"children": [
|
|
"flex-layout.row#product-name",
|
|
"product-identifier.product",
|
|
"product-rating-summary",
|
|
"product-selling-price",
|
|
"product-installments",
|
|
"html#sku-selector",
|
|
"product-gifts",
|
|
"html#buy-button",
|
|
"availability-subscriber",
|
|
"shipping-simulator"
|
|
]
|
|
},
|
|
|
|
"flex-layout.row#product-name": {
|
|
"props": {
|
|
"marginBottom": 3
|
|
},
|
|
"children": ["vtex.store-components:product-name"]
|
|
},
|
|
|
|
"product-installments": {
|
|
"props": {
|
|
"markers": ["discount"],
|
|
"blockClass": "custom-installments",
|
|
"message": "{installmentsNumber} x <discount>de</discount> {installmentValue} <discount>sem juros</discount>"
|
|
}
|
|
},
|
|
|
|
"html#sku-selector": {
|
|
"props": {
|
|
"blockClass": "sku-selector",
|
|
"testId": "sku-selector"
|
|
},
|
|
"children": ["sku-selector"]
|
|
},
|
|
|
|
"sku-selector": {
|
|
"props": {
|
|
"variationsSpacing": 3,
|
|
"showValueNameForImageVariation": true
|
|
}
|
|
},
|
|
|
|
"html#buy-button": {
|
|
"props": {
|
|
"blockClass": "container-quantity-button"
|
|
},
|
|
"children": ["html#product-quantity", "html#add-to-cart-button"]
|
|
},
|
|
"html#product-quantity": {
|
|
"props": {
|
|
"blockClass": "product-quantity",
|
|
"testId": "product-quantity"
|
|
},
|
|
"children": ["product-quantity"]
|
|
},
|
|
|
|
"html#add-to-cart-button": {
|
|
"props": {
|
|
"blockClass": "cart-button",
|
|
"testId": "add-to-cart-button"
|
|
},
|
|
"children": ["add-to-cart-button"]
|
|
},
|
|
|
|
"product-quantity": {
|
|
"props": {
|
|
"width": 128
|
|
}
|
|
},
|
|
"add-to-cart-button": {
|
|
"props": {
|
|
"blockClass": "add-to-cart-button",
|
|
"text": "ADICIONAR À SACOLA"
|
|
}
|
|
},
|
|
|
|
"html#product-availability": {
|
|
"props": {
|
|
"colGap": 7,
|
|
"marginTop": 4,
|
|
"marginBottom": 7,
|
|
"paddingTop": 7
|
|
},
|
|
"children": ["html#stack", "html#right-col-availability"]
|
|
},
|
|
"html#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"]
|
|
}
|
|
}
|