MaxtDesign

Configuration

Admin Location

All settings are under WooCommerce → Role-Based Pricing in your WordPress admin.

Discount Types Explained

Percentage Off

Subtracts a percentage from the regular price.

  • Example: 20% off a $100 product = $80
  • Works with all product types
  • Ideal for across-the-board discounts
  • Amount Off

    Subtracts a fixed dollar amount from the regular price.

  • Example: $10 off a $50 product = $40
  • Amount is subtracted per item, not per cart
  • Useful when you want a fixed reduction regardless of price
  • Set Price

    Replaces the price entirely with an exact amount.

  • Example: Set to $35 regardless of regular price
  • Ideal for wholesale pricing where you need a specific number
  • Particularly useful for variation-specific wholesale prices
  • Global Rules

    Global rules apply to all products in your store for a specific role.

  • 1.Go to Role-Based Pricing → Global Rules
  • 2.Select a user role
  • 3.Choose discount type and value
  • 4.Toggle Active/Inactive
  • 5.Save
  • Global rules are the starting point. Product-specific rules override them.

    Product-Specific Rules

    Override global rules for individual products:

  • 1.Edit any WooCommerce product
  • 2.Scroll to the Role-Based Pricing meta box
  • 3.Add a rule: select role, discount type, and value
  • 4.Save the product
  • Priority: Product-specific rules always override global rules for that product.

    Variation-Level Rules (v1.1.0+)

    For variable products, you can set rules at the variation level:

  • All Variations — rule applies to every variation
  • Specific Variation — select a single variation to price differently
  • Variation-specific rules override parent product rules. If no variation rule exists, the product-level or global rule applies as a fallback.

    Role Management

    Using Existing Roles

    The plugin works with all built-in WordPress roles: Administrator, Editor, Author, Contributor, Subscriber, Customer, Shop Manager.

    Creating Custom Roles

    Create up to 3 custom roles for your pricing tiers:

  • 1.Go to Role-Based Pricing → Manage Roles
  • 2.Click Create Custom Role
  • 3.Enter a slug (e.g., wholesale) and display name (e.g., Wholesale Customer)
  • 4.The role is immediately available for pricing rules and user assignment
  • Assigning Users

  • Individual: Edit user → change role dropdown
  • Bulk: Use a plugin like "User Role Editor" for bulk assignment
  • Programmatic: Use wp_update_user() with the role slug
  • Caching System

    The plugin uses a multi-layer caching strategy:

  • 1.Object Cache — If Redis/Memcached is available, prices are cached in object cache (1 hour TTL)
  • 2.Transient Cache — Fallback to WordPress transients (30 minute TTL)
  • 3.In-Memory Cache — Request-scoped storage eliminates redundant calculations within a single page load
  • Cache is automatically cleared when:

  • A pricing rule is created, updated, or deleted
  • A product is saved
  • A user's role is changed
  • An order is completed
  • Frontend Display

  • Original prices shown with strikethrough
  • Member prices highlighted in your theme's accent color
  • Prices update in shop, product page, cart, checkout, and mini-cart
  • Price ranges on variable products recalculate automatically
  • Customizing Price Color

    Add to Appearance → Customize → Additional CSS:

    .maxtdesign-rbp-price .maxtdesign-rbp-member {
        color: #your-color !important;
    }