Set up a function to get the name and price from a list item when you click on an add cart button.