projects/apttus/ecommerce/src/lib/modules/pricing/pipes/price.pipe.ts
Provides pricing for a given product. Used as a pipe wrapper around PriceService.getProductPrice(...) NOTE: It is recommend you use the PriceComponent component when rendering price as it has been optimized for change detection.
<!-- The totalPrice attribute on the returned price instance will be the number value of the price (i.e. 9.99) -->
<span>{{(product | ProductPricePipe:1:productAttributeValueList:productOptionList | 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>{{(product | ProductPricePipe:1:productAttributeValueList:productOptionList | async)?.netPrice$ | async}}<span>| Name | ProductPricePipe |
| transform | |||||||||||||||
transform(value: Product, quantity: number)
|
|||||||||||||||
|
Parameters :
Returns :
Observable<Price>
|