IFlashpointShoppingCartNew Method
Creates a new cart, or clears an existing cart
Namespace: Ignition.Commerce.ShoppingAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
IShoppingCartState New(
string cartToken,
NetForumId customerId = null,
Object defaults = null
)
Function New (
cartToken As String,
Optional customerId As NetForumId = Nothing,
Optional defaults As Object = Nothing
) As IShoppingCartState
IShoppingCartState^ New(
String^ cartToken,
NetForumId^ customerId = nullptr,
Object^ defaults = nullptr
)
abstract New :
cartToken : string *
?customerId : NetForumId *
?defaults : Object
(* Defaults:
let _customerId = defaultArg customerId null
let _defaults = defaultArg defaults null
*)
-> IShoppingCartState
- cartToken String
- Token of the cart to create or clear
- customerId NetForumId (Optional)
- Customer to assign to the cart
- defaults Object (Optional)
- A flex-compatible object with the default top-level cart values to set after creating/clearing the cart
IShoppingCartStateThe new/cleared cart