ICurrentShoppingCartStrategyCartCanBeUsedOnSite Method |
Checks if given shopping cart can be used on given site.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax 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:
BooleanTrue if given
cart can be used on the site specified by
siteExceptions Exception | Condition |
---|
ArgumentNullException | Thrown when any of arguments is null. |
See Also