code for checking out selected item sets in cart