Requirements
WordPress 6.2 or higherWooCommerce 7.0 or higher (required — plugin will not activate without it; WC 5.x predates HPOS and the plugin declares HPOS compatibility)PHP 7.4 or higherMySQL 5.6 or higherRecommended for best performance:
WordPress 6.9+, WooCommerce 10.0+, PHP 8.0+Object caching (Redis or Memcached) for optimal price cachingUpgrading from 1.1.0 or earlier
Versions 1.1.0 and earlier had a silent bug where index-migration on activation never ran (table identifiers were quoted as string literals, which is invalid SQL). After upgrading to 1.1.1 or later, deactivate and reactivate the plugin once to apply the missing indexes. This is a one-time step; subsequent upgrades apply indexes correctly.
Automatic Installation
1.Log in to your WordPress admin panel2.Go to Plugins → Add New3.Search for "MaxtDesign Role-Based Pricing"4.Click Install Now then Activate5.Ensure WooCommerce is installed and activated6.Navigate to WooCommerce → Role-Based Pricing to configureManual Installation
1.Download the plugin ZIP from WordPress.org2.Go to Plugins → Add New → Upload Plugin3.Select the ZIP file and click Install Now4.Activate the plugin5.Go to WooCommerce → Role-Based PricingQuick Setup (5 Minutes)
Step 1: Create a Custom Role (Optional)
1.Go to Role-Based Pricing → Manage Roles2.Click Create Custom Role3.Enter a name (e.g., wholesale) and display name (e.g., Wholesale Customer)You can also use existing WordPress roles like Customer or Subscriber.
Step 2: Set a Global Pricing Rule
1.Go to Role-Based Pricing → Global Rules2.Select the role (e.g., Wholesale Customer)3.Choose a discount type: Percentage, Amount Off, or Set Price4.Enter the discount value (e.g., 20%)5.Click Save RuleStep 3: Assign Users to the Role
1.Go to Users → All Users2.Edit the user you want to assign3.Change their role to the custom role (e.g., Wholesale Customer)4.Save changesDone! Wholesale customers now see their discounted prices when logged in.
Database Tables
The plugin creates two custom tables on activation:
wp_maxtdesign_rbp_rules — product-specific pricing ruleswp_maxtdesign_rbp_global_rules — global pricing rulesBoth tables include optimized indexes for fast lookups. Tables are fully removed on plugin deletion.