From bcd2ba49c45f3e88770c0db6e2e9dd4a5220d49d Mon Sep 17 00:00:00 2001 From: devartes Date: Thu, 2 Feb 2023 18:31:49 -0300 Subject: [PATCH] feat: adicionando product-right-col.jsonc para organizar o product.jsonc --- store/blocks/pdp/product-right-col.jsonc | 90 ++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 store/blocks/pdp/product-right-col.jsonc diff --git a/store/blocks/pdp/product-right-col.jsonc b/store/blocks/pdp/product-right-col.jsonc new file mode 100644 index 0000000..d75a1fe --- /dev/null +++ b/store/blocks/pdp/product-right-col.jsonc @@ -0,0 +1,90 @@ +{ + "html#right-col": { + "props": { + "preventVerticalStretch": true, + "rowGap": 0 + }, + "children": [ + "html#identification-product", + // "product-rating-summary", + "flex-layout.row#selling-price", + "installment-product-component", + "html#pix-component", + // "product-separator", + "html#sku-selector", + // "product-quantity", + "html#cart-content", + // "product-assembly-options", + "product-gifts", + // "flex-layout.row#add-to-cart-button", + "availability-subscriber", + "shipping-simulator", + "placeholder-component" + // "share#default" + ] + }, + + "html#product-name": { + "props": { + "marginBottom": 3 + }, + "children": ["vtex.store-components:product-name"] + }, + + "html#identification-product": { + "props": { + "blockClass": "identification-product-content" + }, + "children": ["html#product-name", "product-identifier.product"] + }, + + "html#pix-component": { + "props": { + "testId": "pix-price" + }, + "children": ["pix-component"] + }, + + "html#sku-selector": { + "props": { + "testId": "sku-selector" + }, + "children": ["sku-selector"] + }, + + "sku-selector": { + "props": { + "variationsSpacing": 3, + "showValueNameForImageVariation": true, + "blockClass": "sku-selector" + } + }, + + "html#cart-content": { + "props": { + "blockClass": "cart-content" + }, + "children": ["html#product-quantity", "html#add-to-cart-button"] + }, + + "html#product-quantity": { + "props": { + "testId": "product-quantity" + }, + "children": ["product-quantity"] + }, + "html#add-to-cart-button": { + "props": { + "testId": "add-to-cart-button" + }, + "children": ["flex-layout.row#add-to-cart-button"] + }, + + "flex-layout.row#add-to-cart-button": { + "props": { + "marginTop": 4, + "marginBottom": 7 + }, + "children": ["add-to-cart-button"] + } +}