projects/apttus/ecommerce/src/lib/modules/pricing/pipes/price.pipe.ts
Provides pricing for a given attribute value
<!-- 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>| Name | AttributeValuePricePipe |
| transform | ||||||||||||
transform(value: any, product: Product, attribute: ProductAttribute)
|
||||||||||||
|
Parameters :
Returns :
Observable<Price>
|