Title: Roles Functionality not Working
Last modified: August 22, 2016

---

# Roles Functionality not Working

 *  [npeacher](https://wordpress.org/support/users/npeacher/)
 * (@npeacher)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/)
 * I’m having issues trying to get the Role functionality to work. I’m attempting
   to disable the rule when an admin or user with a role of wholesaler is viewing
   the product.
 * I’ve got a quantity rule setup for a product category that limits quantities 
   to a minimum of 4 and increments of 4. It’s been working great up to this point.
   I recently unchecked Administrator hoping that the quantity of 4 rule would not
   apply if logged in with the role of Admin but its still applying the rule regardless
   of role. I also recently created a new role of wholesaler and the incremental
   rule is still being applied when logged in as a wholesaler. I’d like the wholesaler
   to not have incremental rules and be able to purchase any quantity.
 * My prefix is not custom. Cleared cache and cookies regularly. I’ve tested this
   a few different times and in different environments but no luck. I saw another
   poster mention he was using the Woo Dynamic Pricing Plugin. Are you aware of 
   any plugin conflicts with that particular plugin?
 * [https://wordpress.org/plugins/woocommerce-incremental-product-quantities/](https://wordpress.org/plugins/woocommerce-incremental-product-quantities/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Thread Starter [npeacher](https://wordpress.org/support/users/npeacher/)
 * (@npeacher)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711452)
 * Just wanted to update this question. I’ve solved my issue by running version 
   2.1.7 of this plugin and seems to be working as expected. Hopefully this will
   be resolved in future releases. Thanks again for maintaining a great plugin!
 *  [execedconnect](https://wordpress.org/support/users/execedconnect/)
 * (@execedconnect)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711783)
 * I’m experiencing an issue with custom roles. I have a quantity rule set for registered
   users(customers) and guests. The rule works for guests but not for customers.
 * I do not have a custom table prefix.
    Wordpress 4.1 WooCommerce 2.2.10 Advanced
   Product Quantities 2.1.9
 *  [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711872)
 * Same problem here with 2.1.9, have set a rule that should only work for wholesale
   customer role, but when normal woocommerce customer is logged in, it’s also applied
   which is no good since now they need to order min of 3 items which should not
   be the case. Will trie to revert back to 2.1.7.
 *  [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711873)
 * Reverted back to 2.1.7 solved the problem.
 *  [castrostudio](https://wordpress.org/support/users/castrostudio/)
 * (@castrostudio)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711877)
 * I have the same problem (and unfortunately no copy of version 2.1.7). But I do
   experience another problem, too: Once a user signed into his account, the quantity
   box is empty and not preloaded with the minimum value. With the arrows I can 
   choose the right values. Even if the user logs out, the problem persists until
   I delete all cookies on the computer.
 *  [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711878)
 * Hi, you can download 2.1.7 from the developers tab > [https://wordpress.org/plugins/woocommerce-incremental-product-quantities/developers/](https://wordpress.org/plugins/woocommerce-incremental-product-quantities/developers/)
 *  [castrostudio](https://wordpress.org/support/users/castrostudio/)
 * (@castrostudio)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711879)
 * You never stop learning… 🙂 Many thanks!
 *  [castrostudio](https://wordpress.org/support/users/castrostudio/)
 * (@castrostudio)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711880)
 * Unfortunately, it did not solve neither of my problems.
 *  [pavel.larkin](https://wordpress.org/support/users/pavellarkin/)
 * (@pavellarkin)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711882)
 * I confirm, that i do have probably the same problem. And with 1.7 i had it too.
 * My setup.
    1) I have: “Edit rule” -> User Roles checked box’es: Customer When
   i login with a customer – i don’t see the rules working
 * 2) But when i have:
    checked box’es: Guest – and i login with guest (no login,
   actually) everything works as expected.
 * 3) And lastly, if i TOTALLY match the User Roles, that user has (!) then it works
   as expected.
 * But it’s more logical for me, not to have logical AND but to have logical OR –
   because i have different User Roles for users, they all are Customers, but also
   they have their own User Roles “tuesday_delivery”, “friday_delivery” (or whatever).
   And without that 100% AND match, i can’t apply the rules – which makes me to 
   create a lot of rules for each User Role, which is a headache.
 * The workaround for the moment is to configure min/step in each product manually,
   wich is not good/convinient.
 * Can you assist on how to make it logical “OR” for user groups, instead of logical“
   AND”?
 * Thank you!
 *  [pavel.larkin](https://wordpress.org/support/users/pavellarkin/)
 * (@pavellarkin)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711888)
 * I’ll open a new topic for this issue.
 *  [kait](https://wordpress.org/support/users/kaitcreativecom/)
 * (@kaitcreativecom)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711937)
 * I’m having a similar issue.
    I have a user role I want to have a minimum of 6
   for a certain category, and another role I want to have a minimum 3. I’m using
   the WPFront User Role Editor plugin to create the roles. I had this working for
   the 6, but I changed the “role” of a couple of customers to 3 and now there is
   no minimum at all. AND any one I didn’t change, who used to have a 6 minimum 
   also now has no minimum. I also tried going back to 2.1.7 as suggested, but no
   luck.
 * Any ideas?
 *  [raj5harma](https://wordpress.org/support/users/raj5harma/)
 * (@raj5harma)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711939)
 * Did anyone find a true solution for this issue?
 *  [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711940)
 * I’m using [http://stephensherrardplugins.com/plugins/woocommerce-user-role-minimums/](http://stephensherrardplugins.com/plugins/woocommerce-user-role-minimums/).
 *  [thedeancorp](https://wordpress.org/support/users/thedeancorp/)
 * (@thedeancorp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711949)
 * Thanks @Willem-Siebe, I was having issues too and the one you recommended worked
   great.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Roles Functionality not Working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-incremental-product-quantities.
   svg)
 * [WooCommerce Advanced Product Quantities](https://wordpress.org/plugins/woocommerce-incremental-product-quantities/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-incremental-product-quantities/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-incremental-product-quantities/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-incremental-product-quantities/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-incremental-product-quantities/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-incremental-product-quantities/reviews/)

 * 14 replies
 * 8 participants
 * Last reply from: [thedeancorp](https://wordpress.org/support/users/thedeancorp/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/roles-functionality-not-working/#post-5711949)
 * Status: not resolved