DaffConfigurableProductFacadeInterface

An interface for a facade that accesses configurable product state. Exposes many parts of the state for easy access and allows dispatching of actions.

Properties

Name Type Description
getAllAttributes Observable<Dictionary<string[]>> All attributes of a configurable product.
getAllVariants Observable<DaffConfigurableProductVariant[]> All variants of a configurable product.
getAppliedAttributes Observable<Dictionary<string>> The applied attributes of a configurable product.
getMinimumPrice Observable<number> Get the current minimum price possible based on the applied attributes and remaining variants.
getMaximumPrice Observable<number> Get the current maximum price possible based on the applied attributes and remaining variants.
getMinimumDiscountedPrice Observable<number> Get the current minimum discounted price possible based on the applied attributes and remaining variants.
getMaximumDiscountedPrice Observable<number> Get the current maximum discounted price possible based on the applied attributes and remaining variants.
getMinimumPercentDiscount Observable<number> Get the current minimum percent discount possible based on the applied attributes and remaining variants.
getMaximumPercentDiscount Observable<number> Get the current maximum percent discount possible based on the applied attributes and remaining variants.
isPriceRanged Observable<boolean> Returns whether the possible price for the configurable product is a range of different prices
hasDiscount Observable<boolean> Returns whether the variants of the configurable product have (a) discount(s)
getSelectableAttributes Observable<Dictionary<string[]>> Selectable configurable product attributes derived from the remaining variants and the order of currently applied attributes. The remaining variants of the product are derived from the currently applied attributes.
getMatchingVariants Observable<DaffConfigurableProductVariant[]> The variants that match the applied attributes of a configurable product.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.