Skip to content
DevMarket
Odoo ModulesWordPress PluginsWordPress ThemesShopify ThemesApp TemplatesScripts & UtilitiesBlogSell on DevMarket
PluginWordPressNew

Role Based Pricing for WooCommerce – Wholesale & B2B Discounts

Set a custom price per user role for wholesale and B2B customers: lightweight, no bloated membership features, with variable product support.

No reviews yet0 salesby TAQNIXUpdated Oct 21, 2026

Description

Wholesale and B2B prices without the bloat

Role Based Pricing for WooCommerce lets you set a custom price for each user role: Wholesale, Subscriber or any role you add. Customers with that role see the special price in the shop, the cart and the checkout, while everyone else keeps seeing the normal price.

No membership system, no complicated rules: just a price field per role on each product. The plugin is lightweight, object-oriented PHP on standard WooCommerce hooks.

Prices per role, per product

  • A price field per role in the General tab of the product, and in each variation
  • Wholesale and Subscriber by default; add your own roles in the settings
  • The role price replaces the displayed price; the regular price can be shown struck through with a "Wholesale price" label
  • Leave a field empty to use the normal price
  • A Wholesale Customer role is created for you on activation
Wholesale price shown on a product page

Dynamic pricing that stays correct

  • Uses the standard price filters, so the cart, mini cart and checkout all use the role price
  • Variable products show the right price range for the customer's role
  • The WooCommerce variation price cache is kept separate per role, so customers never see each other's prices
  • Sale prices: the lower price wins, or let the role price replace the sale price
Three steps to wholesale pricing

Simple to manage

  • One small settings page: roles, label and sale price behaviour
  • The admin screens and REST API are never changed by role prices
  • Developer filter tqrp_current_role to map users to a pricing role
Price field per user role in the product General tab

Built for developers and store owners

Translation-ready, RTL-friendly, HPOS and block checkout compatible. Role prices are stored as simple product meta and removed when you uninstall.

Role Based Pricing features

What's included

  • The plugin zip, ready to upload
  • Full documentation (HTML and PDF), translation template, licence and changelog

Requirements

WordPress 6.0+, WooCommerce 8.0+, PHP 7.4+. Licensed under GPL-2.0-or-later.

Support & updates

Installation help and bug fixes are included for 6 months, with lifetime updates.

What's in the download

The files in the archive you can download after you buy.

  • Full source code
  • Documentation
  • Installation guide
  • Translation files
  • Licence file
  • Changelog

Customer reviews

Write a review

No reviews yet. Bought this item? Be the first to review it.

Usage

Install and use it in a few lines.

add_filter( 'tqrp_current_role', function ( $role, $user_id ) {
	if ( user_can( $user_id, 'my_vip_cap' ) ) {
		return 'wholesale_customer';
	}
	return $role;
}, 10, 2 );

Changelog

Every release, newest first.

v1.0.0

1.0.0 – Initial release

  • Role prices per product and variation with Wholesale and Subscriber roles by default
  • Cart, checkout and variable-product price ranges follow the customer's role
  • Per-role price cache, optional price label and struck-through regular price
  • Settings for roles and sale price behaviour; developer filter

Frequently asked questions

Which roles can have their own price?

Wholesale Customer and Subscriber by default. In the settings you can list any other role slugs, up to ten.

Where do I enter the prices?

In the General tab of a simple product and in each variation of a variable product, one field per role.

Does the cart and checkout use the role price?

Yes. The plugin uses the standard WooCommerce price filters, so every price calculation follows the customer's role.

Does it work with variable products and caching?

Yes. Price ranges are correct for each role, and the WooCommerce variation price cache is kept separate per role.

What happens with sale prices?

By default the lower of the role price and the sale price is used. You can choose to let the role price replace the sale price.

What do guests and other roles see?

The normal price. Only customers with a configured role see role prices.

Is there a membership or approval system?

No. It is a pricing plugin only. Assign roles with your usual tools or WooCommerce account settings.

Is any customer data stored?

No. Only plugin settings and the role prices on products are saved.

Guides

Articles that cover this item and how to choose well.

More from TAQNIX

  • PluginNew

    Variation Swatches for WooCommerce – Color, Image & Button Swatches

    Replace dull dropdowns with color, image and button swatches on product pages and shop grids, with availability states, tooltips and no bloat.

    by TAQNIX
    No reviews yet
    Sales:0$29.00
  • PluginNew

    Wishlist for WooCommerce – Save for Later, Share & Move to Cart

    A fast, lightweight wishlist: heart buttons, guest and logged-in lists, a wishlist page with share link and a most-wishlisted report, with no account required.

    by TAQNIX
    No reviews yet
    Sales:0$24.00
  • PluginNew

    Quantity Discounts for WooCommerce – Tiered Pricing & Bulk Discounts

    Sell more per order with tiered discounts: percentage, amount-off or fixed-price tiers per product, category or store-wide, with a live price table.

    by TAQNIX
    No reviews yet
    Sales:0$29.00
  • PluginNew

    Cart Abandonment Recovery for WooCommerce – Recover Lost Sales

    Capture abandoned carts, send automatic recovery emails with an optional personal coupon and restore the cart in one click.

    by TAQNIX
    No reviews yet
    Sales:0$39.00

Similar items

  • PluginNew

    Variation Swatches for WooCommerce – Color, Image & Button Swatches

    Replace dull dropdowns with color, image and button swatches on product pages and shop grids, with availability states, tooltips and no bloat.

    by TAQNIX
    No reviews yet
    Sales:0$29.00
  • PluginNew

    Wishlist for WooCommerce – Save for Later, Share & Move to Cart

    A fast, lightweight wishlist: heart buttons, guest and logged-in lists, a wishlist page with share link and a most-wishlisted report, with no account required.

    by TAQNIX
    No reviews yet
    Sales:0$24.00
  • PluginNew

    Quantity Discounts for WooCommerce – Tiered Pricing & Bulk Discounts

    Sell more per order with tiered discounts: percentage, amount-off or fixed-price tiers per product, category or store-wide, with a live price table.

    by TAQNIX
    No reviews yet
    Sales:0$29.00
  • PluginNew

    Cart Abandonment Recovery for WooCommerce – Recover Lost Sales

    Capture abandoned carts, send automatic recovery emails with an optional personal coupon and restore the cart in one click.

    by TAQNIX
    No reviews yet
    Sales:0$39.00