WordPress Plugin for WP-e-commerce 3.8

“WP E-Commerce Role Discount” creates a WordPress role for premium customers. You can manually create users and associate them to this role or change the role of registered customers to “Premium User”.

On the product dialog you’ll see a Meta Box to define a price for premium customers for each product.

define premium user price


Your customers will see the normal price and the premium price. This plugin uses the formatting for special prices, so you don’t have to change your theme.

price output

The Plugin requires NO configuration


Available in English and German language.


new in Version 1.1

In version 1.1 there is a new feature to auto apply a coupons for premium customers, so you can apply discounts on all products at once or enable free shipping for your premium customers.



go to the documentation

You want to give something back?

Help me with some improvements, language files or feedback or buy me a coffee (or more ;-) )



download wp ecommerce role discount for free
Wordpress Plugin


more wordpress plugins »



  1. Coby
    2012/10/10 11:37

    Hi There,

    I use your WP E-Commerce Role Discount plugin and setup the premium customer coupon, but when the customer goes checkout, I do not see the coupon has been applied to any of the products. What do I do wrong?


  2. Hannes
    2012/10/10 11:52

    Hi Coby,
    there are at least two possible reasons for this problem:
    - Is the customer logged in and assigned to the role “Premium Customer”?
    - Did you change the coupon name?
    br, hannes

    • Coby
      2012/10/10 11:59

      Yes, I have created a test customer with Premium role.
      I did not change the coupon name and it is “premium-discount-xxxxxx”. If I enter this code manually will work.

  3. Coby
    2012/10/11 10:15

    Hi There,

    You got any idea about the issue I’m having?


    • Hannes
      2012/10/11 10:55

      Hi Coby,
      I’ve sent you a mail asking for access to your shop an our ago.

      • Hannes
        2012/10/12 09:03

        ok it works now! for some reason I had to customize it for your shop.
        In the next version I’ll include these changes, so you can still update the plugin whenever you want.

  4. Janys Hyde
    2012/10/13 08:18

    Hi there
    Just installed the role discount plugin and get this message appear just under the admin bar at the top of the page:
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘HaetRoleDiscount::removeAdminBar’ was given in /web/htdocs/www.artycraftycreations.com/home/wordpress/wp-includes/plugin.php on line 403
    Any ideas on this one please?
    Many thanks

    • Janys Hyde
      2012/10/13 08:20

      Sorry – forgot to mention that I had logged in using my ‘jolly’ Premium Customer ID to see what appeared under the merchandise listings. This warning did not appear when I logged in as Admin.

      • Hannes
        2012/10/15 05:16

        Hi Janys,
        I can’t reproduce the error message on my test systems. Maybe it’s a conflict with an other plugin on your system.
        Is it possible for you to send me your admin credentials to hannes(at)haet(dot)at so I can take a look?
        br, Hannes

    • Hieu Le
      2012/10/23 23:03

      Hi – I am having this issue too! Have you guys figured any solution?

      • Hannes
        2012/10/24 05:25

        Hi Hieu Le, sorry there is no solution yet, because I couldn’t see the error. I need access to a system where the error appears. Is it possible for you to give me access to your store?

        • Hieu Le
          2012/10/24 17:33

          you’ve been emailed. thanks!

          • Hannes
            2012/10/25 09:12

            Thanks for access to your system, it really helps to see the error with my own eyes.
            I fixed the problem and released the changes in a new version 1.2.2 of the plugin and installed on your system.
            Now it woks like a charm.

          • Hieu Le
            2012/11/08 19:30

            Thanks! works great now! Just curious, can one set premium prices on variations?

          • Hannes
            2012/11/08 20:49

            Hey, I’m sorry this is not possible at the moment, but it’s a good idea. I’ll put it on my feature request list.

  5. Dana Buys
    2012/10/24 11:16

    Been looking for this kind of add-on to WP eC, but have one question: Do you only support 1 extra customer type – Premium customer? We have 2 types of premium customers and they get different discount. Can this be done?

    • Hannes
      2012/10/24 11:57

      Hi, this feature doesn’t exist at the moment, but I’ll take it as a feature request, I hope to find some time to implement this in the next weeks.

      • Dana Buys
        2012/10/24 12:07

        Thanks Hannes – that would fill a big need out there!!

  6. Daniel
    2012/12/12 08:07


    I like the role discount.
    If this plugin can merge with “WP e-commerce ” ‘s product section under “Variation”, that will be great.



  7. Jason
    2013/01/03 12:00

    Hey sorry just want to seek for help – we’re using wp-ecommerce for our client’s ecommerce site and we’ve tried several times but can’t seem to enable the autofilling in the checkout form, even we’ve set “anyone can register as SUBSCRIBERS” and “users must register before checking out”, the autofilling just won’t happen. Appreciate your help.

    • Hannes
      2013/01/04 06:52

      Hey Jason, are you talking about autofilling of the coupons code for premium customers or is your question not related to the role-discount plugin?

  8. Calvares
    2013/04/15 15:40

    Hi there, i’m using this great plugin and it works perfectly, thanks for sharing it!
    I’m thinking to aply a percent discount (or a fixed calue discount) to all products for Premium Customer, i thinking to update directly the DB.
    Is it a good idea?

    • Hannes
      2013/04/15 15:48

      Hi Calvares,
      Just change the premium customer coupons to a percentage discount. You don’t have to edit the prices

      • Calvares
        2013/04/16 10:01

        Hi Hannes,
        Thanks for the quick reply.
        Yes, if I edit the premium customers coupons that’s works great, but that is only aplied in the checkout.
        What i really want is a discount price directly in each product while de premium costumer is visiting the site and not only applied in the checkout.
        Is it possible? I think working directly in the db is not a good idea, don’t you think?

        • Hannes
          2013/04/18 07:20

          Ok I understand what you want to do, but working in the database is not easy in this situation because the values aren’t stored in separate table columns but in meta data arrays.

  9. danny
    2013/11/11 09:41

    suddenly my membership with role premium cannot access
    with notif You do not have sufficient permissions to access this page.

    when i change to role subcriber ,member can log normally

    • Hannes
      2013/11/11 14:18

      Hi Danny,
      Could you please try to replace line 18 of …/includes/class-haetrolediscount.php by the following line and tell me about the result.
      add_role(‘haet_rolediscount_premium_customer’, __(‘Premium Customer’,'haetrolediscount’),array( ‘read’ => true ));
      best regards,

  10. Andre Sewell
    2014/01/09 18:40

    First off…thanks for this plugin. I love it!
    My question: Is there any way for me to show both the regular price AND the premium customer price, even to regular customers? I want the regular customers to see how much money they’ll be saving by signing up to become a premium customer. Any help’d be appreciated.

    • Hannes
      2014/01/10 09:46

      Sounds like a good idea, but isn’t possible, sorry.


Leave a Reply