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

fawwadmirza
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:

 

 

<div
data-pp-message
data-pp-placement="product"
data-pp-amount="{{ current_variant.price | money_without_currency }}"
data-pp-style-layout="text"
></div>

 

 

Any help would be greatly appreciated. Thank you!

Replies 0 (0)