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.
Methods inherited from class Discount
Methods inherited from class Object
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

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.