Ordering app : set a order limit per user

Hi I am building an ordering app for restaurants.

My challenge is to limit orders from users of 1 order per restaurant per week.

• A user order a free food item from current restaurant
• When order is completed, user will not be allow to order again from the same restaurant for 7 days

I didn’t find a solution to deactivate the restaurant for the current user after an order on my list (and reactivate after a week). Any ideas ?

Here is a screenshot thanks !

Hi @Louis, You could do this by changing the visibility of the order button so that it was only visible if the logged in user’s count of orders was less than 1 where the order’s restaurant name = current restaurant name and the order create date was newer than 7 days ago.