=== Advanced B2B Registration & Field Manager ===
Contributors: rallios
Tags: woocommerce, b2b, wholesale, registration, custom fields
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Wholesale registration form with a dynamic field manager, selectable user role, and WooCommerce billing/shipping meta sync.

== Description ==

Advanced B2B Registration & Field Manager adds a shortcode-based wholesale registration form and an admin field manager.

* Choose which WordPress role new registrations receive
* Edit core B2B fields and add custom fields (label, meta key, input type, required/optional)
* Display `[b2b_registration_form]` on any page (and add that page to a navigation menu)
* Edit B2B fields on the WordPress user profile and sync them to WooCommerce `billing_*` / `shipping_*` meta

Account approval and notification emails are left to dedicated plugins.

Plugin URI: https://www.rallios.gr/portfolio/b2b-registration-manager/
Author URI: https://www.rallios.gr

== Installation ==

1. Upload the `b2b-registration-manager` folder to `wp-content/plugins/`
2. Activate the plugin through the Plugins screen
3. Open **Users → B2B Registration** to configure the role and fields
4. Create a page containing the shortcode `[b2b_registration_form]` and add it to a menu

== Frequently Asked Questions ==

= Which role do new users get? =
The role selected under **New user role** in the plugin settings. Privileged roles (administrators, shop managers, and similar) cannot be assigned from the public form.

= Can I add extra fields? =
Yes. Use **Add field** in the Field manager, then set a label, meta key, input type, and required status.

= Which meta keys are saved? =
Core fields use standard WooCommerce keys such as `billing_company`, `billing_phone`, and `billing_address_1`, plus `billing_vat`, `billing_doy`, and `billing_profession`. Custom fields save to the meta key you configure. Address-related `billing_*` keys are mirrored to shipping. Country is stored as `GR`.

== Changelog ==

= 1.1.0 =
* Removed built-in approval workflow, pending requests, and email templates
* Removed retail/wholesale account-type toggle; the form is wholesale-only
* Added registration role selector
* Field manager now supports editing fields and adding custom fields

= 1.0.0 =
* Initial release
