GitHub

productPriceRangeHasDiscount

Helper

import { productPriceRangeHasDiscount } from '@daffodil/product'

Returns whether a DaffPriceRange has a discount.

function productPriceRangeHasDiscount(priceRange: DaffPriceRange): boolean

Parameters

ParameterpriceRange: DaffPriceRange
Description

a DaffPriceRange