Nos empenhamos em proporcionar a melhor experiência de compra possível. Por isso, implementamos uma tabela de parcelamento que oferece diversos benefícios para você.
Com nossa tabela de parcelamento, seu cliente pode visualizar todas as opções de pagamento disponíveis antes de finalizar sua compra. Isso significa que ele poderá escolher a opção que melhor se adequa ao seu orçamento, sabendo exatamente quanto pagará em cada parcela, sem surpresas no checkout.
Esse script funciona em qualquer tema shopify 2.0
{% assign selected_variant = product.selected_or_first_available_variant %}
{% assign discount_pix = selected_variant.price | times: block.settings.times_pix | divided_by: 100 %}
{% assign discount_billet = selected_variant.price | times: block.settings.times_boleto | divided_by: 100 %}
{% assign parcelas_sem_juros = block.settings.parcelas_sem_juros | plus: 0 %}
{% assign qt_parcelas_sem_juros = block.settings.qt_parcelas_sem_juros | plus: 0 %}
{% assign porcentagem_parcela_1x = block.settings.times_parcela_1x | replace: ',', '.' %}
{% assign porcentagem_parcela_2x = block.settings.times_parcela_2x | replace: ',', '.' %}
{% assign porcentagem_parcela_3x = block.settings.times_parcela_3x | replace: ',', '.' %}
{% assign porcentagem_parcela_4x = block.settings.times_parcela_4x | replace: ',', '.' %}
{% assign porcentagem_parcela_5x = block.settings.times_parcela_5x | replace: ',', '.' %}
{% assign porcentagem_parcela_6x = block.settings.times_parcela_6x | replace: ',', '.' %}
{% assign porcentagem_parcela_7x = block.settings.times_parcela_7x | replace: ',', '.' %}
{% assign porcentagem_parcela_8x = block.settings.times_parcela_8x | replace: ',', '.' %}
{% assign porcentagem_parcela_9x = block.settings.times_parcela_9x | replace: ',', '.' %}
{% assign porcentagem_parcela_10x = block.settings.times_parcela_10x | replace: ',', '.' %}
{% assign porcentagem_parcela_11x = block.settings.times_parcela_11x | replace: ',', '.' %}
{% assign porcentagem_parcela_12x = block.settings.times_parcela_12x | replace: ',', '.' %}
{% assign times_parcela_1x = selected_variant.price | times: porcentagem_parcela_1x | divided_by: 100.0 %}
{% assign times_parcela_2x = selected_variant.price | times: porcentagem_parcela_2x | divided_by: 100 %}
{% assign times_parcela_3x = selected_variant.price | times: porcentagem_parcela_3x | divided_by: 100 %}
{% assign times_parcela_4x = selected_variant.price | times: porcentagem_parcela_4x | divided_by: 100 %}
{% assign times_parcela_5x = selected_variant.price | times: porcentagem_parcela_5x | divided_by: 100 %}
{% assign times_parcela_6x = selected_variant.price | times: porcentagem_parcela_6x | divided_by: 100 %}
{% assign times_parcela_7x = selected_variant.price | times: porcentagem_parcela_7x | divided_by: 100 %}
{% assign times_parcela_8x = selected_variant.price | times: porcentagem_parcela_8x | divided_by: 100 %}
{% assign times_parcela_9x = selected_variant.price | times: porcentagem_parcela_9x | divided_by: 100 %}
{% assign times_parcela_10x = selected_variant.price | times: porcentagem_parcela_10x | divided_by: 100 %}
{% assign times_parcela_11x = selected_variant.price | times: porcentagem_parcela_11x | divided_by: 100 %}
{% assign times_parcela_12x = selected_variant.price | times: porcentagem_parcela_12x | divided_by: 100 %}
{% if block.settings.visa_card %}{% endif %}
{% if block.settings.master_card %} {% endif %}
{% if block.settings.americanex_card %}{% endif %}
{% if block.settings.elo_card %}{% endif %}
{% if block.settings.hiper_card %} {% endif %}
{% if block.settings.boleto %}{% endif %}
{% if block.settings.dinersclub_card %} {% endif %}
{% if block.settings.caixa_card %}{% endif %}
{% if block.settings.paypal_card %}{% endif %}
{% if block.settings.picpay_card %}{% endif %}
{% if block.settings.mp_card %}{% endif %}
Parcelas
{% if 1 <= qt_parcelas_sem_juros %}
1x de
{{ selected_variant.price | minus: times_parcela_1x | money }}{% if 1 <= parcelas_sem_juros %} á vista{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 2 <= qt_parcelas_sem_juros %}
2x de
{{ selected_variant.price | plus: times_parcela_2x | divided_by: 2.0 | money }}{% if 2 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 3 <= qt_parcelas_sem_juros %}
3x de
{{ selected_variant.price | plus: times_parcela_3x | divided_by: 3.0 | money }}{% if 3 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 4 <= qt_parcelas_sem_juros %}
4x de
{{ selected_variant.price | plus: times_parcela_4x | divided_by: 4.0 | money }}{% if 4 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 5 <= qt_parcelas_sem_juros %}
5x de
{{ selected_variant.price | plus: times_parcela_5x | divided_by: 5.0 | money }}{% if 5 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 6 <= qt_parcelas_sem_juros %}
6x de
{{ selected_variant.price | plus: times_parcela_6x | divided_by: 6.0 | money }}{% if 6 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
*Com juros.
{% if 7 <= qt_parcelas_sem_juros %}
7x de
{{ selected_variant.price | plus: times_parcela_7x | divided_by: 7.0 | money }}{% if 7 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 8 <= qt_parcelas_sem_juros %}
8x de
{{ selected_variant.price | plus: times_parcela_8x | divided_by: 8.0 | money }}{% if 8 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 9 <= qt_parcelas_sem_juros %}
9x de
{{ selected_variant.price | plus: times_parcela_9x | divided_by: 9.0 | money }}{% if 9 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 10 <= qt_parcelas_sem_juros %}
10x de
{{ selected_variant.price | plus: times_parcela_10x | divided_by: 10.0 | money }}{% if 10 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 11 <= qt_parcelas_sem_juros %}
11x de
{{ selected_variant.price | plus: times_parcela_11x | divided_by: 11.0 | money }}{% if 11 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if 12 <= qt_parcelas_sem_juros %}
12x de
{{ selected_variant.price | plus: times_parcela_12x | divided_by: 12.0 | money }}{% if 12 <= parcelas_sem_juros %} sem juros{%- else -%}*{%- endif -%}
{%- endif -%}
{% if block.settings.ocultar_guia_boleto_tabela_de_parcelamento %}
{{ block.settings.msg_desconto_boleto_tabela_de_parcelamento}}
{{ selected_variant.price | minus: discount_billet | money }}
{% endif %}
{% if block.settings.ocultar_guia_pix_tabela_de_parcelamento %}
{{ block.settings.msg_desconto_pix_tabela_de_parcelamento}}
{{ selected_variant.price | minus: discount_pix | money }}
{% endif %}
{
"type": "tabela_de_parcelamento",
"name": "Tabela de parcelamento",
"settings": [
{
"type": "header",
"content": "🔴 Identificar preço"
},
{
"type": "text",
"id": "price_regular",
"label": "Preço comparativo"
},
{
"type": "text",
"id": "price_sale",
"label": "Preço em oferta"
},
{
"type": "text",
"id": "observer_block",
"label": "Bloco do preço"
},
{
"type": "header",
"content": "🔴 Identificar seletor de quantidade"
},
{
"type": "text",
"id": "input_element",
"label": "Seletor de quantidade (input)"
},
{
"type": "text",
"id": "button_input_element",
"label": "Seletor de quantidade (botões)"
},
{
"type": "header",
"content": "🔴 Configurações gerais"
},
{
"type": "color",
"id": "background",
"label": "Cor de fundo",
"default": "#fff"
},
{
"type": "color",
"id": "text_color",
"label": "Cor do texto",
"default": "#1a1a1a"
},
{
"type": "color",
"id": "border_color",
"label": "Cor da borda",
"default": "#dadada"
},
{
"type": "checkbox",
"id": "exibir_tabela_de_parcelamento_aberta",
"label": "Exibir tabela aberta",
"default": true
},
{
"type": "checkbox",
"id": "ocultar_guia_boleto_tabela_de_parcelamento",
"label": "Exibir guia do boleto",
"default": true
},
{
"type": "checkbox",
"id": "ocultar_guia_pix_tabela_de_parcelamento",
"label": "Exibir guia do pix",
"default": true
},
{
"type": "select",
"id": "qt_parcelas_sem_juros",
"label": "Quantidade de parcelas a exibir",
"options": [
{
"value": "1",
"label": "Parcela 1x"
},
{
"value": "2",
"label": "Parcela 2x"
},
{
"value": "3",
"label": "Parcela 3x"
},
{
"value": "4",
"label": "Parcela 4x"
},
{
"value": "5",
"label": "Parcela 5x"
},
{
"value": "6",
"label": "Parcela 6x"
},
{
"value": "7",
"label": "Parcela 7x"
},
{
"value": "8",
"label": "Parcela 8x"
},
{
"value": "9",
"label": "Parcela 9x"
},
{
"value": "10",
"label": "Parcela 10x"
},
{
"value": "11",
"label": "Parcela 11x"
},
{
"value": "12",
"label": "Parcela 12x"
}
],
"default": "12"
},
{
"type": "select",
"id": "parcelas_sem_juros",
"label": "Definir parcelas sem juros",
"options": [
{
"value": "0",
"label": "nenhuma parcela sem juros"
},
{
"value": "1",
"label": "1 - parcela sem juros"
},
{
"value": "2",
"label": "2 - parcelas sem juros"
},
{
"value": "3",
"label": "3 - parcelas sem juros"
},
{
"value": "4",
"label": "4 - parcelas sem juros"
},
{
"value": "5",
"label": "5 - parcelas sem juros"
},
{
"value": "6",
"label": "6 - parcelas sem juros"
},
{
"value": "7",
"label": "7 - parcelas sem juros"
},
{
"value": "8",
"label": "8 - parcelas sem juros"
},
{
"value": "9",
"label": "9 - parcelas sem juros"
},
{
"value": "10",
"label": "10 - parcelas sem juros"
},
{
"value": "11",
"label": "11 - parcelas sem juros"
},
{
"value": "12",
"label": "12 - parcelas sem juros"
}
],
"default": "6"
},
{
"type": "range",
"id": "arredondamento_tabela_parcelamento",
"label": "Arredondamento da borda",
"min": 0,
"max": 30,
"step": 1,
"unit": "px",
"default": 10
},
{
"type": "range",
"id": "espacamento_superior",
"label": "Espaçamento superior",
"min": -40,
"max": 40,
"step": 1,
"unit": "px",
"default": 25
},
{
"type": "range",
"id": "espacamento_inferior",
"label": "Espaçamento inferior",
"min": -40,
"max": 40,
"step": 1,
"unit": "px",
"default": 25
},
{
"type": "paragraph",
"content": "Escolha os meios de pagamento"
},
{
"type": "checkbox",
"id": "visa_card",
"label": "Visa",
"default": true
},
{
"type": "checkbox",
"id": "master_card",
"label": "Mastercard",
"default": true
},
{
"type": "checkbox",
"id": "americanex_card",
"label": "American Express",
"default": true
},
{
"type": "checkbox",
"id": "elo_card",
"label": "Elo",
"default": true
},
{
"type": "checkbox",
"id": "hiper_card",
"label": "Hipercard",
"default": true
},
{
"type": "checkbox",
"id": "boleto",
"label": "Boleto",
"default": false
},
{
"type": "checkbox",
"id": "dinersclub_card",
"label": "Diners Club",
"default": false
},
{
"type": "checkbox",
"id": "caixa_card",
"label": "Caixa",
"default": false
},
{
"type": "checkbox",
"id": "paypal_card",
"label": "PayPal",
"default": false
},
{
"type": "checkbox",
"id": "picpay_card",
"label": "PicPay",
"default": false
},
{
"type": "checkbox",
"id": "mp_card",
"label": "Mercado Pago",
"default": false
},
{
"type": "text",
"id": "msg_desconto_boleto_tabela_de_parcelamento",
"label": "Mensagem de desconto BOLETO",
"default": "ᅠ"
},
{
"type": "text",
"id": "msg_desconto_pix_tabela_de_parcelamento",
"label": "Mensagem de desconto PIX",
"default": "10% de Desconto no Pix |"
},
{
"type": "header",
"content": "🔴 Parcelamento | Desconto"
},
{
"type": "number",
"id": "times_boleto",
"label": "Desconto boleto (%)",
"default": 0
},
{
"type": "number",
"id": "times_pix",
"label": "Desconto Pix (%)",
"default": 10
},
{
"type": "number",
"id": "times_parcela_1x",
"label": "Desconto (%) parcela 1x",
"default": 0
},
{
"type": "text",
"id": "times_parcela_2x",
"label": "Porcentagem juros (%) parcela 2x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_3x",
"label": "Porcentagem juros (%) parcela 3x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_4x",
"label": "Porcentagem juros (%) parcela 4x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_5x",
"label": "Porcentagem juros (%) parcela 5x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_6x",
"label": "Porcentagem juros (%) parcela 6x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_7x",
"label": "Porcentagem juros (%) parcela 7x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_8x",
"label": "Porcentagem juros (%) parcela 8x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_9x",
"label": "Porcentagem juros (%) parcela 9x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_10x",
"label": "Porcentagem juros (%) parcela 10x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_11x",
"label": "Porcentagem juros (%) parcela 11x",
"default": "0"
},
{
"type": "text",
"id": "times_parcela_12x",
"label": "Porcentagem juros (%) parcela 12x",
"default": "0"
}
]
},
{%- when 'tabela_de_parcelamento' -%}
{% render 'tabela-de-parcelamento', block: block %}
Tema (Dawn)
Preço comparativo:
.product__info-wrapper .price-item--regular
Preço em oferta:
.product__info-wrapper .price-item--sale
Bloco do preço:
.product__info-wrapper
Tema (Warehouse)
Preço comparativo:
.product-form__info-item .price--compare
Preço em oferta:
.product-form__info-item .price--highlight, .product-form__info-item .price
Bloco do preço:
.product-form__info-item
Tema (Dropmeta)
Preço comparativo:
.product-form__info-item .price--compare
Preço em oferta:
.product-form__info-item .price--highlight
Bloco do preço:
.product-form__info-item
Tema (Impact)
Preço comparativo:
.product-info__price compare-at-price
Preço em oferta:
.product-info__price sale-price
Bloco do preço:
.product-info__price
Tema (Focal) | (Vision nichado)
Preço comparativo:
.product-meta__price-list-container .price–compare
Preço em oferta:
.product-meta__price-list-container .price–highlight, .product-meta__price-list-container .price
Bloco do preço:
.product-meta__price-list-container
Tema (Kalles)
Preço comparativo:
.t4s-product__price-review .t4s-product-price del, .t4s-product__price-review .t4s-product-price
Preço em oferta:
.t4s-product__price-review .t4s-product-price ins
Bloco do preço:
.t4s-product__price-review
Tema (Ella)
Preço comparativo:
.productView-price .price__compare .price-item
Preço em oferta:
.productView-price .price__last .price-item
Bloco do preço:
.productView-price