Not allowing group discounts and coupons at the same time

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
rjh
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Wed Oct 25, 2006 8:45 am

Not allowing group discounts and coupons at the same time

Post by rjh » Thu Apr 30, 2015 4:36 pm

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

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: Not allowing group discounts and coupons at the same time

Post by Naveed » Fri May 01, 2015 3:56 pm

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.

rjh
Ensign (ENS)
Ensign (ENS)
Posts: 20
Joined: Wed Oct 25, 2006 8:45 am

Re: Not allowing group discounts and coupons at the same time

Post by rjh » Sat May 02, 2015 4:54 am

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.

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: Not allowing group discounts and coupons at the same time

Post by Naveed » Sat May 02, 2015 8:29 am

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.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Not allowing group discounts and coupons at the same time

Post by compunerdy » Fri Jun 26, 2015 10:33 am

I have this same issue.. wholesale customers can stack their discounts with coupon codes.

bugman
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Mar 19, 2013 8:53 am

Re: Not allowing group discounts and coupons at the same time

Post by bugman » Thu Aug 25, 2016 5:09 am

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?
Thanks!

--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Not allowing group discounts and coupons at the same time

Post by Katie » Fri Aug 26, 2016 7:02 am

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
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

bugman
Commander (CMDR)
Commander (CMDR)
Posts: 123
Joined: Tue Mar 19, 2013 8:53 am

Re: Not allowing group discounts and coupons at the same time

Post by bugman » Fri Aug 26, 2016 10:29 am

Gotcha - thanks Katie!!
Thanks!

--
bugman
AbleCommerce for ASP.NET
VERSION: 7.0.90.8302
Release Label: GoldR10

Post Reply