Add Custom Field To Checkout For Specific Products In WooCommerce
In this post we are adding a custom field to the checkout page of specific products. The custom field will show an error message if it is blank. The custom field will show up on the orders page and the emails that are sent upon purchase.
Check If The Product Gets A Custom Field
We are checking to see if the product IDs from your cart match any of the products IDs that get a custom…