SCC_SC_ADDITEM

This service operation adds a single or multiple items to a user's shopping cart. The operation adds the items to the item table specific to the Campus Solutions application implementing the shopping cart.

The service operation first checks if the item, which the user wants to add, already exists in the cart. If the item already exists, the operation deletes the item from the cart and then adds the item as a new item to the cart. Therefore, a user interface can also use this operation to update an existing cart item.

Once the item is added to the cart, the service operation retrieves all the cart items for the user and sends them back in the response message.

Example: Suppose your institution has an enrollment shopping cart. A student can use this enrollment shopping cart to add the classes in which he or she wants to enroll. The enrollment shopping cart uses the SCC_SC_ADDITEM operation to add a class to the enrollment shopping cart item table.

Example when a shopping cart can use SCC_SC_ADDITEM to modify an existing item: Suppose a student wants to change an enrollment option. For example, the student wants to change the Units for an item that has already been added to the enrollment shopping cart. The student can add the same item with a changed value for Units. In this case, SCC_SC_ADDITEM deletes the existing item and adds it again with the new value for Units.