MaxtDesign

Installation

Requirements

  • WordPress 6.2 or higher
  • WooCommerce 5.0 or higher (required — plugin will not activate without it)
  • PHP 7.4 or higher
  • MySQL 5.6 or higher
  • Recommended for best performance:

  • WordPress 6.9+, WooCommerce 8.5+, PHP 8.0+
  • Object caching (Redis or Memcached) for optimal price caching
  • Automatic Installation

  • 1.Log in to your WordPress admin panel
  • 2.Go to Plugins → Add New
  • 3.Search for "MaxtDesign Role-Based Pricing"
  • 4.Click Install Now then Activate
  • 5.Ensure WooCommerce is installed and activated
  • 6.Navigate to WooCommerce → Role-Based Pricing to configure
  • Manual Installation

  • 1.Download the plugin ZIP from WordPress.org
  • 2.Go to Plugins → Add New → Upload Plugin
  • 3.Select the ZIP file and click Install Now
  • 4.Activate the plugin
  • 5.Go to WooCommerce → Role-Based Pricing
  • Quick Setup (5 Minutes)

    Step 1: Create a Custom Role (Optional)

  • 1.Go to Role-Based Pricing → Manage Roles
  • 2.Click Create Custom Role
  • 3.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 Rules
  • 2.Select the role (e.g., Wholesale Customer)
  • 3.Choose a discount type: Percentage, Amount Off, or Set Price
  • 4.Enter the discount value (e.g., 20%)
  • 5.Click Save Rule
  • Step 3: Assign Users to the Role

  • 1.Go to Users → All Users
  • 2.Edit the user you want to assign
  • 3.Change their role to the custom role (e.g., Wholesale Customer)
  • 4.Save changes
  • Done! 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 rules
  • wp_maxtdesign_rbp_global_rules — global pricing rules
  • Both tables include optimized indexes for fast lookups. Tables are fully removed on plugin deletion.