Overview
This article will outline how to create discount buttons at the POS.
Procedure
Summary
There are two types of discount buttons (manual discounts):
- Custom discount buttons are used for more complex discounts defined in the back office (see Discount Engine Types and Options)
- To create a button that applies a custom discount, change button's Command to Discounting: Perform Custom Discount.
- In the text area below Command, you will need to specify parameters.
The parameters are a comma-separated list of name:value pairs enclosed in curly brackets. For example:{
Range: 'All',
CustomDiscountCode: '10% Off Seniors'
In the example above, the entire parameter block starts with an opening curly bracket ({) and ends with a closing curly bracket (}). There are two name:value pairs named Range and CustomDiscountCode which are separated by a comma. The names are joined to their corresponding values with a colon (Range: 'All'). The values are enclosed in single-quotes.Listed below are the possible name:value pairs with the default value listed in bold type.}
- Range: Each (applies to all current line items), All (applies to all current and future line items), CurrentLineItem (only applies to current line item).
- Note: Some discount engines will require the Range set to All to function correctly when invoked through a task pad button.
- CustomDiscountId: The internal id of the Custom Discount to apply. The screenshot below shows how to find the internal id when you have the Custom Discount open for editing. This id will never change even if the Custom Discount's code changes.
- CustomDiscountCode: The code is simply the name of the Custom Discount. This name can be changed which will break the button, so consider using the CustomDiscountId parameter detailed above.
- PromptOnMissingDiscount: true or false. If this is true and the CustomDiscountId and CustomDiscountCode parameters are missing or invalid, the user will be prompted to select the discount to be used.
- ApplySeparately: true or false. By default this is set to false. If this is true, when you apply the discount it will generate a unique ReferenceName(see next bullet point) This means that if it is also set to double dip it will apply the discount multiple times to the same item as it will not overwrite itself. If you are not double dipping then it will only apply once.
- ReferenceName: Reference name is used to define groups of Discounts. Discounts with the Same reference name will overwrite one another accepting the last applied discount. Discounts with Different ReferenceNames defined will apply the better of the two discounts as applicable. You can think of ReferenceName as a group of Discounts that should either replace or stack on top of one another.
- If Military and Senior discounts have a ReferenceName of ManualDiscounts and double dipping is set to No pressing the Military Discount button and then the Senior Discount button would switch the discount from Military to Senior.
- If you have a special edge case sale say this week you are giving a 30% discount on specially labeled items and you Don't want to also get other lesser discounts such as Military or Senior. You would want to have that discount as a different ReferenceName.example: LabelSale this will allow you to apply the 30% off discount and still apply your discount from the ManualDiscount ReferenceName
- Comment: Adds the defined comment to the discount.
Inline Discount Buttons
- Inline discount buttons are generally used for quick and simple discounts. Although they have the potential to be used for more complex discounts, it is easier to use custom discounts and custom discount buttons for complex discounts, as shown above.
- To create a button that applies a custom discount, change button's Command to Common: Perform Discount.
- In the text area below Command, you will need to specify parameters.
- The parameters are a comma-separated list of name:value pairs enclosed in curly brackets. For example:
{
CommandType: 'PercentOffSingle',
Amount: '10'
}
PLEASE NOTE: Parameters used in task pad commands are very sensitive to things like capitalization, commas, quotes, and colons. Make sure to triple check your formatting before saving.
In the example above, the entire parameter block starts with an opening curly bracket ({) and ends with a closing curly bracket (}). There are two name:value pairs named CommandType and Amount which are separated by a comma. The names are joined to their corresponding values with a colon (Amount: '10'). The values are enclosed in single-quotes.
Listed below are the possible name:value pairs with the default value listed in bold type.
- CommandType:
Commands ending in Single affect the current line item, commands ending in Each affect all current line items, and commands ending in All affect all current and future line items.- PercentOffSingle
- PercentOffEach
- PercentOffAll
- DollarOffSingle
- DollarOffAll
- FixedTotal
- RemoveDiscountSingle
- RemoveDiscountEach
- RemoveDiscountAll
- Amount: The amount or percentage or fixed total of the discount, depending on the CommandType. If the Amount is not set, the user will be prompted for the amount.
- AllowDiscountInRelatedItems: (Works only with DollarOffSingle and PercentOffSingle) true, false, or null; should the discount also be applied to related items? Always, never, depending on the related item setting.
- Comment: Discount comment. If the comment is [UserInput] then the POS will prompt for a comment.
- PriceSource: CurrentPrice, RegularPrice, SalePrice, PriceA, etc. Which price to use as the starting point before the discount.
- DoubleDipping: Are other discounts allowed with this discount?
- Forbid: Never allow other discounts
- False: Allow other discounts only if their double-dipping is set to strong.
- Regular: Allow other discounts if they are set to Regular.
- Strong: Allow other discounts unless they are set to Forbid.
- ReferenceName: If a reference name is defined, all other manual discounts with the same reference name in the current Range (Single, Each, All) will be removed.
- IgnoreNonDiscountableFlag: true or false, apply the discount to products defined as "POS non-discountable" in their product page?
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article