Workflow NG for Coupon Module

Posts: 138
Joined: 08/22/2007
Spreading the word - Ubercart for president.

Hi we are running the uc_coupon module on our site and it works great. But we are having one small problem that hopefully can be solved with Workflow-ng?

Here is the scenario:
1) Customer enters a coupon code for 10% off, order balance is say $20
2) Customer enters credit card information and checks out, all is well.

Scenario #2:
1) Customer enters a coupon code for 10% off, order balance is say $20
2) Customer choose "coupon code" as payment type (this payment type is COD repurposed). This works well when the coupon covers the entire order balance.
3) When the customer checks out and they still have a balance is when there is a problem.

I need to have some system in place that essentially disables the "coupon code" payment option if the order balance is greater than $0.

Here is the logic: if a coupon code is entered and order balance is > 0, than disable payment type COD.

Have a look at the site: www.hugamonkey.com, and use coupon code: monkeysee

Posts: 5353
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

You might check out the code that does this for my Free Order payment method contribution. You should be able to repurpose the code in there for your COD payment method.

Posts: 138
Joined: 08/22/2007
Spreading the word - Ubercart for president.

@Ryan - It works great. Thanks for Ubercart!