-
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
Spree order checkout state reload issue #11973
Comments
hey @rafalcymerys , @damianlegawiec , we are facing this issue in all spree version, will spree team check this. Thanks. |
hey @rahul-bash Could you check with the newest spree frontend version straight from github? In your gem 'spree_frontend', '= 4.6.0' to gem 'spree_frontend', github: 'spree/spree_rails_frontend', branch: 'main' and run bundle update spree_frontend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
In Spree frontend checkout process, when user is checking out a order, and he/she is at any state of the order(let's say address), then user fill the address details and click the continue button to proceed to next checkout state but if user reloads the page just after clicking the continue button. the current checkout state page is being loaded(address page) againg rather than loading the next checkout state page.
Expected Behavior
When we continue the process and reload just after continue, the frontend should redirect us to order's updated the checkout state page(in the below video it should render confirm page) as it is already done in backend and user must be redirected to the confirm page .
Actual Behavior
When we continue the process and reload just after we click continue(for processing order to next state) the frontend should also update the checkout state to confirm ( for reference ) as it is already done in backend but the user is not redirected to confirm page.
For refrence:- please check the linked video
Possible Fix
When user clicks on continue the Post request goes to checkout_controller.rb's update action in frontend. we need to make sure if the update request get's executed first, before the reload (get request for old state).
Steps to Reproduce
Shopping.Cart.-.Spree.Demo.Site.1.mp4
Your Environment
The text was updated successfully, but these errors were encountered: