Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError in Spree::UserSessionsController#create #99

Open
nefarianblack opened this issue May 26, 2014 · 0 comments
Open

NoMethodError in Spree::UserSessionsController#create #99

nefarianblack opened this issue May 26, 2014 · 0 comments

Comments

@nefarianblack
Copy link

NoMethodError in Spree::UserSessionsController#create
undefined method `quantity' for true:TrueClass

How to reproduce:

  1. disable checkout without registration
  2. add Spree Login as Existing form in registration.html.erb (so that existing users can login right in the checkout process)
  3. select a product -> add to cart -> checkout -> registration page
  4. try logging in with a registered account
  5. error shows up

Resolution:
file: order_decorator.rb
line no. 4
current_item = contains?(variant, ad_hoc_option_value_ids, product_customizations)

change this to:
current_item = find_line_item_by_variant(variant, ad_hoc_option_value_ids, product_customizations)

Note: I have created a pull request for the issue (#100).

nefarianblack added a commit to nefarianblack/spree_flexi_variants that referenced this issue May 26, 2014
…'variant' instead of truthy/falsy values. Issue: jsqu99#99.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant