How can I display the last item added in the cart using liquid code?

Does anyone know if and how I could display in the cart page information about the last product that someone put in the cart.

I mean like

YOU JUST ADDED> > product title product id *product price"

Is there a way to add liquid like last_item_added.line.price ?

Or (because the last item is the previews page) like previous_url.line.item.id ??

I found a way.

I added “limit:1”, that gets only the first product in the cart. First product in the cart is the last added in the cart

{% for item in cart.items limit:1 %}{{ item.variant.id }} {% endfor %}

Hey @GeorgeKerr ,

Does this work if the most recently added product was a duplicate of a product already in the cart?