I have a 15% off coupon. "Apply Discount To" is set to "All matching product(s)", although I have also tried "Total of Matching Product(s)" with the exact same outcome.
"Applicable Product Classes" is set to "Product Type B" (I also have, for example, "Product Type A" and "Product Type C").
I have no other "Applicable Products", "SKUs", "Taxonomy", etc. settings, only the product class as mentioned above.
If I add a product of type A to my cart, the code is rejected - cool.
If I add a product of type B to my cart, the code works - cool.
If I add 1 product of type A and 1 product of type B, 15% is take off of the entire order (or all products, of type A and B).
The expected result is that 15% is taken off of product of type B only.
Is this a bug in the current version (1.7) or am I missing a specific combinations of settings that will achieve what is intended here?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | uc-coupon-issue.jpg | 139.74 KB | charlie-s |
Comments
Comment #1
end user commentedI just ran into this also but not sure if its a bug or usability problem.
Under
Applicable product classesI had selected product which seems to apply the discount to all "products" even though I had set All matching product(s) and selected the product id.
Once I unselected product the coupons worked like they are suppose to.
Comment #2
charlie-s commented@end user - I don't follow, did you select Applicable Product Classes and also enter one or more Applicable Products? In my case I have no Applicable Products entered, however I did do a test where I entered 1 product and then discovered that the Applicable Product Classes was thereafter having no effect – any product other than the "excluded products" was allowing the coupon to be applied, even if it did not belong in the Applicable Product Classes that I filtered for.
Comment #3
end user commentedComment #4
end user commentedAhh this site messed up what I just wrote and deleted it on preview. Here's a demo site. Use demo:demo for login http://www.ubercartdemo.com and go to http://www.ubercartdemo.com/admin/store/coupons/1/edit
You can see the settings there.
I didn't quite read the info under so the coupon was applied to all products.
Applicable product classesMake sure nothing is checked other wise I'll apply the discount to all "product" nodes.
Comment #5
charlie-s commentedThat account gives me an access denied. Regardless, we are using different versions of Drupal core and this module. You're on Drupal 7 / uc_coupon 2.
Comment #6
end user commentedThe login works but anyways I set up a fresh UC2 demo at uc2.ubercartdemo.com to test out the coupon module.
When you try it out add two of the Mens T-shirts and any amount of the Womens T-Shirt. The coupon is 241
Comment #7
wodenx commentedI can't reproduce this. What other modules do you have installed? Can you post a screenshot of your coupon settings page?
Regarding the problem described in #2, please see #1282004: Improve logic of combined coupon restrictions and comment there.
Comment #8
charlie-s commentedRelevant modules installed:
Screenshot of coupon settings page:
![[image]](/files/uc-coupon-issue.jpg)
Comment #9
wodenx commentedPlease try disabling uc_multi_coupon and uc_gift_certificate and see if the problem persists.