Installments disappear after selecting another variant

hello guys.

I’m edited the product-template.liquid

In the span id=“ProductPrice”, I changed this line:

 <font><b>{{ current_variant.price | money }}</b></font><br>
                <b><font color="red"><b>ou 4x de {{ current_variant.price | divided_by: 4.00 | money }} <br>sem juros</b></font>

In pages where I have variants with the same price, no problema.

In pages where I have variants with different prices, the value load correctly, but when I change the variant, going to one that has other price, the value disappear.

Can you help me please?

1 Like

same problem.. Currently mine looks like this:

{% if variant.price == this.currentVariant.price %}

ou por 3x de {{ current_variant.price | divided_by: 3 | money }} sem juros

{% else %} {{ variant.title }} - {{ 'products.product.sold_out' | t }} {% endif %}

I think its necessary call a function that will update the price dinamically. but i dont know wich function to call

1 Like

eaí cara, como resolveu esse problema?

Hi

You have to enable “clearpay_product_integration_enabled” in your theme.liquid

Once that is enabled the clear pay will work with variations.