You are here: Ektron Namespace > .NET Assemblies > eCommerce > Classes > BasketApi Class > BasketApi Methods > CreateNewBasket
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
BasketApi.CreateNewBasket Method

Creates a new cart for the supplied user ID. By setting the openBasketYou parameter to true, the new cart becomes the default open cart.

C#
public Basket CreateNewBasket(long userId, bool openBasket);
Visual Basic
Public Function CreateNewBasket(userId As long, openBasket As bool) As Basket
Parameters 
Description 
userId 
ID of the user for which to create a cart. 
openBasket 
When set to true, the newly created cart becomes the default open cart. 

Newly created cart object.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!