Sometimes you want to show a field on the checkout just for some users.
In this tutorial I’ll show you how to do this. In the example I’ll add the field for the VAT number only for the user role Wholesalers.
As you know, WooCommerce allows you to sell only in specific countries, like only in Italy or in Unites States.
What if you want to sell only in a specific province, or only in California for example?
Are you using the plugin WooCommerce Product Vendors?
Well, I think you will love this tutorial then!
If you are one of those users who want to setup a custom vendor shop page, add this code in your functions.php file located in wp-content/themes/your-theme-name/:
You Should Check
- How to customise the address format in WooCommerce November 1, 2018
- Disable Enfold Portfolio October 1, 2018
- Add an Empty Cart button in WooCommerce September 1, 2018
- Delete Expired Coupons Automatically August 1, 2018