MaxtDesign

Installation

Requirements

  • WordPress 6.2 or higher
  • WooCommerce 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 higher
  • MySQL 5.6 or higher
  • Recommended for best performance:

  • WordPress 6.9+, WooCommerce 10.0+, PHP 8.0+
  • Object caching (Redis or Memcached) for optimal price caching
  • Upgrading 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 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.