FacetValueChecker
The FacetValueChecker is a helper class used to determine whether a given OrderLine consists of ProductVariants containing the given FacetValues.
Example
- Implements: OnModuleInit
onModuleInit
method
() => anyhasFacetValues
method
(orderLine: OrderLine, facetValueIds: ID[], ctx?: RequestContext) => Promise<boolean>Checks a given OrderLine against the facetValueIds and returns
true if the associated ProductVariant & Product together
have all the specified FacetValues.
Was this chapter helpful?