277 lines
6.2 KiB
Plaintext
277 lines
6.2 KiB
Plaintext
{
|
|
"store.product": {
|
|
"children": [
|
|
"html#breadcrumb",
|
|
"condition-layout.product#availability",
|
|
"html#tab-layout",
|
|
"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": [
|
|
"html#product-images",
|
|
"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
|
|
}
|
|
},
|
|
"html#product-images": {
|
|
"props": {
|
|
"testId": "product-images"
|
|
},
|
|
"children": ["flex-layout.row#product-image"]
|
|
},
|
|
"flex-layout.row#product-image": {
|
|
"children": ["product-images"]
|
|
},
|
|
"product-images": {
|
|
"props": {
|
|
"aspectRatio": {
|
|
"desktop": "1:1",
|
|
"phone": "auto"
|
|
},
|
|
// "maxHeight": 664,
|
|
"maxHeight": 944,
|
|
|
|
"showPaginationDots": false,
|
|
"displayThumbnailsArrows": false,
|
|
"thumbnailsOrientation": "horizontal",
|
|
"showNavigationArrows": false
|
|
}
|
|
},
|
|
"flex-layout.col#right-col": {
|
|
"props": {
|
|
"preventVerticalStretch": true,
|
|
"rowGap": 0
|
|
},
|
|
"children": [
|
|
"html#product-name",
|
|
"html#product-identifier.product",
|
|
"product-rating-summary",
|
|
"html#selling-price",
|
|
"html#product-installments",
|
|
"html#m3-pix",
|
|
"html#sku-selector",
|
|
"product-assembly-options",
|
|
"product-gifts",
|
|
"html#buy-button",
|
|
"availability-subscriber",
|
|
"html#m3-shipping-simulator"
|
|
]
|
|
},
|
|
|
|
"html#product-identifier.product": {
|
|
"props": { "testId": "product-code" },
|
|
"children": ["product-identifier.product"]
|
|
},
|
|
"html#selling-price": {
|
|
"props": { "testId": "product-price" },
|
|
"children": ["flex-layout.row#selling-price"]
|
|
},
|
|
"html#m3-pix": {
|
|
"props": {
|
|
"testId": "pix-price"
|
|
},
|
|
"children": ["m3-pix"]
|
|
},
|
|
"html#product-installments": {
|
|
"props": {
|
|
"testId": "product-installments"
|
|
},
|
|
"children": ["product-installments#parcelas"]
|
|
},
|
|
"product-installments#parcelas": {
|
|
"props": {
|
|
"blockClass": "desconto",
|
|
"installmentsCriteria": "max-quantity-without-interest",
|
|
"markers": ["x"],
|
|
"message": "{installmentsNumber} <x>x</x> de {installmentValue} sem juros"
|
|
}
|
|
},
|
|
"html#product-name": {
|
|
"props": {
|
|
"testId": "product-name"
|
|
},
|
|
"children": ["flex-layout.row#product-name"]
|
|
},
|
|
"flex-layout.row#product-name": {
|
|
"props": {
|
|
"marginBottom": 3
|
|
},
|
|
"children": ["vtex.store-components:product-name"]
|
|
},
|
|
"html#sku-selector": {
|
|
"props": {
|
|
"testId": "sku-selector"
|
|
},
|
|
"children": ["sku-selector"]
|
|
},
|
|
"sku-selector": {
|
|
"props": {
|
|
"variationsSpacing": 3,
|
|
"showValueNameForImageVariation": true
|
|
}
|
|
},
|
|
"html#buy-button": {
|
|
"props": {
|
|
"blockClass": "container__buyButton",
|
|
"marginTop": 4,
|
|
"marginBottom": 7,
|
|
"paddingRight": 0
|
|
},
|
|
"children": ["html#product-quantity", "html#add-to-cart-button"]
|
|
},
|
|
"html#add-to-cart-button": {
|
|
"props": {
|
|
"blockClass": "m3-add-to-cart-button",
|
|
"testId": "add-to-cart-button"
|
|
},
|
|
"children": ["add-to-cart-button"]
|
|
},
|
|
"html#product-quantity": {
|
|
"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",
|
|
"html#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", "html#shipping-simulator"]
|
|
},
|
|
"rich-text": {
|
|
"props": {
|
|
"blockClass": "m3-shipping-simulator-title",
|
|
"textAlignment": "LEFT",
|
|
"text": "Calcular o frete"
|
|
}
|
|
},
|
|
"html#shipping-simulator": {
|
|
"props": {
|
|
"testId": "shipping-simulator"
|
|
},
|
|
"children": ["shipping-simulator"]
|
|
},
|
|
|
|
"share#default": {
|
|
"props": {
|
|
"social": {
|
|
"Facebook": true,
|
|
"WhatsApp": true,
|
|
"Twitter": false,
|
|
"Pinterest": true
|
|
}
|
|
}
|
|
},
|
|
"newsletter#m3-newsletter": {
|
|
"props": {
|
|
"placeholder": "Digite seu e-mail"
|
|
}
|
|
}
|
|
}
|