Closed Senjai closed 10 years ago
I'm running into this same error, @Senjai. I'm using a fork of the extension for our app but if I patch this I will share the fix here.
@ccschmitz Much obliged, it's on my list of things to do as well.
cc @seantaylor
Sorry I really haven't had time to look into this yet. I haven't been experiencing issues in my app, but if you do solve this or think you figure out the issue before I have time to look into it further please let me know
@Senjai are you sure that the order & gift card your attempting to checkout with is actually meeting all of this criteria? https://github.com/jdutil/spree_gift_card/blob/master/app/models/spree/gift_card.rb#L51-L56
@jdutil I want to say yes, given that it was a vanilla spree install with the giftcard plugin. However I'll have to actually run some tests to make sure that function is failing or passing. I may be able to do this sometime next week.
I've not been able to reproduce this problem yet, and I am deprecating this extension anyways so will be closing out until further information or a pull request to fix the problem is submitted
Test App: https://github.com/Senjai/giftcards
Vanilla 2.0 spree install. Using rails g spree:install then the generators provided by spree_gift_card
I cannot purchase a gift card as a guest or user and I cannot use a giftcard as a user (only seems to work during a guest checkout)
The errors I get are as follows
During the checkout process after filling in my address etc, it says the fields cannot be processed and to double check for missing fields. This appears to happen in the the checkout_controller's update action the address is still valid as long as I remove the gift card from my cart.
Attempting to use a gift card with a user with the appropriate email address fails at both the cart screen and the payment screen of the process with a flash notice stating the gift code does not exist when it was created in the admin backend.