Home > widget-integration > FilterHelper > isSamePrice
FilterHelper.isSamePrice() method
Checks if product has same min and max prices
Signature:
isSamePrice(priceMin: number | string, priceMax: number | string, compareAtPriceMin: number | string, compareAtPriceMax: number | string): boolean;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
priceMin |
number | string |
Minimum price |
|
priceMax |
number | string |
Maximum price |
|
compareAtPriceMin |
number | string |
Minimum compare price |
|
compareAtPriceMax |
number | string |
Maximum compare price |
Returns:
boolean
true if min and max prices are identical