Posted by ferrangil on March 26, 2010 at 10:41am
6 followers
| Project: | Ubercart Discounts (Alternative) |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Hi,
I use this module a lot but I found a missing feature. What about a checkbox to invert the Filter by role??
This way, I can provide a discount the first time a visitor shops in our site, but then, as they get a assigned the role "shopper", I cannot filter using this role. What we need it to be able to say "apply to users NOT having this role".
What do you think?
Thanks!
Comments
#1
Are your first time visitors logged in?
If not, then you can apply the discount to role -> anonymous.
#2
I also could use this feature. We have a role for "wholesale" users on our site. Obviously they are also "authenticated users". We'd like a coupon that can only be used by retail customers and NOT wholesale customers. Is there a way to say "NOT" for the "Qualification by Role(s)." filter? In other words, we'd want to say that this coupon applies to all roles EXCEPT "wholesale". Let me know, thanks!
#3
I second this. I also have the wholesaler situation, and I'd like discounts to only apply to NOT wholesalers.
#4
Here's an initial stab at this. Please take a look at it and let me know what you all think...
#5
I agree. We are currently having the same issue. The website this module is on, has many different user accounts. The discount is for all retail customers- however not for customers who get discounts already (like wholesalers). Unfortunately because we have to do the discount for "authenticated users"- since anyone signed up as "wholesale" is by default an authenticated user (and you can't uncheck that) even without having "Wholesale" checked for the discount- wholesale accounts are still able to get the discount.
Obviously in the small print and terms it clearly states wholesale orders are not valid for the discounts- we still get wholesalers who apply the discount, and then we are stuck with the not so fun task of calling them up and informing them that they can only get the discount if they pay full retail for the products. Not fun and turning into a real pain in the butt- as the website is exploding and monthly discounts and promotions for retail customers is a huge driving force behind their marketing.
Would love if there was a reverse- sort of like a conditional action- where even if they are marked "authenticated" as long as they are also checked "wholesale' it WILL NOT allow the discount.
#6
The patch above basically provides for that. You can have a discount require some roles, and disallow others. So you can have a discount apply only to those who don't have the wholesale role... Give it a test and let me know how it works for you.
#7
Sorry, completely didn't see your patch. (Pregnancy brain). I will install it tonight and I'll be able to let you know how it's working within 24 hours or less. LOL Thanks!
#8
I applied the patch in #4 and it appears to be working correctly for me.