How get diffrent text from the same object?

In the application I have products which I add to the cart. After this I go to the summary of purchases and i would like check the items I add are in the cart.