Custom Coupons

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
sleeve
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Fri Apr 16, 2010 3:18 pm

Custom Coupons

Post by sleeve » Fri Apr 16, 2010 3:28 pm

Does anybody know if it is possible to create a new type of coupon or extend coupon behavior without modifying the core commercebuilder code? For example, I would like to create an order coupon that will apply 40% discount to the highest priced product basket item and 10% discount to all other product basket items. I can achieve this by customizing the AC core code (my company purchased the source), but I believe this would prevent us from accepting any upgrades.

Many thanks!

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Custom Coupons

Post by mazhar » Sat Apr 17, 2010 6:37 am

I am not sure but one thing AbleCommerce recalculates coupon discounts from time to time and updates the information in database. So even if you somehow made to adjust front end to inject something like that there is a possibility that information can be changed back to default behavior of AbleCommerce at some point during checkout. I think you will be needed to fix it in source code.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Custom Coupons

Post by AbleMods » Mon Apr 19, 2010 12:40 pm

It's possible, but you have to write your own coupon code system separate from the built-in AC7 coupon system. I did it for a client last year and it worked pretty well. It wasn't a simple change though - took a few new data tables and some signficant changes to the checkout page. It was all part of a rewards-system integration the client needed to give bonuses to sales reps.

Mazhar is right though - modification to the existing coupon system requires full source code and would create issues for you when it's time to upgrade your AC7 site to the next release.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply