fbpx
Booster for WooCommerce - WooCommerce Prices by User Role Booster for WooCommerce - WooCommerce Prices by User Role

WooCommerce Prices by User Role

Overview #

WooCommerce stores have multiple user roles. Through these, store owners want to let all kinds of users avail deserving discounts. Let us give you a context. 

You will prefer offering different discounts to your retailers from your distributors. Similarly, the discount has to be different for your customers. Right?

Though it looks like a rational and essential functionality, enabling it for a WooCommerce store might be a tough deal. The easiest way to set Price based on User Role is – Using the WooCommerce Prices by User Role module.

Prices by user role Module for WooCommerce (Booster)

This module is a part of the Booster for WooCommerce plugin. With it, you can display and use (in calculations) diverse product pricing for your WooCommerce Store products. Not just the regular products, Prices by User Role for WooCommerce works for variable products as well as product bundles too.

While using this module for your store, you may do (any of) the following:

  • Select user roles to apply different pricing by user roles;
  • Enable user role based pricing for product bundles;
  • Set different fixed prices for each user role for a product;
  • Set different variable prices (multiplier-based) for each user role for a product;
  • Apply user role multipliers (for variable pricing) to shipping calculations;
  • Discourage search engines from caching user role based product pricing;

Besides the above, the WooCommerce Prices by User Roles module allow store administrators and owners to do some advanced settings for their shop, such as:

  • Set price based on user role by products categories;
  • Set price based on user role by tags;
  • Disable Price based on User Role for Regular Price;
  • Hide product prices and add-to-cart button by user role;
  • Remove Empty Price Variation and/or Add to Cart Button for Callback;
  • Apply the same settings to the child categories of a parent;
  • Disable Price based on User Role for Products on Sale.

Where to Use this Module? #

See a few example scopes of the module below:

  1. Set different prices for different user roles for your store, e.g. giving extra discounts to your distributors than your retailers, wholesalers, and end-buyers.
  2. Hide product prices based on user roles, i.e. show it to your few user roles while preventing other users from buying the product.
  3. Set different prices for different user roles by categories for your store, e.g. giving discounts for ‘clothing’ products to wholesalers while enabling extra discounts for customers when they buy cakes.
  4. Set different prices for different user roles by tags for your store, e.g. give your retailers discounts for the tag ‘birthdaycakes’, but not on the other types of cakes.
  5. Run user-role-based sale campaigns, e.g. give your customers a summer-special discount on clothing products.

Enable Prices by user role Module with the Booster Plugin #

Note: To enable the prices-by-user-role module, it is essential that you have the Booster plugin installed, activated, and well-configured for working. If it is missing from your store, use this link and get it right away.

Follow the below-listed steps to get started with user role based product pricing:

  • Sign in to your WordPress administrator panel.
  • Go to WooCommerce > Settings using the menu options from your dashboard.
  • Click on the Booster tab to go to Booster Settings.
  • In the Prices & Currencies section, search for the module named ‘WooCommerce Prices by user role’ or ‘Price based on user role’.
  • For the row you’ve found as per our instruction in the previous step, click on the Settings button for this module.
  • Select Enable Module in the Price based on the User Role Module Options section.

After completing the previous steps, click on the Save Changes button. This procedure has enabled the functionality related to WooCommerce Prices by User Role in your shop.

WooCommerce Prices by User Role Options #

This section covers all features of the Options section, present in the dashboard of this module.

Enable per Product Settings: If you want to set user role based pricing for each of your products separately rather than using global settings for the whole store, select the Enable option.

Per Product Settings Type: Select your pick between Fixed and Multiplier types.

  1. ‘Fixed’ type accepts numeric values and considers them to be the product price with currently applied currency as its currency. For example, if you enter the value as 200 where your store currency is USD, the product price will be $200.
  1. ‘Multiplier’ type product setting accepts any numeric input and multiplies it with the current pricing. So, if a product has its regular price of $50, its new price will be $40 when your multiplier’s value is 0.8.

Show Roles on per Product Settings: Use this input field to select one or multiple user roles, to which, your product pricing settings must work.

Shipping: This option will only work when you have selected the Per Product Settings Type as Multiplier. If enabled, the user role multiplier will also be used in shipping cost calculations besides the product price calculations.

Disable Price based on User Role for Regular Price: If you want to apply a global multiplier to your shop and disable setting different fixed costs per user role for your products, Disable this setting.

Search Engine Bots: This setting hides your user role-based pricing from search engines when you choose to Disable Price based on User Role for Bots. It implies, if you have set the price for a product for your admin as $50 (while $70 for others), the admin-specific pricing will not be shown in search engine listings. This way, you can easily maintain the authentication-based pricing schemes for the variety of users in your store.

