0

I'm implementing a Paypal Pay in 4 message and can't figure out how to update the message with the price of the currently selected product option. Is this functionality available?

I'm currently using product.default_price, but for products with a variable price I have to display the default paypal message where I would prefer to use the price of the currently selected option as reflected in the "Add to Cart" button. The html for the theme I am using doesn't reveal how that data is obtained.

Paypal message:

<div
    data-pp-message
    data-pp-style-layout="text"
    data-pp-style-logo-type="primary"
    data-pp-style-text-color="black"
    data-pp-amount="{{ product.default_price }}">
</div>

Thanks for any suggestions.

r-cpr
  • 1

0 Answers0