User Roles Based Price

User Roles Based Price is a powerful WooCommerce extension that allows store owners to set different product prices for each user role. Perfect for B2B, wholesale stores, membership-based shops, or any scenario where different customer segments need tailored pricing.

With this plugin, you can manage fixed prices, percentage-based discounts, and role-specific sales — all directly within the WooCommerce product editor. Customers automatically see the right price based on their assigned role.

Key Features

↑ Back to top
  • Role-Based Pricing: Set custom prices for each WordPress user role (Administrator, Customer, Editor, etc.)
  • Flexible Pricing Options:
    • Fixed Prices: Custom regular and sale prices per role
    • Percentage Discounts: Apply additional discounts on top of existing prices
  • Smart Price Display:
    • Shows sale price with regular price strikethrough
    • Displays discount percentage badges
    • Supports 2 decimal places for accurate pricing
  • Accordion Interface: Easy-to-use collapsible interface in product edit pages for managing role prices
  • Role Management: Create, edit, and delete custom user roles directly from the settings page
  • Validation: Ensures sale prices are always lower than regular prices
  • Cart & Checkout Integration: Automatically applies role-based prices in cart, checkout, and order summary
  • WooCommerce Block Theme Compatible: Works seamlessly with modern WooCommerce block-based themes
  • Product Variations Support: Full support for variable products and individual variation pricing

Installation

↑ Back to top

To start using a product from WooCommerce.com, you can use the “Add to store” functionality on the order confirmation page or the My subscriptions section in your account.

  1. Navigate to My subscriptions.
  2. Find the Add to store button next to the product you’re planning to install.
  3. Follow the instructions on the screen, and the product will be automatically added to your store.

Alternative options and more information at:
Managing WooCommerce.com subscriptions.

Adding a WooCommerce.com subscription to your store

Setup and Configuration

↑ Back to top

Automatic Installation

↑ Back to top
  1. Log in to your WordPress admin dashboard
  2. Navigate to Plugins → Add New
  3. Search for User Roles Based Price
  4. Click Install Now, then Activate

Manual Installation

↑ Back to top
  1. Upload the user-roles-based-price folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. After activation, the plugin adds a new menu item under WooCommerce → Role Pricing

Initial Setup

↑ Back to top
  1. Go to WooCommerce → Role Pricing
  2. Enable Role-Based Pricing by checking the option
  3. Configure any global settings (optional), such as:
    • Default price display format
    • Role management permissions

4. Managing User Roles

↑ Back to top
  1. Navigate to WooCommerce → Role Pricing
  2. Options available:
    • Add New Role: Create a custom user role (e.g., VIP, Wholesale)
    • Edit Role: Modify existing roles
    • Delete Role: Remove unused roles
  3. Only administrators can manage user roles and assign role-based prices

Setting Role-Based Prices for Products

↑ Back to top

For Simple Products

↑ Back to top
  1. Open any product in the WordPress admin (Products → Edit Product)
  2. Click on the Role Pricing tab
  3. For each role, select a Pricing Type:
    • Fixed Price: Enter a role-specific regular and sale price
    • Percentage Discount: Enter a discount percentage to apply on regular or sale price
  4. Save or update the product

For Variable Products

↑ Back to top
  1. Open a variable product
  2. Click the Role Pricing tab
  3. Select a variation and assign role-based prices individually
  4. Repeat for all variations as needed
  5. Save or update the product

Frontend Display

↑ Back to top
  • Role-based prices are automatically displayed to logged-in users based on their role
  • Sale prices are shown with the regular price strikethrough
  • Discount percentage badges are displayed if applicable
  • Customers without a role-specific price see the default product price

Cart Page

↑ Back to top

Best Practices

↑ Back to top
  • Regularly review role-based pricing to ensure accuracy
  • Test role pricing by logging in with different user accounts
  • For complex pricing structures, plan role hierarchy and discount logic in advance
  • Keep WooCommerce and the plugin updated to maintain compatibility

This setup guide ensures your plugin is fully functional and your store is ready to deliver accurate role-based pricing.

If you want, I can create a visual step-by-step setup guide with screenshots for each step to make it easier for non-technical users to follow.

Support

↑ Back to top

If you encounter any issues, need assistance with configuration, or want to request new features, you can contact the official WooCommerce support team:

WooCommerce Support: https://woocommerce.com/my-account/contact-support/

Related Products

Offer add-ons like gift wrapping, special messages or other special options for your products.

Add shipment tracking information to your orders.