IFlashpointShoppingCartAddProduct Method
Adds a product to the cart
Namespace: Ignition.Commerce.ShoppingAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
IShoppingCartState AddProduct(
string cartToken,
NetForumId productId,
decimal quantity,
NetForumId shippingAddressId = null,
Object terms = null
)
Function AddProduct (
cartToken As String,
productId As NetForumId,
quantity As Decimal,
Optional shippingAddressId As NetForumId = Nothing,
Optional terms As Object = Nothing
) As IShoppingCartState
IShoppingCartState^ AddProduct(
String^ cartToken,
NetForumId^ productId,
Decimal quantity,
NetForumId^ shippingAddressId = nullptr,
Object^ terms = nullptr
)
abstract AddProduct :
cartToken : string *
productId : NetForumId *
quantity : decimal *
?shippingAddressId : NetForumId *
?terms : Object
(* Defaults:
let _shippingAddressId = defaultArg shippingAddressId null
let _terms = defaultArg terms null
*)
-> IShoppingCartState
- cartToken String
- Working cart token
- productId NetForumId
- ID of the product to add to the cart
- quantity Decimal
- Quantity of products to add to the cart
- shippingAddressId NetForumId (Optional)
- Shipping address to assign to this item once it has been added to the cart. Cart-wide shipping address will be used if none is specified.
- terms Object (Optional)
- A flex-compatible object with additional fields to set on the product when it is added to the cart. Commonly prd_prc_key will be set to override price control.
IShoppingCartStateThe updated cart