A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
You can set the OrderRedemptionLimit as fixed by adding
[PromotionSettings(FixedRedemptionsPerOrder = 2)]
as an attribute to the implementation of the discount data class.
What's the use case for hiding the other two?
You could probably override the field from PromotionData actually, like such:
public override RedemptionLimitsData RedemptionLimits => new RedemptionLimitsData {PerCustomer = null, PerOrderForm = 1, PerPromotion = null};
Not sure how that is rendered however. Try it out!
I'd like to hide the "Redemption Limits" section on my custom Promotion UIs (they inherit from PromotionData). Is it possible?