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:
- Add a dependency on uc_free_order which would handle payment without credit card if gift certs covered the full amount.
- 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.
- 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
Comment #1
torgospizzaExcellent 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 :)
Comment #2
jrust commentedThat'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.
Comment #3
aasarava commentedWould 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!
Comment #4
jrust commentedHmm, 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.
Comment #5
torgospizzaThis 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.
Comment #6
aasarava commentedRegarding 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!