This module allows restricting the purchase of products for customers, disabling purchase at the point of adding to cart and displaying a message in place of the add to cart button.
A field referencing these restrictions can be added to any product type or product variation type, and when the product or product variation is edited users can specify which conditions apply to purchase.
Restrictions can be applied on the product level or product variation level, or both. In future it may be possible to apply them for product types and product variation types as well.