Hi,
It is not possible to restrict the number of items in the cart as a whole. It is possible to limit per product, per user, per category, per product tag, per shipping zone, per payment gateway, etc.
However, there is a workaround for your situation.
You will first need to create a new category and add all the products that you want the limit for to this new category. For Example, let’s call it Category “ABC”
Then you would go to the plugin’s setting and set up as follows:
General tab > Amount Limits > Minimum
General tab > Amount Types > Quantity
Products tab > Enable > Per Product Category
Save the settings.
Then go to Products > Categories > ABC and edit the category. Define the minimum as 22.
Now users will need to purchase a minimum of 22 products from category ABC.
If you want to exclude products or categories from the Minimum limits, In the Plugin’s settings, go to the Cart Products tab, Enable the section and add the relevant products for exclusion.