The structure that controls this part of the program is selection.
Selection structures allow the program to choose between different actions based on certain conditions, such as clicking the cart icon to load the shopping cart or clicking the dollar sign to load the sales items.