Created
August 5, 2020 01:11
-
-
Save mauro-vieira/930422267d76d22fed412799a0b0b0a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ContentType( | |
DisplayName = "My custom discount", | |
GUID = "EDC495FD-8A76-4106-B32E-6EAF9666E170", | |
AvailableInEditMode = false)] | |
[AvailableContentTypes(Include = new[] { typeof(PromotionData) })] | |
public class MyCustomDiscount : EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount | |
{ | |
/// <summary> | |
/// The account number for the customer who will apply the promotion | |
/// </summary> | |
[Display(Name = "Account Number", Order = 10)] | |
[PromotionRegion("Condition")] | |
[Required] | |
[UIHint(UIHint.Textarea)] | |
public virtual string AccountNumber { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment