Skip to content

Instantly share code, notes, and snippets.

@mauro-vieira
Created August 5, 2020 01:11
Show Gist options
  • Save mauro-vieira/930422267d76d22fed412799a0b0b0a9 to your computer and use it in GitHub Desktop.
Save mauro-vieira/930422267d76d22fed412799a0b0b0a9 to your computer and use it in GitHub Desktop.
[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