Hey Can you please explain a bit more.
to me it looks like if you want this info you need to have a domain model in plain which is storing this type of info when items are added to cart.
if yes you can fetch it from association/database based on the logic
Hope it helps.