Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
DiscountItems is a block, so you don't "new it", you just set the values to it
newDiscount.DiscountTarget.Items = freegifts; //List of ContentReferences
newDiscount.DiscountTarget.MaxQuantity = 1;
Hi
I am programmatically adding a promotion to Epi Commerce. The ype of promotion I am adding is 'Gift with purchase'. Code below:
The promotion saves fine without any erros. The issue I am experiecing is that the 'free gifts' are not saving, no entries in the 'Get these entries' section. Initially I thought is was a stock issue, but there is enough in inventory.