You won't be able to programmatically change the actual price because it is fixed @Paul2009 Ok, got it. But this https://www.myflexframe.com/shop/flexframe-dr285 is a variable product. So I am already getting user input (enter 7,7 for width, height) > calculating nearest variant > updating the variant in product dropdown (updates 9,9 for width, height dropdown) based on that.
What is not working is after the values change on dropdown, the price is not changing. But if I change the values on dropdown manually the price changes. You can check the same on the above link. So all I need to do is to trigger the price change [call the function?] but unable to do so.