Click or drag to resize
CurrentShoppingCartStrategyCartCanBeUsedOnSite Method
Checks if given shopping cart is assigned to the site.

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

Parameters

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

Return Value

Type: Boolean
True if given cart can be used on the site specified by site

Implements

ICurrentShoppingCartStrategyCartCanBeUsedOnSite(ShoppingCartInfo, SiteInfoIdentifier)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when any of arguments is null.
See Also