1. Home
  2. Knowledge Base
  3. WooCommerce Wholesale Lead Capture
  4. Registration
  5. How To Add Wholesale Role Selection To The Wholesale Registration Form

How To Add Wholesale Role Selection To The Wholesale Registration Form

Our WooCommerce Wholesale Prices Premium plugin has a feature to create multiple wholesale customer roles. You can define the wholesale prices, restrict shipping methods, and restrict payment gateway for each role.

By default, our Wholesale Registration Form will grant your potential wholesale customer role to a selected default user role of your choice. You can find it in WooCommerce > Settings > Wholesale Lead > General > New Lead Role.

If you’d like your potential wholesale customer to select their own wholesale customer role, you can use the following snippet. Please add it to your child theme’s function.php:

You’d need to create a custom field for Wholesale Customer role selection first. In this sample, the custom field ID is wwlc_cf_select_role and for each value for the option is the meta key for that user role. eg: wholesale_vip.

Wholesale Role Selection Sample Setup
Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support
Complete Your Purchase