Update variant price for installments

Highlighted
New Member
8 0 0

I implemented a code to show payments installments on my site to look like this:

Capture.JPG

 

But currently it only shows the price of the first variant, and when the price of the variant changes the price of the installments remain the same. It just update if i refresh the page. I want it to update dynamically. Can someone help?

The code is this:

<p style='font-size:18px'>ou por 3x de <span class="money" style="color:red">{{ current_variant.price | divided_by: 3 | money }}</span> sem juros</p>

0 Likes
Shopify Partner
1125 90 137

Please Share a store url to better assist

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes
New Member
8 0 0
New Member
8 0 0

any help?

0 Likes
Shopify Partner
221 15 25

@WMelo 

Because you have only update product liquid code but you need to update product variant callback to reach your requirement because when you change variant all the events handle through Javascript and Shopify backend API.

If you need any help you can directly contact me on Email or Skype at your convenience.

Thanks & Regards
Akshay Vaghasiya

Shopify Expert | E-commerce Consultant
Email: akshayvaghasiya84@gmail.com
Skype: akshayvaghasiya84
 - Want to modify or custom changes on store hire me .
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
0 Likes