Click or drag to resize
OnlineMarketingTransformationFunctionsPurchasedProduct Method
Returns true if the contact purchased specified product or its variant.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax
C#
public static bool PurchasedProduct(
	Object contact,
	string skuName,
	int lastXDays
)

Parameters

contact
Type: SystemObject
Contact which should be checked
skuName
Type: SystemString
Name or guid of the SKU
lastXDays
Type: SystemInt32
Constraint for last X days (if zero or negative value is given, no constraint is applied)

Return Value

Type: Boolean
See Also