Multiple Certificates given to 1 user, don't appear.

Project:Gift Certificate Module
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Gift Certificate

Hey guys.

Just testing this module out for the first time. I set up a GC for $5. Purchased one with one user account. The module created a new user based on the email address as it's supposed to. Then I purchased a second $5 GC and sent it to the same email/user. I expected the total funds available to that user to be $10. It was still $5.

To see whether or not this was the old GC or the new one, I created a second GC of a different amount. Purchased and sent it to the same user. It didn't bet added and the new user still only had the original $5 available. So it would seem any consecutive GC sent to a user are not added to their account.

Version: 
Ubercart 1.5
torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Multiple Certificates given to 1 user, don't appear.

I've been modifying the gift certificates module, I'll post my code once I'm done and I feel it's ready for some more testing. Can you check in the database, in the uc_gift_certificates table, to confirm your suspicion?

Was the second gift certificate actually created? Is the user set to 0 in the database row?

I'll test doing this exact thing and let you know if I experience the same issues.

--
Help directly fund development: Donate via PayPal!

sleepingmonk@drupal.org's picture
Offline
Joined: 01/20/2008
Juice: 81
I may have been mistaken.
Assigned to:torgosPizza» sleepingmonk@drupal.org

torgosPizza,

I may have been mistaken with this issue. Sorry for the late reply but the holiday season has been hectic. Happy New Year!!

Anyway, I tested this module again and it worked this time. My guess is, last time it had something to do with the order status not being updated to "Payment Received" after the transaction through the PayPal sandbox. Thus, the GC was not issued and didn't appear on the account. Just wanted to let you know.

I'll test this some more but I'm looking forward to using this module on a live site soon.

You mentioned you're working on code for this module. What are you specifically working on? Bugs? Improvements?

Thanks for your great work on all kinds of UC stuff!

"I've had this birthmark since I was born." --JB

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: I may have been mistaken.
Assigned to:sleepingmonk@drupal.org» torgosPizza

That is interesting, but it is an issue we found - for instance we had a customer who was sending 3 certificates to 3 different people, but they only received one code. The way it should work is if you could send 3 separate codes... and that is part of what I'm working on now (along with a way to use Certificates as a discount).

I hope to have it updated by this weekend or sometime early next week, assuming all my testing works out Smiling

--
Help directly fund development: Donate via PayPal!