I am creating a product configurator app where we can have more than 3 product options. So my app allows user to create virtual variants, (Just like other apps in market). Now these variants can have additional price which I adjust in the checkout by creating draft order and returning the invoice url. However, I am struggling to show the price updates on the cart page.
How can I visually show the updated calculate price based on cart page for each line items and the total price? One solution I tried is to create my own cart page app block, which I don’t like as the cart api provides many features we could just adopt.
When looking into existing apps, I saw that they alter the cart page liquid files, and adds their own class names before the prices. So I believe they are changing the cart page texts using this classnames using javascript?