Not allowing group discounts and coupons at the same time
Not allowing group discounts and coupons at the same time
We offer cooupons and also have a subsription that gives a discount on many products. When we offer a coupon we don't want users to use both the subscription discount and the coupon. Ideally, the code should look at both and only add the greater one to the basket.
Can this be done, or is there a code change I can add to make this work?
Thanks,
-Rich
Can this be done, or is there a code change I can add to make this work?
Thanks,
-Rich
Re: Not allowing group discounts and coupons at the same time
I am not sure if this will help your case or not, but here are few tips:
1. For both coupons and discounts you can choose to include or exclude specific products where coupon or discount should not be applicable.
2. For a coupon you can set the minimum quantity to be purchased to qualify for the coupon usage. Also you can set the REPEAT action to define if the coupon should be applied for each multiple of required quantity or only once.
3. For a product discount you can define minimum and maximum quantity to be purchased to get the discount.
However there seems no way to define to apply only one of the coupon or discount when both are applicable without code changes.
1. For both coupons and discounts you can choose to include or exclude specific products where coupon or discount should not be applicable.
2. For a coupon you can set the minimum quantity to be purchased to qualify for the coupon usage. Also you can set the REPEAT action to define if the coupon should be applied for each multiple of required quantity or only once.
3. For a product discount you can define minimum and maximum quantity to be purchased to get the discount.
However there seems no way to define to apply only one of the coupon or discount when both are applicable without code changes.
Thanks for your support
Naveed Ashraf
.com
AbleCommerce Help Center
AbleCommerce Developer WIKI
Follow us on Twitter
Naveed Ashraf

AbleCommerce Help Center
AbleCommerce Developer WIKI
Follow us on Twitter
Re: Not allowing group discounts and coupons at the same time
We have the source, so I can change the code. It would take me some time and testing to track down exactly which function I need to change. Can someone point me to the function that I need to modify? Note that I fixed this in Able 7, but Gold is much different and the function I changed before does not exist in Gold. Thanks for any help, we really need this fix. We also have dealers that get volume discounts and we certainly don't want them to be able to use coupons. I am surprised others have not requested this?
Naveed wrote:I am not sure if this will help your case or not, but here are few tips:
1. For both coupons and discounts you can choose to include or exclude specific products where coupon or discount should not be applicable.
2. For a coupon you can set the minimum quantity to be purchased to qualify for the coupon usage. Also you can set the REPEAT action to define if the coupon should be applied for each multiple of required quantity or only once.
3. For a product discount you can define minimum and maximum quantity to be purchased to get the discount.
However there seems no way to define to apply only one of the coupon or discount when both are applicable without code changes.
Re: Not allowing group discounts and coupons at the same time
I suggest to look into the following function for your desired changes:
Recalculate() function in the CommerceBuilder.Services.Checkout.BasketService class.
I suggest that instead changing the coupons and discount calculator functions, you can add your custom code in the Recalculate() function after coupons and discounts are calculated and applied. Your custom code can iterate the basket line items and should remove one of the coupon/discount line item when both are applied to same basket item.
Recalculate() function in the CommerceBuilder.Services.Checkout.BasketService class.
I suggest that instead changing the coupons and discount calculator functions, you can add your custom code in the Recalculate() function after coupons and discounts are calculated and applied. Your custom code can iterate the basket line items and should remove one of the coupon/discount line item when both are applied to same basket item.
Thanks for your support
Naveed Ashraf
.com
AbleCommerce Help Center
AbleCommerce Developer WIKI
Follow us on Twitter
Naveed Ashraf

AbleCommerce Help Center
AbleCommerce Developer WIKI
Follow us on Twitter
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: Not allowing group discounts and coupons at the same time
I have this same issue.. wholesale customers can stack their discounts with coupon codes.
Re: Not allowing group discounts and coupons at the same time
I have this issue as well - we have customers in a 20% Discount GROUP, and they are also able to use 20% discount COUPONS which we don't want them to be able to do!
What happened with this issue - any resolution?
What happened with this issue - any resolution?
Thanks!
--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10
--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10
Re: Not allowing group discounts and coupons at the same time
Currently, discounts and coupons are separate features and there is nothing in our code to prevent them from being used together.
If you would like to request a feature, please go to ablecommerce.uservoice.com. Otherwise, you can write a customization as Naveed mentioned in his post above.
I searched UserVoice and didn't find that anyone has requested this yet, so please do if this is something you wish to see in a future version.
Thanks!
Katie
If you would like to request a feature, please go to ablecommerce.uservoice.com. Otherwise, you can write a customization as Naveed mentioned in his post above.
I searched UserVoice and didn't find that anyone has requested this yet, so please do if this is something you wish to see in a future version.
Thanks!
Katie
Thank you for choosing AbleCommerce!
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: Not allowing group discounts and coupons at the same time
Gotcha - thanks Katie!!
Thanks!
--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10
--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10