Table of Contents

Class UserGroupCondition

Namespace
Dynamicweb.Ecommerce.Orders.Adjustments.Conditions
Assembly
Dynamicweb.Ecommerce.dll

A condition that checks if the customer is in a specific user group.

[Experimental("DWEX100001")]
[AddInLabel("User group")]
[AddInUseParameterSectioning(true)]
public sealed class UserGroupCondition : Condition
Inheritance
UserGroupCondition
Inherited Members

Properties

ContextType

The type of context the condition is applied to.

public override AdjustmentContextType ContextType { get; }

Property Value

AdjustmentContextType

UserGroupIds

The user group ID to check against the AdjustmentContexts customer user groups.

[AddInParameterGroup("Condition")]
[AddInParameter("UserGroups")]
[AddInLabel("User Groups")]
[AddInParameterEditor(typeof(UserGroupParameterEditor), "multiple=true;required=true")]
public string? UserGroupIds { get; set; }

Property Value

string

Methods

GetDisplayValue(string)

Returns the UI display format for the condition, visible in the overview screens where conditions are used.

public override string? GetDisplayValue(string parameterName)

Parameters

parameterName string

The name of the parameter.

Returns

string

IsSatisfied(AdjustmentContext)

Returns whether the condition is satisfied.

public override bool IsSatisfied(AdjustmentContext context)

Parameters

context AdjustmentContext

The current context, either a OrderAdjustmentContext or ProductAdjustmentContext.

Returns

bool
To top