Class FixedPriceDiscount
Represents a fix price discount in the discount plan, for example "Shipping only 0.99 all orders $25 or more."
| Property | Description |
|---|---|
fixedPrice: Number (read-only) | Returns the fixed price amount, for example 0.99 for a "Shipping only $0.99" discount. |
| Constructor | Description |
|---|---|
| FixedPriceDiscount(Number) | Create a fixed-price-discount on the fly. |
| Method | Description |
|---|---|
| getFixedPrice() | Returns the fixed price amount, for example 0.99 for a "Shipping only $0.99" discount. |
getItemPromotionTiers, getPromotion, getPromotionTier, getQuantity, getType
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- fixedPrice: Number
(read-only) Returns the fixed price amount, for example 0.99 for a "Shipping only $0.99" discount.
- FixedPriceDiscount(amount: Number)
Create a fixed-price-discount on the fly. Can be used to create a custom price adjustment.
Parameters:
- amount - fixed price e.g. 10.00
- getFixedPrice(): Number
Returns the fixed price amount, for example 0.99 for a "Shipping only $0.99" discount.
Returns:
- Fixed price amount