How to insert Paypal Buy Now Pay Later Button

Solved
na92129
New Member
5 0 0

Update - to make it dynamic, I was able to use this for product variant

data-pp-amount= "{{ variant.price | money_without_currency | remove: "," | divide_by: 100 }}"

and this for cart total

data-pp-amount="{{ cart.total_price | money_without_currency | remove: "," | divide_by: 100 }}"

I hope this helps someone. Please note, there are probably other ways of doing this as well based on your code/theme.  However, I wanted to post as it took me a while to find a good example of of changing the $89.00 with a generic one.

0 Likes
Florian2
Shopify Expert
4 0 0

this one might be even a bit more dynamic : {{ product.selected_or_first_available_variant.price | money_without_currency }}

0 Likes