Ideally, customers shouldn't have to figure out if they have enough gift certificates to cover their order and then select the Gift Certificate payment option. What I'd like to do:

  1. Add a dependency on uc_free_order which would handle payment without credit card if gift certs covered the full amount.
  2. Use javascript to add the gift certificate amount as a line item on /cart/checkout. It would need to update the amount when shipping or coupons are added so that it always attempts to cover the full amount.
  3. With that in place we could get rid of the paragraph talking about how gift certs will be applied during the "Review" process because they would be applied right away.

Comments

torgospizza’s picture

Excellent work! I was planning on implementing uc_free_order, and I actually have this happening with the 5.x version (I think - I know I'm doing it on our live site) and it simplified much of the process. I like it when things are simple :)

jrust’s picture

That's great. Well this is currently in my head, so I don't know when I'll get around to actually doing it, so if you have any javascript/php code that you can port over or paste that'd be much help because I haven't messed with javascript line items at all yet.

aasarava’s picture

Would these updates include allowing customers to NOT use their gift certificates for a given purchase? Seems like it's standard to let customers decide if they want to or not.

Let me know if this is not covered, and I'll create a new feature request.

Thanks for the great work on the module!

jrust’s picture

Hmm, no don't think this would cover that. Even if uc_free_order were implemented it would still be automatically applying the GC amount. Good idea for a feature though.

torgospizza’s picture

This is functionality I could probably port over from my local 5.x version... I have it set to only apply the certificate amount if the radio button is selected.

aasarava’s picture

Regarding my previous question about letting customers opt NOT to use a gift certificate, I've created a separate issue for the request:
http://drupal.org/node/565660

torgosPizza, it would be great to get a port from your local 5.x version. Thanks!