Click or drag to resize
ICurrentShoppingCartStrategyCartCanBeUsedOnSite Method
Checks if given shopping cart can be used on given site.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
bool CartCanBeUsedOnSite(
	ShoppingCartInfo cart,
	SiteInfoIdentifier site
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart to be checked.
site
Type: CMS.DataEngineSiteInfoIdentifier
ID or codename of the site to check.

Return Value

Type: Boolean
True if given cart can be used on the site specified by site
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when any of arguments is null.
See Also