Click or drag to resize
ShoppingCartInfoProviderIsProductTypeInShoppingCart Method
Returns true, if there is at least one product of the specified type in the shopping cart.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
public static bool IsProductTypeInShoppingCart(
	ShoppingCartInfo cart,
	SKUProductTypeEnum type
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart
type
Type: CMS.EcommerceSKUProductTypeEnum
Product type to search for

Return Value

Type: Boolean
See Also