Buy now pay later calculator refresh theme

Topic summary

A user is implementing an InBank “buy now, pay later” calculator on their product page using embedded JavaScript code.

The Issue:

  • The calculator currently uses a fixed amount value (amountTotal: '400')
  • They need it to dynamically pull the actual selected product price instead
  • Cannot find how to replace the hardcoded amount with a variable that captures the current product price

Technical Context:

  • Using Refresh theme
  • Calculator widget ID: ib_calculator
  • Current configuration includes: selectPrice: false, term: 18, amountAdvance: 0
  • The user has attached a screenshot showing the calculator implementation

Status: The question remains unanswered - seeking guidance on making the calculator amount dynamic rather than static.

Summarized with AI on November 17. AI used: claude-sonnet-4-5-20250929.

Hey guys,

I am having a slight problem with a buy now pay later calculators in the product page.

I’ve been using this code:

And I cannot seem to find a replacement for “amountTotal” so that it would actually take the selected products price. I’m attaching a picture of calculator. I am using a refresh theme.

Thanks.