Show Empty Price Variations: In case you do not want a particular user role to make purchases of your several products, use this setting. It will hide your product’s price and the option to buy it. Users (matching this setting) will only see product details and visuals when this configuration is enabled.

Note: Not only will it hide your product’s price and the add-to-cart button, but the ‘out-of-stock’ alerts too.

Remove Empty Price Variation Callback: If you don’t want any page in the store to fetch price variation’s value for your selected product, enable this option. Doing so will disable the “woocommerce_single_variation” callback from its hook when the “empty price variations” is enabled.

Remove Empty Price Add to Cart Button Callback: Disable the add-to-cart button callback for your store by enabling this option.

Check Child Categories: Enable this feature to apply the same settings to the child category as the child’s parent category.

Advanced Options  #

  • Set a higher value for the Price Filters Priority field if your Prices by User Role setup is not working as per your expectations. 
  • Try Enabling the Disable price based on user role for products with “Price Changes” option for your store if you suspect compatibility issues for this module (with some other plugin or module).
  • Use the ‘WPML: Get Terms in All Languages’ feature to fetch tags and taxonomies in all languages, in case you are using the WPML plugin for your multilingual eCommerce store.

Compatibility #

Select the WooCommerce Product Bundles checkbox for this module, if you want to configure different user role based prices for your product bundles.

Adding Custom Roles to Use with the Prices by User Role Settings #

Let’s say you want to apply diverse product pricing to a group of people in your store, but they are a subset of a bigger group. For such a scenario, you must create custom user roles/groups and apply the settings then. With Booster, it is an easy task!

Note: Follow the same steps to search for the General module as we followed for the Prices by User Role module in the beginning.

  • To add custom user roles to your eCommerce shop, enable the General Module.
  • In the Tools section, go to the Add/Manage Custom Roles link.
  • Add New Role by specifying their ID, name, and capabilities. From this part of the dashboard, you can add any number of custom roles for your shop. When required, these roles can be deleted too.

Roles and Multipliers #

  • Use the Disable Price based on User Role for Products on Sale option to disallow applying user role based product pricing for the ‘Products on Sale’.

If you have not selected the Disable Price based on User Role for Products on Sale option, you can add different pricing for products. For this, use one of the given values for your desired user roles:

  1. Select the Make Empty Price checkbox to make the product unavailable for this user role in the sale.
  2. Enter 1 to retain the regular price for this user role in the sale.
  3. Enter your preferred price to set a user role based price in the sale.

Price based on User Role by Products Categories

  • Select one or multiple categories to enable user role based product pricing.
  • Enter the value for various user roles for the selected categories as:
    • -1 (Minus One), to apply the global multiplier to this value;
    • Select the Make Empty Price checkbox to make the products from these categories unavailable for this user role.
    • Enter your preferred price to set a user role based price for this category.

Price based on User Role by Tags

  • Select one or multiple tags to enable user role based product pricing for them.
  • Enter the value for various user roles for the selected tags as:
    • -1 (Minus One), to apply the global multiplier to this value;
    • Select the Make Empty Price checkbox to make the products from these categories unavailable for this user role.
    • Enter your preferred price to set a user role based price for this category.

Reset Settings #

Click the Reset Settings button to start using the old (default) settings for this module, or to edit settings from the very beginning for the WooCommerce Prices by User Role module.

Example: Setting Prices by User Role #

Here’s how you can set WooCommerce Prices by User Role:

  • Enable the WooCommerce Prices by User Role module and change module settings as per your store’s requirements. For this, steps and details are given above.
  • Navigate to the product you want to apply the Prices by User Roles settings to. You may find it in Products > All Product or use the Edit button on the top of your product page when your administrator session is active.
  • Now, open the product in Edit Mode and you will see the Booster: Price based on User Role meta box added to it.
  • Enable the Per Product Settings section and press Update after changing this setting. Select the Yes as your option to do so.
  •   Enter pricing and other configuration details for each user role in this section.

For example, if you set a Regular Price and a Sale Price for a product here, the buyer with the related user role will see the prices you’ve entered.

Frontend View 1: 

A Price Different from the actual product price is applied for the ‘Administrator’ User Role.

On the other hand, if you want to retain the original product price for the user role, you may leave the pricing fields empty.

Frontend View 2:

Default Regular and Sale Price in Shop when no Prices by User Role are set.

Now, if you want to disable showing the price for the current user role for this product, set the value for option Make Empty Price as ‘yes’.

Even if you will leave the regular and sale price details empty in this case, the frontend view will remain the same.

Frontend View 3: 

Enabling Empty Prices for a User Role for a Product

Powered by BetterDocs