From e42f8649ab3adde88578a4989136ee5342481eb7 Mon Sep 17 00:00:00 2001 From: vitorsoaresdev Date: Mon, 30 Jan 2023 12:11:04 -0300 Subject: [PATCH] feat: adiciona carrossel --- store/blocks/pdp/product.jsonc | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/store/blocks/pdp/product.jsonc b/store/blocks/pdp/product.jsonc index 8c283df..46c3964 100644 --- a/store/blocks/pdp/product.jsonc +++ b/store/blocks/pdp/product.jsonc @@ -7,11 +7,13 @@ // "flex-layout.row#description", // "flex-layout.row#specifications-title", // "product-specification-group#table", - "shelf.relatedProducts", + // "shelf.relatedProducts", + "list-context.product-list#carousel-list", "product-questions-and-answers", "newsletter" ] }, + "html#breadcrumb": { "props": { "tag": "section", @@ -158,7 +160,7 @@ "props": { "blockClass": "tab-render", "tabId": "product1", - "label": "Drescrição", + "label": "Descrição", "defaultActiveTab": true } }, @@ -277,6 +279,34 @@ // ] // }, + // CARROSSEL DE PRODUTOS + "list-context.product-list#carousel-list": { + "blocks": ["product-summary.shelf#carousel-shelf"], + "children": ["slider-layout#carousel"] + }, + + "product-summary.shelf#carousel-shelf": { + "children": [ + "product-summary-image", + "product-summary-name", + "product-summary-price" + ] + }, + + "slider-layout#carousel": { + "props": { + "itemsPerPage": { + "desktop": 4, + "tablet": 1, + "phone": 1 + }, + "infinite": true, + "showNavigationArrows": "desktopOnly", + "blockClass": "carousel" + } + }, + + "flex-layout.row#product-name": { "props": { "marginBottom": 3