Is there a way to Limit total no of Gift Items per Ticket based on No of Person Counts or Covers ?
For Ex: I want to set limit of No of Gift Items like One Gift Item per 2 Pax(Covers) per Ticket.
For Every Two people at the table one item is allowed to be gifted, if there are three then also 1 Item, if 5 then Two items.
Is possibly but likely need come carefully constraints.
You’ll need a report type expression to count gift order qty.
To be covered you’ll also want the select order qty and obviously the covers count which would depend on what your doing to log that.
Constraint would want to be something like
Orders count of gift + selected order qty < covers number / 2
This will check that there is enough gift qty available for the select qty of orders to be gifted. You shouldn’t need to round as 5 covers would give 2.5 and as order qty would be whole numbers unless your doing something querky meaning 2 would meet constraint and 3 would be larger than covers / 2
Sure why not LOL.
It should be doable - just need some carefully constraints.
Personally I would split the rule using action constraints so as to display message with reason for preventing if there are too many gifts.