Would anyone have an example of a woocommerce checkout validation, where I can fail the validation, if they have already purchased 2 products in the last 30 days?
All I seem to find is javascript validation of input fields, but I’m after more complex validation done in PHP preferably.
Many thanks!