-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Custom order checkout_flow not transitioning #10211
Comments
This is exactly what is happening to my custom checkout flow. How can I fixed this issue with the state machine? |
When I do this in my order_decorator.rb I can see my custom checkout flow but for some reason the Order always has state = cart. The order never transition.
Result:
|
@waaux Thanks for that initial workaround — I was tearing my hair out and I tried your solution and it works! I'm upgrading an old Rails app to Spree 3.6.6 and ran into this issue. So strange that requiring it via a separate file in lib works and inside the main decorator itself it doesn't. |
Order checkout flow is not transitioning when I have a order decorator file in my app folder.
It only works when I move the order decorator file to lib folder and require the file in initializers folder.
Environment
*Ruby version: 2.5.3
*Rails version: 5.1.7
In application.rb
The text was updated successfully, but these errors were encountered: