Click or drag to resize
IShoppingService Methods

The IShoppingService type exposes the following members.

Methods
  NameDescription
Public methodAddCouponCode
Applies the specified coupon code to the current shopping cart and evaluates the cart.
Public methodAddItemToCart(ShoppingCartItemParameters)
Adds an item to the current shopping cart and logs the activity. Saves the shopping cart if it has not been saved yet. If an item in such configuration is already present in the cart, its quantity is increased by Quantity. Saves all product options and bundle items after adding and evaluates the cart.
Public methodAddItemToCart(Int32, Int32)
Adds an item to the current shopping cart and logs the activity. Saves the shopping cart if it has not been saved yet. If an item in such configuration is already present in the cart, its quantity is increased by quantity. Saves all product options and bundle items after adding and evaluates the cart.
Public methodCalculateShippingOptionPrice
Returns price of the given shipping option.
Public methodCreateOrder
Validates and creates order from current shopping cart. If order creation was successful empties shopping cart. If order requires an user account, handles its creation. Also tracks order conversion, sends order notifications and logs purchase activities.
Public methodGetBillingAddress
Returns the billing address for the current shopping cart.
Public methodGetCurrentCustomer
Gets the current customer.
Public methodGetCurrentShoppingCart
Gets the shopping cart used by the IShoppingService instance. This member is a backing method of the get_CurrentShoppingCart property.
Public methodGetPaymentOption
Returns the selected payment option for the current shopping cart.
Public methodGetShippingAddress
Returns the shipping address for the current shopping cart.
Public methodGetShippingOption
Returns the selected shipping option for the current shopping cart.
Public methodRemoveAllItemsFromCart
Removes all items from the current shopping cart. Also removes all children and bundle items from the cart, logs the activity and evaluates the cart.
Public methodRemoveCouponCode
Removes the specified coupon code from the current shopping cart and evaluates the cart.
Public methodRemoveItemFromCart(Int32)
Removes item with specified itemId from the current shopping cart. Also removes all children and bundle items from the cart, logs the activity and evaluates the cart.
Public methodRemoveItemFromCart(ShoppingCartItemInfo)
Removes item specified by shoppingCartItemInfo from the current shopping cart. Also removes all children and bundle items from the cart, logs the activity and evaluates the cart.
Public methodSaveCart
Validates and saves the shopping cart into the database.
Public methodSetBillingAddress
Sets billing address to the current shopping cart and evaluates the cart.
Public methodSetCustomer
Sets the given customer to the current shopping cart and persists changes in the database.
Public methodSetPaymentOption
Sets the selected payment option to the current shopping cart, and evaluates and saves it. Does nothing if paymentOptionId is the same as the cart already has.
Public methodSetShippingAddress
Sets shipping address to the current shopping cart and evaluates the cart.
Public methodSetShippingOption
Sets the selected shipping option to the current shopping cart, and evaluates and saves it. Does nothing if shippingOptionId is the same as the cart already has.
Public methodUpdateItemQuantity(Int32, Int32)
Updates the quantity of a shopping cart item specified by itemId to quantity. Logs the activity resulting from the actual amount of items added or removed and evaluates the cart.
Public methodUpdateItemQuantity(ShoppingCartItemInfo, Int32)
Updates the quantity of a shopping cart item specified by shoppingCartItemInfo to quantity. Logs the activity resulting from the actual amount of items added or removed and evaluates the cart.
Top
See Also