IFlashpointShoppingCartAddProduct Method

Adds a product to the cart

Definition

Namespace: Ignition.Commerce.Shopping
Assembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
C#
IShoppingCartState AddProduct(
	string cartToken,
	NetForumId productId,
	decimal quantity,
	NetForumId shippingAddressId = null,
	Object terms = null
)

Parameters

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.

Return Value

IShoppingCartState
The updated cart

See Also