How do detect when if new item was added to the basket?

I am developing a custom theme. How can i detect if a new article has been added to the cart? Is there a built in function that i can call or assign a boolean variable in the templates?

Thanks in advance.

New items in basket are handled by smarty plugin insert.oxid_newbasketitem.php. A template of your choice can be inserted in case an item was added. Search for “insert name=“oxid_newbasketitem”” in azure template.