Add function to shopping cart.