Modify line item output in checkout with app/function

With the deprecation of checkout.liquid next year, we’re searching for ways to replace the javascript-based customizations we have today. For example, some of our variant names have a specific convention that needs to be modified before displaying to the customer. Currently, we do this in liquid for the store and cart pages, and replace the line element’s text using jQuery in the checkout.

Since this isn’t backend logic, it doesn’t seem like something Functions would handle, but we’re also not inserting something new into the checkout pages so UI Extensions doesn’t totally fit the use case either. The thing that looks the closest is PresentmentCartLine but that seems to be read-only. Ideally, you might be able to write an app that hooks into the line item and modifies output prior to it rendering in the order summary, but that doesn’t seem possible.

Does anyone know how this might be achieved?

1 Like

Have you found a solution?

1 Like

If anyone is still looking for an answer, you can change line item title using cartTransform function, you will need to you “update” operation