How to update PayPal installment message with variant price change in Shopify?

New Member
5 0 0

I'm currently using a code to display a PayPal message ("pay in 4 installments") on my product page. However, I've noticed that when I select different product variants, the price doesn't update automatically. I have to refresh the page for the updated price to show. Is there a way to make the price update instantly without needing to refresh the page?


Here's the code I'm using:



data-pp-amount="{{ current_variant.price | money_without_currency }}"



Any help would be greatly appreciated. Thank you!

Replies 0 (0)