Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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.