Page 1 of 1

Combining Offers

Posted: Fri Feb 06, 2015 9:55 pm
by tduffey
Is it possible to create two offers with the same offer code? For example, I'd like to create one offer that gives 25% off the order total for all orders having subtotals up to and including $250 and a second offer that gives 50% off the order total for all orders having subtotals greater than $250, both having the same code "special."

I have this setup now and the system is only matching one of the offers. Stepping through code makes it look like Broadleaf does not support multiple offers w/the same code but I figured I'd check in here before I attempt to update the offer related code.

Tom

Re: Combining Offers

Posted: Mon Feb 09, 2015 12:41 am
by phillipuniverse
That is correct, currently the system is built so that a multiple codes map to a single offer, but an offer can only be mapped by a single code. Should be a relatively straightforward customization to change this behavior such that a user could type a single code and you go to look up all the offers that apply to that code and add them all to the order.

Re: Combining Offers

Posted: Mon Feb 09, 2015 12:57 am
by tduffey
Cool, we found and adjusted a few classes to retrieve the list of matching offer codes and apply each one to the order.

Any sense in submitting as a patch? It's pretty common for our clients to request combined offers from one code like "$5 off and free shipping" so this might be useful to others.

Tom

Re: Combining Offers

Posted: Mon Feb 09, 2015 1:04 pm
by phillipuniverse
Absolutely, I would love to review a pull request. No guarantees on merging it in, but I can see how some functionality like that might be beneficial.