every product in Ordering Stack system is build based on tree data structure, meaning that each group type can be implemented inside the other group. Stacking group onto each other without any other configurations allows us to build more advance and flexible product builds.
Name | Description | Value Type | Required |
---|---|---|---|
allowMultiples | Only appearing on the group level, if it is set to true then we are able to change quantity of the products inside of that group | Boolean | False |
selMin/selMax | Only appearing on the group level, it sets the amount of product which can be selected in that group, e.g. if the group has the following products: ham, olives, cheese and the selMax is set to 2 then we can only pick two out of three of these products and that could be in this case ham and olives, so the cheese would not be able to be picked as long as we already selected two other products. | String or Number | False |
qtyMin/qtyMax | Appearing on the group as well as product level. In case of product level it indicates the quantity of that item we can pick for e.g there is a burger which has qtyMin set to 1 and qtyMax set to 3, meaning that it is required to get one burger but maximum we can get only three of them for this specific meal. On the other hand in the group level the qtyMin and qtyMax is a sum of all of the items quantity selected in this group, so for example if we selected a ham and olives and the group of these items has a property qtyMax set to 5, we could choose to pic maximum of 3 x ham and 2 x olives so their sum will be 5. | String or Number | False |
isVoucher | If value is “true” then this product is considered as voucher You should set a webhook orderChangeWebhook-CloseOrderEventCommand for ‘loyalty-voucher-buy-webhook/webhook’ which will process vouchers | Boolean | False |
voucherAmount | Indicates how many points this voucher will add to wallet when redeemed | Number | False |
voucherExpireInDays | Indicates after how many days this voucher will expire | Number | False |
disallowPayment | By using this attribute it is possible to disallow payment for a product with specified payment form. Example value “WALLET,COUPON,COD” It is usefull for buying vouchers when you want to force user to pay online and disallow payments types like cash on delivery (COD) or using points from wallet. | String | False |