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

Adding checkout step makes checkout stuck in this new step #11907

Open
mbajur opened this issue Jul 18, 2023 · 1 comment
Open

Adding checkout step makes checkout stuck in this new step #11907

mbajur opened this issue Jul 18, 2023 · 1 comment

Comments

@mbajur
Copy link
Contributor

mbajur commented Jul 18, 2023

After defining a new checkout step, when user enters this step during checkout - he gets stuck in it and can't proceed.

Expected Behavior

After adding a new before: :address checkout step, user should be able to pass this step during checkout

Actual Behavior

After clicking "save and continue" on this new checkout step page, user get's redirected back to it instead of being redirected to address

Possible Fix

I managed to make it working in my instance by doing:

base.insert_checkout_step :additions, before: :address
base.add_transition from: :additions, to: :address
base.remove_transition from: :additions, to: :additions

So apparently doing only instert_checkout_step does not create a next transition from additions to address and also it creates a wrong next transition from additions to additions (and that's why it gets stuck i suppose)

Steps to Reproduce

  1. Add insert_checkout_step :additions, before: :address to your order decorator
  2. Go to checkout
  3. Try to pass this new additions step

Your Environment

@7up4
Copy link

7up4 commented Jan 25, 2024

I also encountered this bug

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

2 participants