The structure that controls this part of the program is selection.
Selection structures allow the program to make decisions based on user input, so if the user clicks on the cart icon, the program executes one action, and if the user clicks on the dollar sign, it executes a different action.