⚠️ The annual cost of maintaining the server where this website is hosted, the domain, and keeping it up-to-date is approximately €3,000 per year. Help us with a small donation to cover these expenses. Support Now!

0 / 10000
dw.campaign
Class PercentageDiscount
Object
dw.campaign.Discount
dw.campaign.PercentageDiscount
Represents a percentage-off discount in the discount plan, for example "10% off all T-Shirts".
Properties
percentage  :  Number  (Read Only)
The percentage discount value, for example 10.00 for a "10% off" discount.
Constructor Summary
PercentageDiscount(percentage : Number)
Create a percentage-discount on the fly.
Method Summary
getPercentage() : Number
Returns the percentage discount value, for example 10.00 for a "10% off" discount.
Constructor Detail
PercentageDiscount
public PercentageDiscount(percentage : Number)
Create a percentage-discount on the fly. Can be used to create a custom price adjustment.
Parameters:
percentage - percentage value, e.g. 15.00 for 15%

Method Detail
getPercentage
getPercentage() : Number
Returns the percentage discount value, for example 10.00 for a "10% off" discount.
Returns:
Discount percentage value