feat(product): removendo custom installment e adicionando o da vtex

This commit is contained in:
Bernardo Cunha Ernani Waldhelm 2023-02-08 12:52:36 -03:00
parent 0da4b1b3ac
commit 057340fc2a
3 changed files with 55 additions and 2 deletions

View File

@ -92,7 +92,7 @@
// "product-rating-summary", // avaliações
// "flex-layout.row#list-price-savings", preço com promoção vindo vtex
"flex-layout.row#selling-price",
"installment-component",
"html#installment-component",
"html#pix-component",
// "product-separator", //linha que separa preço de skus
"html#sku-selector",
@ -108,7 +108,8 @@
"flex-layout.row#product-name": {
"props": {
"blockClass": "product__name"
"blockClass": "product__name",
"testId": "product-name"
},
"children": ["vtex.store-components:product-name"]
},
@ -128,6 +129,26 @@
}
},
"html#installment-component": {
"props": {
"tag": "span",
"testId": "product-installments"
},
"children": ["product-installments#installment"]
},
"product-installments#installment": {
"props": {
"markers": ["portion"],
"installmentOptionsFilter": {
"paymenSystemName": "Mastercard",
"installmentsQuantity": 4
},
"message": "{installmentsNumber}x <portion>de</portion> {installmentValue} <portion>sem juros</portion>",
"blockClas": "installment"
}
},
"html#pix-component": {
"props": {
"tag": "section",

View File

@ -14,4 +14,19 @@
font-size: 25px;
line-height: 38px;
color: #000;
}
.installments {
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 22px;
margin: 0;
padding: 0;
height: 22px;
color: #929292;
}
.installments .installments-portion {
font-weight: 400;
}

View File

@ -5,3 +5,20 @@
line-height: 38px;
color: $color-black0;
}
.installments {
font-family: 'Open Sans', sans-serif;
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 22px;
margin: 0;
padding: 0;
height: 22px;
color: #929292;
.installments-portion {
font-weight: 400;
}
}