I want to expose a data element in Admin UI. I see @AdminPresentationOverride that I can use to have the data show on my Admin UI. The problem is for example in below code on the class OfferCodeImpl in Broadleaf jar has hte override to not exclude the field that I want to see in UI so that I can set the max number of users who can use the promo/offer code.
I want to limit the number of users who can use a specific promo/offer code.
Code: Select all
@AdminPresentationOverrides(
{
@AdminPresentationOverride(name="offer.appliesToOrderRules", value=@AdminPresentation(excluded = true)),
@AdminPresentationOverride(name="offer.appliesToFulfillmentGroupRules", value=@AdminPresentation(excluded = true)),
@AdminPresentationOverride(name="offer.appliesToCustomerRules", value=@AdminPresentation(excluded = true)),
[u] [b] @AdminPresentationOverride(name="offer.maxUses", value=@AdminPresentation(excluded = true)),[/b][/u]
@AdminPresentationOverride(name="offer.uses", value=@AdminPresentation(excluded = true)),
@AdminPresentationOverride(name="offer.targetItemCriteria", value=@AdminPresentation(excluded = true))
}
)
@AdminPresentationClass(populateToOneFields = PopulateToOneFieldsEnum.TRUE, friendlyName = "baseOfferCode")
public class OfferCodeImpl implements OfferCode {
Code: Select all
@Column(name = "MAX_USES")
@AdminPresentation(friendlyName="Code Max Uses", order=2, group="Description", prominent=true)
protected int maxUses;
Please advise on how can i achieve showing the max uses in Admin UI.