Using variant price in html

ValGMB
New Member
2 0 0

Hello,

I am using the Pipeline theme. In my product template, I'm trying to add a simple sentence under the price that states "Pay in 4 installements of X$".

For the price, I'm using this: {{ current_variant.price | times: 0.0025 }}

It works, I get the variant price, divided by 4. However, when I switch variants, the price there doesn't update unless I refresh the page.

Is there a parameter or another variable I can use for the price to be updated when I change variants ?

This is what it looks like:

ValGMB_0-1636558713723.png

And when I change variants without refreshing the page:

ValGMB_1-1636558770756.png

 

Thanks !

Replies 0 (0)