File

projects/apttus/ecommerce/src/lib/modules/pricing/pipes/price.pipe.ts

Description

Provides pricing for a given attribute value

Example:

 <!-- The totalPrice attribute on the returned price instance will be the number value of the price (i.e. 9.99) -->
 <span>{{(attributeValue | AttributeValuePricePipe:product:productAttribute | async)?.totalPrice}}<span>

 <!-- To get the formatted price (i.e. $9.99), use netPrice$ instead of totalPrice property and pass it through the async pipe again -->
 <span>{{(attributeValue | AttributeValuePricePipe:product:productAttribute | async)?.netPrice$ | async}}<span>

Metadata

Name AttributeValuePricePipe

Methods

transform
transform(value: any, product: Product, attribute: ProductAttribute)
Parameters :
Name Type Optional
value any No
product Product No
attribute ProductAttribute No
Returns : Observable<Price>

result-matching ""

    No results matching ""