forked from M3-Academy/challenge-vtex-io
424 lines
8.9 KiB
Plaintext
424 lines
8.9 KiB
Plaintext
{
|
|
"store.product": {
|
|
"children": [
|
|
"html#breadcrumb",
|
|
"condition-layout.product#availability",
|
|
"html#product-description",
|
|
"rich-text#textproducts",
|
|
"list-context.product-list#produtos",
|
|
"rich-text#textnewsletter",
|
|
"newsletter",
|
|
"product-questions-and-answers"
|
|
]
|
|
},
|
|
|
|
"ProductContext": {
|
|
"props": {}
|
|
},
|
|
|
|
"newsletter": {
|
|
"props": {
|
|
"text": "Você também pode gostar:"
|
|
}
|
|
},
|
|
|
|
"rich-text#textnewsletter": {
|
|
"props": {
|
|
"textAlignment": "CENTER",
|
|
"textPosition": "CENTER",
|
|
"text": "Receba ofertas e novidades por e-mail",
|
|
"id": "textNewsletter",
|
|
"blockClass": "textNewsletter"
|
|
}
|
|
},
|
|
|
|
"rich-text#textproducts": {
|
|
"props": {
|
|
"textAlignment": "CENTER",
|
|
"textPosition": "CENTER",
|
|
"text": "Você também pode gostar:"
|
|
}
|
|
},
|
|
|
|
"html#prateleira": {
|
|
"props": { "testId": "vtex-product-summary" },
|
|
"children": [
|
|
"product-summary-image#shelf",
|
|
"product-summary-name",
|
|
"product-list-price",
|
|
"product-selling-price#summary"
|
|
]
|
|
},
|
|
|
|
"product-summary.shelf#demo1": {
|
|
"props": {},
|
|
"children": ["html#prateleira"]
|
|
},
|
|
"list-context.product-list#produtos": {
|
|
"blocks": ["product-summary.shelf#demo1"],
|
|
"children": ["html#slider"]
|
|
},
|
|
|
|
"html#slider": {
|
|
"props": { "testId": "product-summary-list" },
|
|
"children": ["slider-layout#demo-products"]
|
|
},
|
|
|
|
"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": {
|
|
"width": {
|
|
"tablet": "100%"
|
|
},
|
|
"marginBottom": 7
|
|
},
|
|
"children": ["image#tab", "product-description"]
|
|
},
|
|
"condition-layout.product#availability": {
|
|
"props": {
|
|
"blockClass": "produtoHome",
|
|
"id": "produtoHome",
|
|
"conditions": [
|
|
{
|
|
"subject": "isProductAvailable"
|
|
}
|
|
],
|
|
"Then": "flex-layout.row#product-main",
|
|
"Else": "flex-layout.row#product-availability"
|
|
}
|
|
},
|
|
"flex-layout.row#product-main": {
|
|
"props": {
|
|
"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": {
|
|
"props": { "blockClass": "product-images" },
|
|
"children": ["html#product-images"]
|
|
},
|
|
"product-images": {
|
|
"props": {
|
|
"blockClass": "product-images",
|
|
"contentType": "images",
|
|
"showNavigationArrows": false,
|
|
"showPaginationDots": false,
|
|
"thumbnailsOrientation": "horizontal",
|
|
"aspectRatio": {
|
|
"desktop": "auto",
|
|
"phone": "auto"
|
|
},
|
|
"displayThumbnailsArrows": true
|
|
}
|
|
},
|
|
|
|
"html#shipping-simulator": {
|
|
"props": {
|
|
"blockClass": "shipping",
|
|
"testId": "shipping-simulator"
|
|
},
|
|
"children": ["shipping-simulator"]
|
|
},
|
|
|
|
"html#product-images": {
|
|
"props": {
|
|
"blockClass": "product-images",
|
|
"testId": "product-images"
|
|
},
|
|
"children": ["product-images"]
|
|
},
|
|
|
|
"flex-layout.col#right-col": {
|
|
"props": {
|
|
"preventVerticalStretch": true,
|
|
"rowGap": 0
|
|
},
|
|
"children": [
|
|
"flex-layout.row#product-name",
|
|
"html#codigo",
|
|
"product-rating-summary",
|
|
"flex-layout.row#list-price-savings",
|
|
"html#selling-price",
|
|
"html#product-installments",
|
|
"html#pix",
|
|
"html#sku-selector",
|
|
"html#product-quantity",
|
|
"product-gifts",
|
|
"flex-layout.row#buy-button",
|
|
"availability-subscriber",
|
|
"html#shipping-simulator"
|
|
]
|
|
},
|
|
|
|
"html#selling-price": {
|
|
"props": { "testId": "product-price" },
|
|
"children": ["flex-layout.row#selling-price"]
|
|
},
|
|
|
|
"html#sku-selector": {
|
|
"props": { "testId": "sku-selector" },
|
|
"children": ["sku-selector"]
|
|
},
|
|
|
|
"html#pix": {
|
|
"props": { "testId": "pix-price", "blockClass": "pix" },
|
|
"children": ["ProductContext"]
|
|
},
|
|
|
|
"html#product-installments": {
|
|
"props": { "testId": "product-installments" },
|
|
"children": ["product-installments"]
|
|
},
|
|
|
|
"image#tab": {
|
|
"props": {
|
|
"src": "assets/img-sapato.png"
|
|
}
|
|
},
|
|
|
|
"tab-layout": {
|
|
"children": ["tab-list#home", "tab-content#home"],
|
|
"props": {
|
|
"blockClass": "home",
|
|
"defaultActiveTabId": "home1"
|
|
}
|
|
},
|
|
|
|
"html#product-description": {
|
|
"props": { "testId": "product-description" },
|
|
"children": ["tab-layout"]
|
|
},
|
|
|
|
"tab-list#home": {
|
|
"children": [
|
|
"tab-list.item#home1",
|
|
"tab-list.item#home2",
|
|
"tab-list.item#home3",
|
|
"tab-list.item#home4",
|
|
"tab-list.item#home5"
|
|
]
|
|
},
|
|
"tab-list.item#home1": {
|
|
"props": {
|
|
"tabId": "home1",
|
|
"label": "Descrição",
|
|
"defaultActiveTab": true
|
|
}
|
|
},
|
|
"tab-list.item#home2": {
|
|
"props": {
|
|
"tabId": "home2",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-list.item#home3": {
|
|
"props": {
|
|
"tabId": "home3",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
|
|
"tab-list.item#home4": {
|
|
"props": {
|
|
"tabId": "home4",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
|
|
"tab-list.item#home5": {
|
|
"props": {
|
|
"tabId": "home5",
|
|
"label": "Descrição"
|
|
}
|
|
},
|
|
"tab-content#home": {
|
|
"children": [
|
|
"tab-content.item#home1",
|
|
"tab-content.item#home2",
|
|
"tab-content.item#home3",
|
|
"tab-content.item#home4",
|
|
"tab-content.item#home5"
|
|
]
|
|
},
|
|
"tab-content.item#home1": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "home1"
|
|
}
|
|
},
|
|
"tab-content.item#home2": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "home2"
|
|
}
|
|
},
|
|
|
|
"tab-content.item#home3": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "home3"
|
|
}
|
|
},
|
|
|
|
"tab-content.item#home4": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "home4"
|
|
}
|
|
},
|
|
|
|
"tab-content.item#home5": {
|
|
"children": ["flex-layout.row#description"],
|
|
"props": {
|
|
"tabId": "home5"
|
|
}
|
|
},
|
|
|
|
"product-installments": {
|
|
"props": {
|
|
"installmentsCriteria": "max-quantity-without-interest",
|
|
"markers": ["discount", "vezes"],
|
|
"blockClass": "m3-custom-installments",
|
|
"message": "{installmentsNumber}<vezes>x</vezes> de {installmentValue} <discount>sem juros</discount>"
|
|
}
|
|
},
|
|
|
|
"flex-layout.row#product-name": {
|
|
"props": {
|
|
"marginBottom": 3
|
|
},
|
|
"children": ["html#product-name"]
|
|
},
|
|
|
|
"html#product-name": {
|
|
"props": { "testId": "product-name" },
|
|
"children": ["vtex.store-components:product-name"]
|
|
},
|
|
|
|
"sku-selector": {
|
|
"props": {
|
|
"variationsSpacing": 3,
|
|
"showValueNameForImageVariation": true
|
|
}
|
|
},
|
|
|
|
"flex-layout.row#buy-button": {
|
|
"props": {
|
|
"paddingTop": 0,
|
|
"marginTop": 4,
|
|
"marginBottom": 7,
|
|
"blockClass": "button-cart"
|
|
},
|
|
"children": ["html#add-to-cart-button"]
|
|
},
|
|
|
|
"product-quantity": {
|
|
"props": {}
|
|
},
|
|
"html#product-quantity": {
|
|
"props": { "testId": "product-quantity" },
|
|
"children": ["product-quantity"]
|
|
},
|
|
|
|
"html#add-to-cart-button": {
|
|
"props": {
|
|
"testId": "add-to-cart-button"
|
|
},
|
|
"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",
|
|
"html#codigo",
|
|
"flex-layout.row#availability",
|
|
"sku-selector"
|
|
]
|
|
},
|
|
|
|
"html#codigo": {
|
|
"props": { "blockClass": "codigo", "testId": "product-code" },
|
|
"children": ["product-identifier.product"]
|
|
},
|
|
|
|
"flex-layout.row#availability": {
|
|
"props": {
|
|
"blockClass": "message-availability"
|
|
},
|
|
"children": ["availability-subscriber"]
|
|
},
|
|
|
|
"share#default": {
|
|
"props": {
|
|
"social": {
|
|
"Facebook": true,
|
|
"WhatsApp": true,
|
|
"Twitter": false,
|
|
"Pinterest": true
|
|
}
|
|
}
|
|
}
|
|
}
|