1. Inicio
  2. Base de Conocimientos
  3. Captura de Leads Mayoristas de WooCommerce
  4. Registro
  5. Cómo agregar la selección de rol mayorista al formulario de registro mayorista

Cómo agregar la selección de rol mayorista al formulario de registro mayorista

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 Wholesale > 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
¿Te ha resultado útil este artículo?

Artículos relacionados

¿Necesita soporte?

¿No encuentra la respuesta que busca?
Contactar con soporte
Completa tu Compra