255 lines
5.7 KiB
Plaintext
255 lines
5.7 KiB
Plaintext
{
|
|
"store.product": {
|
|
"children": [
|
|
"html#breadcrumb",
|
|
"placeholder-component",
|
|
"condition-layout.product#availability",
|
|
"html#product-description",
|
|
// "flex-layout.row#specifications-title",
|
|
// "product-specification-group#table",
|
|
// "shelf.relatedProducts",
|
|
"html#slider-block-container"
|
|
// "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": {
|
|
"colGap": 7,
|
|
"rowGap": 7,
|
|
"marginTop": 4,
|
|
"marginBottom": 7,
|
|
"paddingTop": 7,
|
|
"paddingBottom": 7,
|
|
"blockClass": "product__image"
|
|
},
|
|
"children": ["flex-layout.col#stack", "flex-layout.col#right-col"]
|
|
},
|
|
|
|
"stack-layout": {
|
|
"props": {
|
|
"blockClass": "product"
|
|
},
|
|
"children": [
|
|
"html#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": "50%",
|
|
"rowGap": 0
|
|
}
|
|
},
|
|
"flex-layout.col#right-col": {
|
|
"props": {
|
|
"preventVerticalStretch": true,
|
|
"rowGap": 0,
|
|
"blockClass": "product-skus"
|
|
},
|
|
"children": [
|
|
"html#flex-layout.row#product-name",
|
|
"html#codigo",
|
|
// "product-rating-summary", // avaliações
|
|
// "flex-layout.row#list-price-savings", preço com promoção vindo vtex
|
|
"html#selling-price",
|
|
"html#installment-component",
|
|
"html#pix-component",
|
|
// "product-separator", //linha que separa preço de skus
|
|
"html#sku-selector",
|
|
"flex-layout.row#quantity-and-button",
|
|
// "product-assembly-options",
|
|
// "product-gifts",
|
|
// "flex-layout.row#buy-button",
|
|
"availability-subscriber",
|
|
"html#shipping-simulator"
|
|
// "share#default" //reder social
|
|
]
|
|
},
|
|
|
|
"html#flex-layout.row#product-name": {
|
|
"props": {
|
|
"blockClass": "product__name",
|
|
"testId": "product-name"
|
|
},
|
|
"children": ["vtex.store-components:product-name"]
|
|
},
|
|
|
|
"html#codigo": {
|
|
"props": {
|
|
"testId": "product-code"
|
|
},
|
|
"children": ["product-identifier.product"]
|
|
},
|
|
|
|
"html#selling-price": {
|
|
"props": {
|
|
"testId": "product-price",
|
|
"tag": "span"
|
|
},
|
|
"children": ["flex-layout.row#selling-price"]
|
|
},
|
|
|
|
"html#sku-selector": {
|
|
"props": {
|
|
"testId": "sku-selector"
|
|
},
|
|
"children": ["sku-selector"]
|
|
},
|
|
|
|
"sku-selector": {
|
|
"props": {
|
|
"variationsSpacing": 3,
|
|
"showValueNameForImageVariation": true,
|
|
"blockClass": "sku-product"
|
|
}
|
|
},
|
|
|
|
"html#installment-component": {
|
|
"props": {
|
|
"tag": "span",
|
|
"testId": "product-installments"
|
|
},
|
|
"children": ["product-installments#installment"]
|
|
},
|
|
|
|
"product-installments#installment": {
|
|
"props": {
|
|
"markers": ["portion", "portion2"],
|
|
"installmentOptionsFilter": {
|
|
"paymentSystemName": "Mastercard",
|
|
"installmentsQuantity": 4
|
|
},
|
|
"message": "{installmentsNumber}x <portion>de</portion> {installmentValue} <portion2>sem juros</portion2>",
|
|
"blockClas": "installment"
|
|
}
|
|
},
|
|
|
|
"html#pix-component": {
|
|
"props": {
|
|
"tag": "section",
|
|
"testId": "pix-price",
|
|
"blockClass": "pix-component"
|
|
},
|
|
"children": ["pix-component"]
|
|
},
|
|
|
|
"html#product-quantity": {
|
|
"props": {
|
|
"blockClass": "product-quantity",
|
|
"tag": "section",
|
|
"testId": "product-quantity"
|
|
},
|
|
"children": ["product-quantity"]
|
|
},
|
|
|
|
"html#button-addCart": {
|
|
"props": {
|
|
"tag": "section",
|
|
"testId": "add-to-cart-button",
|
|
"blockClass": "buy-button"
|
|
},
|
|
"children": ["flex-layout.row#buy-button"]
|
|
},
|
|
|
|
"flex-layout.row#buy-button": {
|
|
"props": {
|
|
"blockClass": "buy-button",
|
|
"width": "100%"
|
|
},
|
|
"children": ["add-to-cart-button"]
|
|
},
|
|
|
|
"flex-layout.row#quantity-and-button": {
|
|
"props":{
|
|
"tag": "section",
|
|
"blockClass": "quantityButton"
|
|
},
|
|
"children": ["html#product-quantity","html#button-addCart"]
|
|
},
|
|
|
|
"html#shipping-simulator": {
|
|
"props":{
|
|
"blockClass": "cep",
|
|
"testId": "shipping-simulator"
|
|
},
|
|
"children": ["shipping-simulator"]
|
|
},
|
|
|
|
"flex-layout.row#product-availability": {
|
|
"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#codigo",
|
|
"flex-layout.row#availability",
|
|
"sku-selector"
|
|
]
|
|
},
|
|
"flex-layout.row#availability": {
|
|
"props": {
|
|
"blockClass": "message-availability"
|
|
},
|
|
"children": ["availability-subscriber"]
|
|
},
|
|
|
|
"share#default": {
|
|
"props": {
|
|
"social": {
|
|
"Facebook": true,
|
|
"WhatsApp": true,
|
|
"Twitter": false,
|
|
"Pinterest": true
|
|
}
|
|
}
|
|
}
|
|
}
|