Cividiscount codes/descriptions should not be exposed in receipts
Created by: Upperholme
Whilst I can see various use cases where it would be valuable to not have a discount code or the description text for the code included in the receipt/confirmation message that is sent to the purchaser, I can see no compelling reason why the code or the description should be written into the receipt by default.
Therefore my suggestion/request is to disable this functionality. All that needs to appear on the receipt is the amount/percentage of the discount that has been applied, and to display the correct figures on the receipt (i.e. gross amount, discount amount, net amount).
In many cases with my clients I find that they want to use the code for admin-only purposes, to enable discounts for speakers, volunteers, etc. at events and suchlike. Exposing these codes on the receipt opens up the possibility for end users to distribute these codes enabling others to get discounts whilst not necessarily being eligible for them.
Similarly with the descriptive text, we find that the primary value of this text is to act as a descriptive label for administrators to use, to help them identify which code is to use for any given application. Consequently, having to consider the fact that the end user will see this text on a receipt significantly constrains the value of this description field.
Maybe consider having admin-facing and user-facing texts as separate options? Perhaps implement an option switch to enable/disable the appearance of the code/description on the receipt? But please default to having it disabled.
Thanks for considering this.