Home > @shopware-pwa/helpers > getProductPriceDiscountPercentage

# getProductPriceDiscountPercentage() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Get the percentage value of discount

Signature:

export declare function getProductPriceDiscountPercentage(product: Product): number | undefined;

# Parameters

Parameter Type Description
product Product

Returns:

number | undefined

(number|undefined)