Restricting File Upload Visibility Based on the Products, Categories, or Tags
Set up file upload rules in WooCommerce based on the products, categories, or tags in the cart.
Go to WooCommerce > Checkout Files Upload > File Upload Rules.
Click on the “Add file upload rule” button.
In the rule settings, you can customize the following options:
Required Products: Choose specific products that will trigger the file upload field. If you leave this field empty, the file upload field will be activated when any product is in the cart.
Required Categories: Select specific categories that will activate the file upload field. If you leave this field empty, the field will be enabled when any category is in the cart.
Required Tags: Choose specific tags that will activate the file upload field. Leaving this field empty will enable the field when any product with any tag is in the cart.
After configuring the products, categories, and tags settings, click the “Publish” button to save the rule.
By setting up these rules, you ensure that the file upload field is displayed on the checkout page based on the specified products, categories, or tags in the customer’s cart. Adjust the rule settings according to your specific requirements, and don’t forget to save your changes.