Installments disappear after selecting another variant

Installments disappear after selecting another variant

rabatini
Visitor
1 0 1

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?

Replies 3 (3)

WMelo
Tourist
8 0 2

same problem.. Currently mine looks like this:

 

{% if variant.price == this.currentVariant.price %}
<p style='font-size:18px'>ou por 3x de <span class="money" style="color:#E80970"><strong>{{ current_variant.price | divided_by: 3 | money }}</strong></span> sem juros</p>
{% else %}
<option disabled="disabled">
{{ variant.title }} - {{ 'products.product.sold_out' | t }}
</option>
{% endif %}

 

 

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

vag1
Visitor
2 0 0

eaí cara, como resolveu esse problema?

22Deepak
Shopify Partner
1 0 0

Hi 

You have to enable "clearpay_product_integration_enabled" in your theme.liquid

22Deepak_0-1669960141020.png

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

22Deepak_1-1669960203533.png